[2025-01-24 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:00:06 [end_date_ymd] => 2025-01-24 00:00:06 [RateCDR] => 1 ) [2025-01-24 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:00:06' and `end` < '2025-01-24 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:00:20] Production.INFO: count ==1244 [2025-01-24 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-23 21:00:06 - End Time 2025-01-24 00:00:06 [2025-01-24 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315845', 'tblTempUsageDetail_20' ) start [2025-01-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315845', 'tblTempUsageDetail_20' ) end [2025-01-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315845', 'tblTempVendorCDR_20' ) start [2025-01-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315845', 'tblTempVendorCDR_20' ) end [2025-01-24 00:00:21] Production.INFO: ProcessCDR(1,14315845,1,1,2) [2025-01-24 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315845', 'tblTempUsageDetail_20' ) start [2025-01-24 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315845', 'tblTempUsageDetail_20' ) end [2025-01-24 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:00:27] Production.INFO: ==22455== Releasing lock... [2025-01-24 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:00:27] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:01:04 [end_date_ymd] => 2025-01-24 00:01:04 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:01:04' and `end` < '2025-01-24 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:01:17] Production.INFO: count ==1208 [2025-01-24 00:01:17] Production.ERROR: pbx CDR StartTime 2025-01-23 21:01:04 - End Time 2025-01-24 00:01:04 [2025-01-24 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315849', 'tblTempUsageDetail_20' ) start [2025-01-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315849', 'tblTempUsageDetail_20' ) end [2025-01-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315849', 'tblTempVendorCDR_20' ) start [2025-01-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315849', 'tblTempVendorCDR_20' ) end [2025-01-24 00:01:17] Production.INFO: ProcessCDR(1,14315849,1,1,2) [2025-01-24 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315849', 'tblTempUsageDetail_20' ) start [2025-01-24 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315849', 'tblTempUsageDetail_20' ) end [2025-01-24 00:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:01:20] Production.INFO: ==22550== Releasing lock... [2025-01-24 00:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:01:20] Production.INFO: 37 MB #Memory Used# [2025-01-24 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:02:05 [end_date_ymd] => 2025-01-24 00:02:05 [RateCDR] => 1 ) [2025-01-24 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:02:05' and `end` < '2025-01-24 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:02:37] Production.INFO: count ==538 [2025-01-24 00:02:37] Production.ERROR: pbx CDR StartTime 2025-01-23 21:02:05 - End Time 2025-01-24 00:02:05 [2025-01-24 00:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315855', 'tblTempUsageDetail_20' ) start [2025-01-24 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315855', 'tblTempUsageDetail_20' ) end [2025-01-24 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315855', 'tblTempVendorCDR_20' ) start [2025-01-24 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315855', 'tblTempVendorCDR_20' ) end [2025-01-24 00:02:37] Production.INFO: ProcessCDR(1,14315855,1,1,2) [2025-01-24 00:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315855', 'tblTempUsageDetail_20' ) start [2025-01-24 00:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315855', 'tblTempUsageDetail_20' ) end [2025-01-24 00:02:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:02:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:02:40] Production.INFO: ==22634== Releasing lock... [2025-01-24 00:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:02:40] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:03:05 [end_date_ymd] => 2025-01-24 00:03:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:03:05' and `end` < '2025-01-24 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-24 00:03:26] Production.INFO: count ==533 [2025-01-24 00:03:26] Production.ERROR: pbx CDR StartTime 2025-01-23 21:03:05 - End Time 2025-01-24 00:03:05 [2025-01-24 00:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315860', 'tblTempUsageDetail_20' ) start [2025-01-24 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315860', 'tblTempUsageDetail_20' ) end [2025-01-24 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315860', 'tblTempVendorCDR_20' ) start [2025-01-24 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315860', 'tblTempVendorCDR_20' ) end [2025-01-24 00:03:26] Production.INFO: ProcessCDR(1,14315860,1,1,2) [2025-01-24 00:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315860', 'tblTempUsageDetail_20' ) start [2025-01-24 00:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315860', 'tblTempUsageDetail_20' ) end [2025-01-24 00:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:03:29] Production.INFO: ==22713== Releasing lock... [2025-01-24 00:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:03:29] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:04:05 [end_date_ymd] => 2025-01-24 00:04:05 [RateCDR] => 1 ) [2025-01-24 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:04:05' and `end` < '2025-01-24 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:04:31] Production.INFO: count ==531 [2025-01-24 00:04:31] Production.ERROR: pbx CDR StartTime 2025-01-23 21:04:05 - End Time 2025-01-24 00:04:05 [2025-01-24 00:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315865', 'tblTempUsageDetail_20' ) start [2025-01-24 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315865', 'tblTempUsageDetail_20' ) end [2025-01-24 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315865', 'tblTempVendorCDR_20' ) start [2025-01-24 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315865', 'tblTempVendorCDR_20' ) end [2025-01-24 00:04:31] Production.INFO: ProcessCDR(1,14315865,1,1,2) [2025-01-24 00:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315865', 'tblTempUsageDetail_20' ) start [2025-01-24 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315865', 'tblTempUsageDetail_20' ) end [2025-01-24 00:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:04:34] Production.INFO: ==22800== Releasing lock... [2025-01-24 00:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:04:34] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:05:05 [end_date_ymd] => 2025-01-24 00:05:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:05:05' and `end` < '2025-01-24 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-24 00:05:29] Production.INFO: count ==529 [2025-01-24 00:05:29] Production.ERROR: pbx CDR StartTime 2025-01-23 21:05:05 - End Time 2025-01-24 00:05:05 [2025-01-24 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315870', 'tblTempUsageDetail_20' ) start [2025-01-24 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315870', 'tblTempUsageDetail_20' ) end [2025-01-24 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315870', 'tblTempVendorCDR_20' ) start [2025-01-24 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315870', 'tblTempVendorCDR_20' ) end [2025-01-24 00:05:29] Production.INFO: ProcessCDR(1,14315870,1,1,2) [2025-01-24 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315870', 'tblTempUsageDetail_20' ) start [2025-01-24 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315870', 'tblTempUsageDetail_20' ) end [2025-01-24 00:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:05:34] Production.INFO: ==22879== Releasing lock... [2025-01-24 00:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:05:34] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:06:05 [end_date_ymd] => 2025-01-24 00:06:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:06:05' and `end` < '2025-01-24 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-24 00:06:32] Production.INFO: count ==530 [2025-01-24 00:06:32] Production.ERROR: pbx CDR StartTime 2025-01-23 21:06:05 - End Time 2025-01-24 00:06:05 [2025-01-24 00:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315875', 'tblTempUsageDetail_20' ) start [2025-01-24 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315875', 'tblTempUsageDetail_20' ) end [2025-01-24 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315875', 'tblTempVendorCDR_20' ) start [2025-01-24 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315875', 'tblTempVendorCDR_20' ) end [2025-01-24 00:06:33] Production.INFO: ProcessCDR(1,14315875,1,1,2) [2025-01-24 00:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315875', 'tblTempUsageDetail_20' ) start [2025-01-24 00:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315875', 'tblTempUsageDetail_20' ) end [2025-01-24 00:06:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:06:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:06:37] Production.INFO: ==22962== Releasing lock... [2025-01-24 00:06:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:06:37] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:07:06 [end_date_ymd] => 2025-01-24 00:07:06 [RateCDR] => 1 ) [2025-01-24 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:07:06' and `end` < '2025-01-24 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:07:28] Production.INFO: count ==527 [2025-01-24 00:07:28] Production.ERROR: pbx CDR StartTime 2025-01-23 21:07:06 - End Time 2025-01-24 00:07:06 [2025-01-24 00:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315880', 'tblTempUsageDetail_20' ) start [2025-01-24 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315880', 'tblTempUsageDetail_20' ) end [2025-01-24 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315880', 'tblTempVendorCDR_20' ) start [2025-01-24 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315880', 'tblTempVendorCDR_20' ) end [2025-01-24 00:07:28] Production.INFO: ProcessCDR(1,14315880,1,1,2) [2025-01-24 00:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315880', 'tblTempUsageDetail_20' ) start [2025-01-24 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315880', 'tblTempUsageDetail_20' ) end [2025-01-24 00:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:07:31] Production.INFO: ==23079== Releasing lock... [2025-01-24 00:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:07:31] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:08:05 [end_date_ymd] => 2025-01-24 00:08:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:08:05' and `end` < '2025-01-24 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-24 00:08:26] Production.INFO: count ==527 [2025-01-24 00:08:26] Production.ERROR: pbx CDR StartTime 2025-01-23 21:08:05 - End Time 2025-01-24 00:08:05 [2025-01-24 00:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315885', 'tblTempUsageDetail_20' ) start [2025-01-24 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315885', 'tblTempUsageDetail_20' ) end [2025-01-24 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315885', 'tblTempVendorCDR_20' ) start [2025-01-24 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315885', 'tblTempVendorCDR_20' ) end [2025-01-24 00:08:26] Production.INFO: ProcessCDR(1,14315885,1,1,2) [2025-01-24 00:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315885', 'tblTempUsageDetail_20' ) start [2025-01-24 00:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315885', 'tblTempUsageDetail_20' ) end [2025-01-24 00:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:08:29] Production.INFO: ==23158== Releasing lock... [2025-01-24 00:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:08:29] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:09:06 [end_date_ymd] => 2025-01-24 00:09:06 [RateCDR] => 1 ) [2025-01-24 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:09:06' and `end` < '2025-01-24 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:09:20] Production.INFO: count ==525 [2025-01-24 00:09:20] Production.ERROR: pbx CDR StartTime 2025-01-23 21:09:06 - End Time 2025-01-24 00:09:06 [2025-01-24 00:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315890', 'tblTempUsageDetail_20' ) start [2025-01-24 00:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315890', 'tblTempUsageDetail_20' ) end [2025-01-24 00:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315890', 'tblTempVendorCDR_20' ) start [2025-01-24 00:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315890', 'tblTempVendorCDR_20' ) end [2025-01-24 00:09:20] Production.INFO: ProcessCDR(1,14315890,1,1,2) [2025-01-24 00:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315890', 'tblTempUsageDetail_20' ) start [2025-01-24 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315890', 'tblTempUsageDetail_20' ) end [2025-01-24 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:09:23] Production.INFO: ==23245== Releasing lock... [2025-01-24 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:09:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:10:06 [end_date_ymd] => 2025-01-24 00:10:06 [RateCDR] => 1 ) [2025-01-24 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:10:06' and `end` < '2025-01-24 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:10:20] Production.INFO: count ==540 [2025-01-24 00:10:20] Production.ERROR: pbx CDR StartTime 2025-01-23 21:10:06 - End Time 2025-01-24 00:10:06 [2025-01-24 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315895', 'tblTempUsageDetail_20' ) start [2025-01-24 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315895', 'tblTempUsageDetail_20' ) end [2025-01-24 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315895', 'tblTempVendorCDR_20' ) start [2025-01-24 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315895', 'tblTempVendorCDR_20' ) end [2025-01-24 00:10:20] Production.INFO: ProcessCDR(1,14315895,1,1,2) [2025-01-24 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315895', 'tblTempUsageDetail_20' ) start [2025-01-24 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315895', 'tblTempUsageDetail_20' ) end [2025-01-24 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:10:24] Production.INFO: ==23324== Releasing lock... [2025-01-24 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:10:24] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:11:05 [end_date_ymd] => 2025-01-24 00:11:05 [RateCDR] => 1 ) [2025-01-24 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:11:05' and `end` < '2025-01-24 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:11:19] Production.INFO: count ==552 [2025-01-24 00:11:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:11:05 - End Time 2025-01-24 00:11:05 [2025-01-24 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315901', 'tblTempUsageDetail_20' ) start [2025-01-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315901', 'tblTempUsageDetail_20' ) end [2025-01-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315901', 'tblTempVendorCDR_20' ) start [2025-01-24 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315901', 'tblTempVendorCDR_20' ) end [2025-01-24 00:11:19] Production.INFO: ProcessCDR(1,14315901,1,1,2) [2025-01-24 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315901', 'tblTempUsageDetail_20' ) start [2025-01-24 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315901', 'tblTempUsageDetail_20' ) end [2025-01-24 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:11:22] Production.INFO: ==23410== Releasing lock... [2025-01-24 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:11:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:12:05 [end_date_ymd] => 2025-01-24 00:12:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:12:05' and `end` < '2025-01-24 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-24 00:12:46] Production.INFO: count ==551 [2025-01-24 00:12:47] Production.ERROR: pbx CDR StartTime 2025-01-23 21:12:05 - End Time 2025-01-24 00:12:05 [2025-01-24 00:12:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:12:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315906', 'tblTempUsageDetail_20' ) start [2025-01-24 00:12:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315906', 'tblTempUsageDetail_20' ) end [2025-01-24 00:12:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315906', 'tblTempVendorCDR_20' ) start [2025-01-24 00:12:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315906', 'tblTempVendorCDR_20' ) end [2025-01-24 00:12:47] Production.INFO: ProcessCDR(1,14315906,1,1,2) [2025-01-24 00:12:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:12:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:12:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:12:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:12:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315906', 'tblTempUsageDetail_20' ) start [2025-01-24 00:12:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315906', 'tblTempUsageDetail_20' ) end [2025-01-24 00:12:50] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:12:50] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:12:50] Production.INFO: ==23489== Releasing lock... [2025-01-24 00:12:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:12:50] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:13:06 [end_date_ymd] => 2025-01-24 00:13:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:13:06' and `end` < '2025-01-24 00: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-24 00:13:32] Production.INFO: count ==542 [2025-01-24 00:13:33] Production.ERROR: pbx CDR StartTime 2025-01-23 21:13:06 - End Time 2025-01-24 00:13:06 [2025-01-24 00:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315911', 'tblTempUsageDetail_20' ) start [2025-01-24 00:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315911', 'tblTempUsageDetail_20' ) end [2025-01-24 00:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315911', 'tblTempVendorCDR_20' ) start [2025-01-24 00:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315911', 'tblTempVendorCDR_20' ) end [2025-01-24 00:13:33] Production.INFO: ProcessCDR(1,14315911,1,1,2) [2025-01-24 00:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:13:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:13:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315911', 'tblTempUsageDetail_20' ) start [2025-01-24 00:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315911', 'tblTempUsageDetail_20' ) end [2025-01-24 00:13:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:13:36] Production.INFO: ==23567== Releasing lock... [2025-01-24 00:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:13:36] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:14:05 [end_date_ymd] => 2025-01-24 00:14:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:14:05' and `end` < '2025-01-24 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-24 00:14:21] Production.INFO: count ==541 [2025-01-24 00:14:21] Production.ERROR: pbx CDR StartTime 2025-01-23 21:14:05 - End Time 2025-01-24 00:14:05 [2025-01-24 00:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315916', 'tblTempUsageDetail_20' ) start [2025-01-24 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315916', 'tblTempUsageDetail_20' ) end [2025-01-24 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315916', 'tblTempVendorCDR_20' ) start [2025-01-24 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315916', 'tblTempVendorCDR_20' ) end [2025-01-24 00:14:21] Production.INFO: ProcessCDR(1,14315916,1,1,2) [2025-01-24 00:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315916', 'tblTempUsageDetail_20' ) start [2025-01-24 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315916', 'tblTempUsageDetail_20' ) end [2025-01-24 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:14:24] Production.INFO: ==23651== Releasing lock... [2025-01-24 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:15:06 [end_date_ymd] => 2025-01-24 00:15:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:15:06' and `end` < '2025-01-24 00: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-24 00:15:23] Production.INFO: count ==540 [2025-01-24 00:15:23] Production.ERROR: pbx CDR StartTime 2025-01-23 21:15:06 - End Time 2025-01-24 00:15:06 [2025-01-24 00:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315921', 'tblTempUsageDetail_20' ) start [2025-01-24 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315921', 'tblTempUsageDetail_20' ) end [2025-01-24 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315921', 'tblTempVendorCDR_20' ) start [2025-01-24 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315921', 'tblTempVendorCDR_20' ) end [2025-01-24 00:15:23] Production.INFO: ProcessCDR(1,14315921,1,1,2) [2025-01-24 00:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315921', 'tblTempUsageDetail_20' ) start [2025-01-24 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315921', 'tblTempUsageDetail_20' ) end [2025-01-24 00:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:15:26] Production.INFO: ==23733== Releasing lock... [2025-01-24 00:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:15:26] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:16:05 [end_date_ymd] => 2025-01-24 00:16:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:16:05' and `end` < '2025-01-24 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-24 00:16:21] Production.INFO: count ==542 [2025-01-24 00:16:22] Production.ERROR: pbx CDR StartTime 2025-01-23 21:16:05 - End Time 2025-01-24 00:16:05 [2025-01-24 00:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315926', 'tblTempUsageDetail_20' ) start [2025-01-24 00:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315926', 'tblTempUsageDetail_20' ) end [2025-01-24 00:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315926', 'tblTempVendorCDR_20' ) start [2025-01-24 00:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315926', 'tblTempVendorCDR_20' ) end [2025-01-24 00:16:22] Production.INFO: ProcessCDR(1,14315926,1,1,2) [2025-01-24 00:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315926', 'tblTempUsageDetail_20' ) start [2025-01-24 00:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315926', 'tblTempUsageDetail_20' ) end [2025-01-24 00:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:16:26] Production.INFO: ==23806== Releasing lock... [2025-01-24 00:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:16:26] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:17:06 [end_date_ymd] => 2025-01-24 00:17:06 [RateCDR] => 1 ) [2025-01-24 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:17:06' and `end` < '2025-01-24 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:17:21] Production.INFO: count ==539 [2025-01-24 00:17:21] Production.ERROR: pbx CDR StartTime 2025-01-23 21:17:06 - End Time 2025-01-24 00:17:06 [2025-01-24 00:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315931', 'tblTempUsageDetail_20' ) start [2025-01-24 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315931', 'tblTempUsageDetail_20' ) end [2025-01-24 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315931', 'tblTempVendorCDR_20' ) start [2025-01-24 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315931', 'tblTempVendorCDR_20' ) end [2025-01-24 00:17:21] Production.INFO: ProcessCDR(1,14315931,1,1,2) [2025-01-24 00:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315931', 'tblTempUsageDetail_20' ) start [2025-01-24 00:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315931', 'tblTempUsageDetail_20' ) end [2025-01-24 00:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:17:25] Production.INFO: ==23888== Releasing lock... [2025-01-24 00:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:17:25] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:18:05 [end_date_ymd] => 2025-01-24 00:18:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:18:05' and `end` < '2025-01-24 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-24 00:18:18] Production.INFO: count ==537 [2025-01-24 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:18:05 - End Time 2025-01-24 00:18:05 [2025-01-24 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315936', 'tblTempUsageDetail_20' ) start [2025-01-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315936', 'tblTempUsageDetail_20' ) end [2025-01-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315936', 'tblTempVendorCDR_20' ) start [2025-01-24 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315936', 'tblTempVendorCDR_20' ) end [2025-01-24 00:18:18] Production.INFO: ProcessCDR(1,14315936,1,1,2) [2025-01-24 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315936', 'tblTempUsageDetail_20' ) start [2025-01-24 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315936', 'tblTempUsageDetail_20' ) end [2025-01-24 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:18:21] Production.INFO: ==23979== Releasing lock... [2025-01-24 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:18:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:19:06 [end_date_ymd] => 2025-01-24 00:19:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:19:06' and `end` < '2025-01-24 00: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-24 00:19:18] Production.INFO: count ==535 [2025-01-24 00:19:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:19:06 - End Time 2025-01-24 00:19:06 [2025-01-24 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315941', 'tblTempUsageDetail_20' ) start [2025-01-24 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315941', 'tblTempUsageDetail_20' ) end [2025-01-24 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315941', 'tblTempVendorCDR_20' ) start [2025-01-24 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315941', 'tblTempVendorCDR_20' ) end [2025-01-24 00:19:19] Production.INFO: ProcessCDR(1,14315941,1,1,2) [2025-01-24 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315941', 'tblTempUsageDetail_20' ) start [2025-01-24 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315941', 'tblTempUsageDetail_20' ) end [2025-01-24 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:19:22] Production.INFO: ==24058== Releasing lock... [2025-01-24 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:19:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:20:06 [end_date_ymd] => 2025-01-24 00:20:06 [RateCDR] => 1 ) [2025-01-24 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:20:06' and `end` < '2025-01-24 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:20:19] Production.INFO: count ==549 [2025-01-24 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:20:06 - End Time 2025-01-24 00:20:06 [2025-01-24 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315947', 'tblTempUsageDetail_20' ) start [2025-01-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315947', 'tblTempUsageDetail_20' ) end [2025-01-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315947', 'tblTempVendorCDR_20' ) start [2025-01-24 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315947', 'tblTempVendorCDR_20' ) end [2025-01-24 00:20:19] Production.INFO: ProcessCDR(1,14315947,1,1,2) [2025-01-24 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315947', 'tblTempUsageDetail_20' ) start [2025-01-24 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315947', 'tblTempUsageDetail_20' ) end [2025-01-24 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:20:22] Production.INFO: ==24136== Releasing lock... [2025-01-24 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:21:05 [end_date_ymd] => 2025-01-24 00:21:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:21:05' and `end` < '2025-01-24 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-24 00:21:18] Production.INFO: count ==565 [2025-01-24 00:21:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:21:05 - End Time 2025-01-24 00:21:05 [2025-01-24 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315952', 'tblTempUsageDetail_20' ) start [2025-01-24 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315952', 'tblTempUsageDetail_20' ) end [2025-01-24 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315952', 'tblTempVendorCDR_20' ) start [2025-01-24 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315952', 'tblTempVendorCDR_20' ) end [2025-01-24 00:21:19] Production.INFO: ProcessCDR(1,14315952,1,1,2) [2025-01-24 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315952', 'tblTempUsageDetail_20' ) start [2025-01-24 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315952', 'tblTempUsageDetail_20' ) end [2025-01-24 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:21:22] Production.INFO: ==24217== Releasing lock... [2025-01-24 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:21:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:22:05 [end_date_ymd] => 2025-01-24 00:22:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:22:05' and `end` < '2025-01-24 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-24 00:22:18] Production.INFO: count ==565 [2025-01-24 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:22:05 - End Time 2025-01-24 00:22:05 [2025-01-24 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315957', 'tblTempUsageDetail_20' ) start [2025-01-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315957', 'tblTempUsageDetail_20' ) end [2025-01-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315957', 'tblTempVendorCDR_20' ) start [2025-01-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315957', 'tblTempVendorCDR_20' ) end [2025-01-24 00:22:18] Production.INFO: ProcessCDR(1,14315957,1,1,2) [2025-01-24 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315957', 'tblTempUsageDetail_20' ) start [2025-01-24 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315957', 'tblTempUsageDetail_20' ) end [2025-01-24 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:22:21] Production.INFO: ==24327== Releasing lock... [2025-01-24 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:23:05 [end_date_ymd] => 2025-01-24 00:23:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:23:05' and `end` < '2025-01-24 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-24 00:23:18] Production.INFO: count ==565 [2025-01-24 00:23:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:23:05 - End Time 2025-01-24 00:23:05 [2025-01-24 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315962', 'tblTempUsageDetail_20' ) start [2025-01-24 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315962', 'tblTempUsageDetail_20' ) end [2025-01-24 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315962', 'tblTempVendorCDR_20' ) start [2025-01-24 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315962', 'tblTempVendorCDR_20' ) end [2025-01-24 00:23:19] Production.INFO: ProcessCDR(1,14315962,1,1,2) [2025-01-24 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315962', 'tblTempUsageDetail_20' ) start [2025-01-24 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315962', 'tblTempUsageDetail_20' ) end [2025-01-24 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:23:22] Production.INFO: ==24405== Releasing lock... [2025-01-24 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:24:06 [end_date_ymd] => 2025-01-24 00:24:06 [RateCDR] => 1 ) [2025-01-24 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-23 21:24:06' and `end` < '2025-01-24 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-24 00:24:19] Production.INFO: count ==566 [2025-01-24 00:24:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:24:06 - End Time 2025-01-24 00:24:06 [2025-01-24 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315967', 'tblTempUsageDetail_20' ) start [2025-01-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315967', 'tblTempUsageDetail_20' ) end [2025-01-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315967', 'tblTempVendorCDR_20' ) start [2025-01-24 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315967', 'tblTempVendorCDR_20' ) end [2025-01-24 00:24:19] Production.INFO: ProcessCDR(1,14315967,1,1,2) [2025-01-24 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315967', 'tblTempUsageDetail_20' ) start [2025-01-24 00:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315967', 'tblTempUsageDetail_20' ) end [2025-01-24 00:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:24:24] Production.INFO: ==24491== Releasing lock... [2025-01-24 00:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:24:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:25:05 [end_date_ymd] => 2025-01-24 00:25:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:25:05' and `end` < '2025-01-24 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-24 00:25:17] Production.INFO: count ==564 [2025-01-24 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:25:05 - End Time 2025-01-24 00:25:05 [2025-01-24 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315972', 'tblTempUsageDetail_20' ) start [2025-01-24 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315972', 'tblTempUsageDetail_20' ) end [2025-01-24 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315972', 'tblTempVendorCDR_20' ) start [2025-01-24 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315972', 'tblTempVendorCDR_20' ) end [2025-01-24 00:25:18] Production.INFO: ProcessCDR(1,14315972,1,1,2) [2025-01-24 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315972', 'tblTempUsageDetail_20' ) start [2025-01-24 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315972', 'tblTempUsageDetail_20' ) end [2025-01-24 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:25:21] Production.INFO: ==24571== Releasing lock... [2025-01-24 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:26:06 [end_date_ymd] => 2025-01-24 00:26:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:26:06' and `end` < '2025-01-24 00: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-24 00:26:19] Production.INFO: count ==565 [2025-01-24 00:26:20] Production.ERROR: pbx CDR StartTime 2025-01-23 21:26:06 - End Time 2025-01-24 00:26:06 [2025-01-24 00:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315977', 'tblTempUsageDetail_20' ) start [2025-01-24 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315977', 'tblTempUsageDetail_20' ) end [2025-01-24 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315977', 'tblTempVendorCDR_20' ) start [2025-01-24 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315977', 'tblTempVendorCDR_20' ) end [2025-01-24 00:26:20] Production.INFO: ProcessCDR(1,14315977,1,1,2) [2025-01-24 00:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315977', 'tblTempUsageDetail_20' ) start [2025-01-24 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315977', 'tblTempUsageDetail_20' ) end [2025-01-24 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:26:23] Production.INFO: ==24651== Releasing lock... [2025-01-24 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:27:05 [end_date_ymd] => 2025-01-24 00:27:05 [RateCDR] => 1 ) [2025-01-24 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:27:05' and `end` < '2025-01-24 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:27:17] Production.INFO: count ==564 [2025-01-24 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:27:05 - End Time 2025-01-24 00:27:05 [2025-01-24 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315982', 'tblTempUsageDetail_20' ) start [2025-01-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315982', 'tblTempUsageDetail_20' ) end [2025-01-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315982', 'tblTempVendorCDR_20' ) start [2025-01-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315982', 'tblTempVendorCDR_20' ) end [2025-01-24 00:27:18] Production.INFO: ProcessCDR(1,14315982,1,1,2) [2025-01-24 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315982', 'tblTempUsageDetail_20' ) start [2025-01-24 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315982', 'tblTempUsageDetail_20' ) end [2025-01-24 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:27:21] Production.INFO: ==24727== Releasing lock... [2025-01-24 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:28:06 [end_date_ymd] => 2025-01-24 00:28:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:28:06' and `end` < '2025-01-24 00: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-24 00:28:18] Production.INFO: count ==564 [2025-01-24 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:28:06 - End Time 2025-01-24 00:28:06 [2025-01-24 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315987', 'tblTempUsageDetail_20' ) start [2025-01-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315987', 'tblTempUsageDetail_20' ) end [2025-01-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315987', 'tblTempVendorCDR_20' ) start [2025-01-24 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315987', 'tblTempVendorCDR_20' ) end [2025-01-24 00:28:18] Production.INFO: ProcessCDR(1,14315987,1,1,2) [2025-01-24 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315987', 'tblTempUsageDetail_20' ) start [2025-01-24 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315987', 'tblTempUsageDetail_20' ) end [2025-01-24 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:28:21] Production.INFO: ==24805== Releasing lock... [2025-01-24 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:29:05 [end_date_ymd] => 2025-01-24 00:29:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:29:05' and `end` < '2025-01-24 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-24 00:29:17] Production.INFO: count ==563 [2025-01-24 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:29:05 - End Time 2025-01-24 00:29:05 [2025-01-24 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315992', 'tblTempUsageDetail_20' ) start [2025-01-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315992', 'tblTempUsageDetail_20' ) end [2025-01-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315992', 'tblTempVendorCDR_20' ) start [2025-01-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315992', 'tblTempVendorCDR_20' ) end [2025-01-24 00:29:18] Production.INFO: ProcessCDR(1,14315992,1,1,2) [2025-01-24 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315992', 'tblTempUsageDetail_20' ) start [2025-01-24 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315992', 'tblTempUsageDetail_20' ) end [2025-01-24 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:29:21] Production.INFO: ==24881== Releasing lock... [2025-01-24 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:30:06 [end_date_ymd] => 2025-01-24 00:30:06 [RateCDR] => 1 ) [2025-01-24 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:30:06' and `end` < '2025-01-24 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:30:18] Production.INFO: count ==577 [2025-01-24 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:30:06 - End Time 2025-01-24 00:30:06 [2025-01-24 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315997', 'tblTempUsageDetail_20' ) start [2025-01-24 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315997', 'tblTempUsageDetail_20' ) end [2025-01-24 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315997', 'tblTempVendorCDR_20' ) start [2025-01-24 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315997', 'tblTempVendorCDR_20' ) end [2025-01-24 00:30:18] Production.INFO: ProcessCDR(1,14315997,1,1,2) [2025-01-24 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315997', 'tblTempUsageDetail_20' ) start [2025-01-24 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315997', 'tblTempUsageDetail_20' ) end [2025-01-24 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:30:22] Production.INFO: ==24963== Releasing lock... [2025-01-24 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:31:05 [end_date_ymd] => 2025-01-24 00:31:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:31:05' and `end` < '2025-01-24 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-24 00:31:18] Production.INFO: count ==579 [2025-01-24 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:31:05 - End Time 2025-01-24 00:31:05 [2025-01-24 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316003', 'tblTempUsageDetail_20' ) start [2025-01-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316003', 'tblTempUsageDetail_20' ) end [2025-01-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316003', 'tblTempVendorCDR_20' ) start [2025-01-24 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316003', 'tblTempVendorCDR_20' ) end [2025-01-24 00:31:18] Production.INFO: ProcessCDR(1,14316003,1,1,2) [2025-01-24 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316003', 'tblTempUsageDetail_20' ) start [2025-01-24 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316003', 'tblTempUsageDetail_20' ) end [2025-01-24 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:31:21] Production.INFO: ==25041== Releasing lock... [2025-01-24 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:32:06 [end_date_ymd] => 2025-01-24 00:32:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:32:06' and `end` < '2025-01-24 00: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-24 00:32:18] Production.INFO: count ==577 [2025-01-24 00:32:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:32:06 - End Time 2025-01-24 00:32:06 [2025-01-24 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316008', 'tblTempUsageDetail_20' ) start [2025-01-24 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316008', 'tblTempUsageDetail_20' ) end [2025-01-24 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316008', 'tblTempVendorCDR_20' ) start [2025-01-24 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316008', 'tblTempVendorCDR_20' ) end [2025-01-24 00:32:19] Production.INFO: ProcessCDR(1,14316008,1,1,2) [2025-01-24 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316008', 'tblTempUsageDetail_20' ) start [2025-01-24 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316008', 'tblTempUsageDetail_20' ) end [2025-01-24 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:32:22] Production.INFO: ==25116== Releasing lock... [2025-01-24 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:33:05 [end_date_ymd] => 2025-01-24 00:33:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:33:05' and `end` < '2025-01-24 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-24 00:33:18] Production.INFO: count ==577 [2025-01-24 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:33:05 - End Time 2025-01-24 00:33:05 [2025-01-24 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316013', 'tblTempUsageDetail_20' ) start [2025-01-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316013', 'tblTempUsageDetail_20' ) end [2025-01-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316013', 'tblTempVendorCDR_20' ) start [2025-01-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316013', 'tblTempVendorCDR_20' ) end [2025-01-24 00:33:18] Production.INFO: ProcessCDR(1,14316013,1,1,2) [2025-01-24 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316013', 'tblTempUsageDetail_20' ) start [2025-01-24 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316013', 'tblTempUsageDetail_20' ) end [2025-01-24 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:33:22] Production.INFO: ==25197== Releasing lock... [2025-01-24 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:33:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:34:05 [end_date_ymd] => 2025-01-24 00:34:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:34:05' and `end` < '2025-01-24 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-24 00:34:18] Production.INFO: count ==576 [2025-01-24 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:34:05 - End Time 2025-01-24 00:34:05 [2025-01-24 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316018', 'tblTempUsageDetail_20' ) start [2025-01-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316018', 'tblTempUsageDetail_20' ) end [2025-01-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316018', 'tblTempVendorCDR_20' ) start [2025-01-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316018', 'tblTempVendorCDR_20' ) end [2025-01-24 00:34:18] Production.INFO: ProcessCDR(1,14316018,1,1,2) [2025-01-24 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316018', 'tblTempUsageDetail_20' ) start [2025-01-24 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316018', 'tblTempUsageDetail_20' ) end [2025-01-24 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:34:22] Production.INFO: ==25278== Releasing lock... [2025-01-24 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:34:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:35:05 [end_date_ymd] => 2025-01-24 00:35:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:35:05' and `end` < '2025-01-24 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-24 00:35:17] Production.INFO: count ==577 [2025-01-24 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-23 21:35:05 - End Time 2025-01-24 00:35:05 [2025-01-24 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316023', 'tblTempUsageDetail_20' ) start [2025-01-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316023', 'tblTempUsageDetail_20' ) end [2025-01-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316023', 'tblTempVendorCDR_20' ) start [2025-01-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316023', 'tblTempVendorCDR_20' ) end [2025-01-24 00:35:17] Production.INFO: ProcessCDR(1,14316023,1,1,2) [2025-01-24 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316023', 'tblTempUsageDetail_20' ) start [2025-01-24 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316023', 'tblTempUsageDetail_20' ) end [2025-01-24 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:35:20] Production.INFO: ==25347== Releasing lock... [2025-01-24 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:35:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:36:05 [end_date_ymd] => 2025-01-24 00:36:05 [RateCDR] => 1 ) [2025-01-24 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:36:05' and `end` < '2025-01-24 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:36:18] Production.INFO: count ==577 [2025-01-24 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:36:05 - End Time 2025-01-24 00:36:05 [2025-01-24 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316028', 'tblTempUsageDetail_20' ) start [2025-01-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316028', 'tblTempUsageDetail_20' ) end [2025-01-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316028', 'tblTempVendorCDR_20' ) start [2025-01-24 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316028', 'tblTempVendorCDR_20' ) end [2025-01-24 00:36:18] Production.INFO: ProcessCDR(1,14316028,1,1,2) [2025-01-24 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316028', 'tblTempUsageDetail_20' ) start [2025-01-24 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316028', 'tblTempUsageDetail_20' ) end [2025-01-24 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:36:21] Production.INFO: ==25425== Releasing lock... [2025-01-24 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:37:05 [end_date_ymd] => 2025-01-24 00:37:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:37:05' and `end` < '2025-01-24 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-24 00:37:18] Production.INFO: count ==576 [2025-01-24 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:37:05 - End Time 2025-01-24 00:37:05 [2025-01-24 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316033', 'tblTempUsageDetail_20' ) start [2025-01-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316033', 'tblTempUsageDetail_20' ) end [2025-01-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316033', 'tblTempVendorCDR_20' ) start [2025-01-24 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316033', 'tblTempVendorCDR_20' ) end [2025-01-24 00:37:18] Production.INFO: ProcessCDR(1,14316033,1,1,2) [2025-01-24 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316033', 'tblTempUsageDetail_20' ) start [2025-01-24 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316033', 'tblTempUsageDetail_20' ) end [2025-01-24 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:37:21] Production.INFO: ==25498== Releasing lock... [2025-01-24 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:38:05 [end_date_ymd] => 2025-01-24 00:38:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:38:05' and `end` < '2025-01-24 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-24 00:38:18] Production.INFO: count ==579 [2025-01-24 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:38:05 - End Time 2025-01-24 00:38:05 [2025-01-24 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316038', 'tblTempUsageDetail_20' ) start [2025-01-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316038', 'tblTempUsageDetail_20' ) end [2025-01-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316038', 'tblTempVendorCDR_20' ) start [2025-01-24 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316038', 'tblTempVendorCDR_20' ) end [2025-01-24 00:38:18] Production.INFO: ProcessCDR(1,14316038,1,1,2) [2025-01-24 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316038', 'tblTempUsageDetail_20' ) start [2025-01-24 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316038', 'tblTempUsageDetail_20' ) end [2025-01-24 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:38:21] Production.INFO: ==25613== Releasing lock... [2025-01-24 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:39:04 [end_date_ymd] => 2025-01-24 00:39:04 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:39:04' and `end` < '2025-01-24 00: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-24 00:39:17] Production.INFO: count ==578 [2025-01-24 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-23 21:39:04 - End Time 2025-01-24 00:39:04 [2025-01-24 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316043', 'tblTempUsageDetail_20' ) start [2025-01-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316043', 'tblTempUsageDetail_20' ) end [2025-01-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316043', 'tblTempVendorCDR_20' ) start [2025-01-24 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316043', 'tblTempVendorCDR_20' ) end [2025-01-24 00:39:17] Production.INFO: ProcessCDR(1,14316043,1,1,2) [2025-01-24 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316043', 'tblTempUsageDetail_20' ) start [2025-01-24 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316043', 'tblTempUsageDetail_20' ) end [2025-01-24 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:39:20] Production.INFO: ==25692== Releasing lock... [2025-01-24 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:39:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:40:05 [end_date_ymd] => 2025-01-24 00:40:05 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:40:05' and `end` < '2025-01-24 00: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-24 00:40:18] Production.INFO: count ==590 [2025-01-24 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:40:05 - End Time 2025-01-24 00:40:05 [2025-01-24 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316048', 'tblTempUsageDetail_20' ) start [2025-01-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316048', 'tblTempUsageDetail_20' ) end [2025-01-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316048', 'tblTempVendorCDR_20' ) start [2025-01-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316048', 'tblTempVendorCDR_20' ) end [2025-01-24 00:40:18] Production.INFO: ProcessCDR(1,14316048,1,1,2) [2025-01-24 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316048', 'tblTempUsageDetail_20' ) start [2025-01-24 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316048', 'tblTempUsageDetail_20' ) end [2025-01-24 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:40:21] Production.INFO: ==25773== Releasing lock... [2025-01-24 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:40:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:41:05 [end_date_ymd] => 2025-01-24 00:41:05 [RateCDR] => 1 ) [2025-01-24 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:41:05' and `end` < '2025-01-24 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:41:18] Production.INFO: count ==608 [2025-01-24 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:41:05 - End Time 2025-01-24 00:41:05 [2025-01-24 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316054', 'tblTempUsageDetail_20' ) start [2025-01-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316054', 'tblTempUsageDetail_20' ) end [2025-01-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316054', 'tblTempVendorCDR_20' ) start [2025-01-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316054', 'tblTempVendorCDR_20' ) end [2025-01-24 00:41:18] Production.INFO: ProcessCDR(1,14316054,1,1,2) [2025-01-24 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316054', 'tblTempUsageDetail_20' ) start [2025-01-24 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316054', 'tblTempUsageDetail_20' ) end [2025-01-24 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:41:21] Production.INFO: ==25849== Releasing lock... [2025-01-24 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:42:05 [end_date_ymd] => 2025-01-24 00:42:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:42:05' and `end` < '2025-01-24 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-24 00:42:18] Production.INFO: count ==608 [2025-01-24 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:42:05 - End Time 2025-01-24 00:42:05 [2025-01-24 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316059', 'tblTempUsageDetail_20' ) start [2025-01-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316059', 'tblTempUsageDetail_20' ) end [2025-01-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316059', 'tblTempVendorCDR_20' ) start [2025-01-24 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316059', 'tblTempVendorCDR_20' ) end [2025-01-24 00:42:18] Production.INFO: ProcessCDR(1,14316059,1,1,2) [2025-01-24 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316059', 'tblTempUsageDetail_20' ) start [2025-01-24 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316059', 'tblTempUsageDetail_20' ) end [2025-01-24 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:42:21] Production.INFO: ==25923== Releasing lock... [2025-01-24 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:43:05 [end_date_ymd] => 2025-01-24 00:43:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:43:05' and `end` < '2025-01-24 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-24 00:43:18] Production.INFO: count ==605 [2025-01-24 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:43:05 - End Time 2025-01-24 00:43:05 [2025-01-24 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316064', 'tblTempUsageDetail_20' ) start [2025-01-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316064', 'tblTempUsageDetail_20' ) end [2025-01-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316064', 'tblTempVendorCDR_20' ) start [2025-01-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316064', 'tblTempVendorCDR_20' ) end [2025-01-24 00:43:18] Production.INFO: ProcessCDR(1,14316064,1,1,2) [2025-01-24 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316064', 'tblTempUsageDetail_20' ) start [2025-01-24 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316064', 'tblTempUsageDetail_20' ) end [2025-01-24 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:43:21] Production.INFO: ==26002== Releasing lock... [2025-01-24 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:44:05 [end_date_ymd] => 2025-01-24 00:44:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:44:05' and `end` < '2025-01-24 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-24 00:44:18] Production.INFO: count ==603 [2025-01-24 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:44:05 - End Time 2025-01-24 00:44:05 [2025-01-24 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316069', 'tblTempUsageDetail_20' ) start [2025-01-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316069', 'tblTempUsageDetail_20' ) end [2025-01-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316069', 'tblTempVendorCDR_20' ) start [2025-01-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316069', 'tblTempVendorCDR_20' ) end [2025-01-24 00:44:18] Production.INFO: ProcessCDR(1,14316069,1,1,2) [2025-01-24 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316069', 'tblTempUsageDetail_20' ) start [2025-01-24 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316069', 'tblTempUsageDetail_20' ) end [2025-01-24 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:44:21] Production.INFO: ==26075== Releasing lock... [2025-01-24 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:45:05 [end_date_ymd] => 2025-01-24 00:45:05 [RateCDR] => 1 ) [2025-01-24 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:45:05' and `end` < '2025-01-24 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:45:17] Production.INFO: count ==601 [2025-01-24 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:45:05 - End Time 2025-01-24 00:45:05 [2025-01-24 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316074', 'tblTempUsageDetail_20' ) start [2025-01-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316074', 'tblTempUsageDetail_20' ) end [2025-01-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316074', 'tblTempVendorCDR_20' ) start [2025-01-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316074', 'tblTempVendorCDR_20' ) end [2025-01-24 00:45:18] Production.INFO: ProcessCDR(1,14316074,1,1,2) [2025-01-24 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316074', 'tblTempUsageDetail_20' ) start [2025-01-24 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316074', 'tblTempUsageDetail_20' ) end [2025-01-24 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:45:21] Production.INFO: ==26152== Releasing lock... [2025-01-24 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:45:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:46:05 [end_date_ymd] => 2025-01-24 00:46:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:46:05' and `end` < '2025-01-24 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-24 00:46:18] Production.INFO: count ==596 [2025-01-24 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:46:05 - End Time 2025-01-24 00:46:05 [2025-01-24 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316079', 'tblTempUsageDetail_20' ) start [2025-01-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316079', 'tblTempUsageDetail_20' ) end [2025-01-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316079', 'tblTempVendorCDR_20' ) start [2025-01-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316079', 'tblTempVendorCDR_20' ) end [2025-01-24 00:46:18] Production.INFO: ProcessCDR(1,14316079,1,1,2) [2025-01-24 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316079', 'tblTempUsageDetail_20' ) start [2025-01-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316079', 'tblTempUsageDetail_20' ) end [2025-01-24 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:46:21] Production.INFO: ==26224== Releasing lock... [2025-01-24 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:47:06 [end_date_ymd] => 2025-01-24 00:47:06 [RateCDR] => 1 ) [2025-01-24 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:47:06' and `end` < '2025-01-24 00:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:47:18] Production.INFO: count ==594 [2025-01-24 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:47:06 - End Time 2025-01-24 00:47:06 [2025-01-24 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316084', 'tblTempUsageDetail_20' ) start [2025-01-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316084', 'tblTempUsageDetail_20' ) end [2025-01-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316084', 'tblTempVendorCDR_20' ) start [2025-01-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316084', 'tblTempVendorCDR_20' ) end [2025-01-24 00:47:18] Production.INFO: ProcessCDR(1,14316084,1,1,2) [2025-01-24 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316084', 'tblTempUsageDetail_20' ) start [2025-01-24 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316084', 'tblTempUsageDetail_20' ) end [2025-01-24 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:47:21] Production.INFO: ==26299== Releasing lock... [2025-01-24 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:47:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:48:06 [end_date_ymd] => 2025-01-24 00:48:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:48:06' and `end` < '2025-01-24 00: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-24 00:48:18] Production.INFO: count ==594 [2025-01-24 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:48:06 - End Time 2025-01-24 00:48:06 [2025-01-24 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316089', 'tblTempUsageDetail_20' ) start [2025-01-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316089', 'tblTempUsageDetail_20' ) end [2025-01-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316089', 'tblTempVendorCDR_20' ) start [2025-01-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316089', 'tblTempVendorCDR_20' ) end [2025-01-24 00:48:18] Production.INFO: ProcessCDR(1,14316089,1,1,2) [2025-01-24 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316089', 'tblTempUsageDetail_20' ) start [2025-01-24 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316089', 'tblTempUsageDetail_20' ) end [2025-01-24 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:48:22] Production.INFO: ==26373== Releasing lock... [2025-01-24 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:48:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:49:05 [end_date_ymd] => 2025-01-24 00:49:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:49:05' and `end` < '2025-01-24 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-24 00:49:17] Production.INFO: count ==594 [2025-01-24 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-23 21:49:05 - End Time 2025-01-24 00:49:05 [2025-01-24 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316094', 'tblTempUsageDetail_20' ) start [2025-01-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316094', 'tblTempUsageDetail_20' ) end [2025-01-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316094', 'tblTempVendorCDR_20' ) start [2025-01-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316094', 'tblTempVendorCDR_20' ) end [2025-01-24 00:49:17] Production.INFO: ProcessCDR(1,14316094,1,1,2) [2025-01-24 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316094', 'tblTempUsageDetail_20' ) start [2025-01-24 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316094', 'tblTempUsageDetail_20' ) end [2025-01-24 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:49:21] Production.INFO: ==26448== Releasing lock... [2025-01-24 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:49:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:50:06 [end_date_ymd] => 2025-01-24 00:50:06 [RateCDR] => 1 ) [2025-01-24 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-23 21:50:06' and `end` < '2025-01-24 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-24 00:50:19] Production.INFO: count ==602 [2025-01-24 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:50:06 - End Time 2025-01-24 00:50:06 [2025-01-24 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316099', 'tblTempUsageDetail_20' ) start [2025-01-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316099', 'tblTempUsageDetail_20' ) end [2025-01-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316099', 'tblTempVendorCDR_20' ) start [2025-01-24 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316099', 'tblTempVendorCDR_20' ) end [2025-01-24 00:50:19] Production.INFO: ProcessCDR(1,14316099,1,1,2) [2025-01-24 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316099', 'tblTempUsageDetail_20' ) start [2025-01-24 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316099', 'tblTempUsageDetail_20' ) end [2025-01-24 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:50:22] Production.INFO: ==26526== Releasing lock... [2025-01-24 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:50:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:51:05 [end_date_ymd] => 2025-01-24 00:51:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:51:05' and `end` < '2025-01-24 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-24 00:51:18] Production.INFO: count ==614 [2025-01-24 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:51:05 - End Time 2025-01-24 00:51:05 [2025-01-24 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316105', 'tblTempUsageDetail_20' ) start [2025-01-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316105', 'tblTempUsageDetail_20' ) end [2025-01-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316105', 'tblTempVendorCDR_20' ) start [2025-01-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316105', 'tblTempVendorCDR_20' ) end [2025-01-24 00:51:18] Production.INFO: ProcessCDR(1,14316105,1,1,2) [2025-01-24 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316105', 'tblTempUsageDetail_20' ) start [2025-01-24 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316105', 'tblTempUsageDetail_20' ) end [2025-01-24 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:51:21] Production.INFO: ==26603== Releasing lock... [2025-01-24 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:51:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:52:06 [end_date_ymd] => 2025-01-24 00:52:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:52:06' and `end` < '2025-01-24 00: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-24 00:52:18] Production.INFO: count ==613 [2025-01-24 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:52:06 - End Time 2025-01-24 00:52:06 [2025-01-24 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316110', 'tblTempUsageDetail_20' ) start [2025-01-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316110', 'tblTempUsageDetail_20' ) end [2025-01-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316110', 'tblTempVendorCDR_20' ) start [2025-01-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316110', 'tblTempVendorCDR_20' ) end [2025-01-24 00:52:18] Production.INFO: ProcessCDR(1,14316110,1,1,2) [2025-01-24 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316110', 'tblTempUsageDetail_20' ) start [2025-01-24 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316110', 'tblTempUsageDetail_20' ) end [2025-01-24 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:52:22] Production.INFO: ==26677== Releasing lock... [2025-01-24 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:52:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:53:05 [end_date_ymd] => 2025-01-24 00:53:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:53:05' and `end` < '2025-01-24 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-24 00:53:17] Production.INFO: count ==608 [2025-01-24 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:53:05 - End Time 2025-01-24 00:53:05 [2025-01-24 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316115', 'tblTempUsageDetail_20' ) start [2025-01-24 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316115', 'tblTempUsageDetail_20' ) end [2025-01-24 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316115', 'tblTempVendorCDR_20' ) start [2025-01-24 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316115', 'tblTempVendorCDR_20' ) end [2025-01-24 00:53:18] Production.INFO: ProcessCDR(1,14316115,1,1,2) [2025-01-24 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316115', 'tblTempUsageDetail_20' ) start [2025-01-24 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316115', 'tblTempUsageDetail_20' ) end [2025-01-24 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:53:20] Production.INFO: ==26796== Releasing lock... [2025-01-24 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:53:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:54:05 [end_date_ymd] => 2025-01-24 00:54:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:54:05' and `end` < '2025-01-24 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-24 00:54:18] Production.INFO: count ==608 [2025-01-24 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:54:05 - End Time 2025-01-24 00:54:05 [2025-01-24 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316120', 'tblTempUsageDetail_20' ) start [2025-01-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316120', 'tblTempUsageDetail_20' ) end [2025-01-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316120', 'tblTempVendorCDR_20' ) start [2025-01-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316120', 'tblTempVendorCDR_20' ) end [2025-01-24 00:54:18] Production.INFO: ProcessCDR(1,14316120,1,1,2) [2025-01-24 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316120', 'tblTempUsageDetail_20' ) start [2025-01-24 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316120', 'tblTempUsageDetail_20' ) end [2025-01-24 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:54:21] Production.INFO: ==26871== Releasing lock... [2025-01-24 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:55:05 [end_date_ymd] => 2025-01-24 00:55:05 [RateCDR] => 1 ) [2025-01-24 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:55:05' and `end` < '2025-01-24 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:55:17] Production.INFO: count ==608 [2025-01-24 00:55:17] Production.ERROR: pbx CDR StartTime 2025-01-23 21:55:05 - End Time 2025-01-24 00:55:05 [2025-01-24 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316125', 'tblTempUsageDetail_20' ) start [2025-01-24 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316125', 'tblTempUsageDetail_20' ) end [2025-01-24 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316125', 'tblTempVendorCDR_20' ) start [2025-01-24 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316125', 'tblTempVendorCDR_20' ) end [2025-01-24 00:55:17] Production.INFO: ProcessCDR(1,14316125,1,1,2) [2025-01-24 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316125', 'tblTempUsageDetail_20' ) start [2025-01-24 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316125', 'tblTempUsageDetail_20' ) end [2025-01-24 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:55:21] Production.INFO: ==26950== Releasing lock... [2025-01-24 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:56:05 [end_date_ymd] => 2025-01-24 00:56:05 [RateCDR] => 1 ) [2025-01-24 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-23 21:56:05' and `end` < '2025-01-24 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-24 00:56:18] Production.INFO: count ==608 [2025-01-24 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:56:05 - End Time 2025-01-24 00:56:05 [2025-01-24 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316130', 'tblTempUsageDetail_20' ) start [2025-01-24 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316130', 'tblTempUsageDetail_20' ) end [2025-01-24 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316130', 'tblTempVendorCDR_20' ) start [2025-01-24 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316130', 'tblTempVendorCDR_20' ) end [2025-01-24 00:56:19] Production.INFO: ProcessCDR(1,14316130,1,1,2) [2025-01-24 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316130', 'tblTempUsageDetail_20' ) start [2025-01-24 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316130', 'tblTempUsageDetail_20' ) end [2025-01-24 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:56:22] Production.INFO: ==27024== Releasing lock... [2025-01-24 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:57:05 [end_date_ymd] => 2025-01-24 00:57:05 [RateCDR] => 1 ) [2025-01-24 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:57:05' and `end` < '2025-01-24 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:57:18] Production.INFO: count ==610 [2025-01-24 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:57:05 - End Time 2025-01-24 00:57:05 [2025-01-24 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316135', 'tblTempUsageDetail_20' ) start [2025-01-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316135', 'tblTempUsageDetail_20' ) end [2025-01-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316135', 'tblTempVendorCDR_20' ) start [2025-01-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316135', 'tblTempVendorCDR_20' ) end [2025-01-24 00:57:18] Production.INFO: ProcessCDR(1,14316135,1,1,2) [2025-01-24 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316135', 'tblTempUsageDetail_20' ) start [2025-01-24 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316135', 'tblTempUsageDetail_20' ) end [2025-01-24 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:57:22] Production.INFO: ==27098== Releasing lock... [2025-01-24 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:57:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:58:05 [end_date_ymd] => 2025-01-24 00:58:05 [RateCDR] => 1 ) [2025-01-24 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 21:58:05' and `end` < '2025-01-24 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 00:58:18] Production.INFO: count ==609 [2025-01-24 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 21:58:05 - End Time 2025-01-24 00:58:05 [2025-01-24 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316140', 'tblTempUsageDetail_20' ) start [2025-01-24 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316140', 'tblTempUsageDetail_20' ) end [2025-01-24 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316140', 'tblTempVendorCDR_20' ) start [2025-01-24 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316140', 'tblTempVendorCDR_20' ) end [2025-01-24 00:58:18] Production.INFO: ProcessCDR(1,14316140,1,1,2) [2025-01-24 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316140', 'tblTempUsageDetail_20' ) start [2025-01-24 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316140', 'tblTempUsageDetail_20' ) end [2025-01-24 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:58:22] Production.INFO: ==27169== Releasing lock... [2025-01-24 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:58:22] Production.INFO: 33 MB #Memory Used# [2025-01-24 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 21:59:06 [end_date_ymd] => 2025-01-24 00:59:06 [RateCDR] => 1 ) [2025-01-24 00: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-23 21:59:06' and `end` < '2025-01-24 00: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-24 00:59:19] Production.INFO: count ==608 [2025-01-24 00:59:19] Production.ERROR: pbx CDR StartTime 2025-01-23 21:59:06 - End Time 2025-01-24 00:59:06 [2025-01-24 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316145', 'tblTempUsageDetail_20' ) start [2025-01-24 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316145', 'tblTempUsageDetail_20' ) end [2025-01-24 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316145', 'tblTempVendorCDR_20' ) start [2025-01-24 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316145', 'tblTempVendorCDR_20' ) end [2025-01-24 00:59:19] Production.INFO: ProcessCDR(1,14316145,1,1,2) [2025-01-24 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316145', 'tblTempUsageDetail_20' ) start [2025-01-24 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316145', 'tblTempUsageDetail_20' ) end [2025-01-24 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 00:59:22] Production.INFO: ==27245== Releasing lock... [2025-01-24 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 00:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:00:06 [end_date_ymd] => 2025-01-24 01:00:06 [RateCDR] => 1 ) [2025-01-24 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-23 22:00:06' and `end` < '2025-01-24 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-24 01:00:18] Production.INFO: count ==624 [2025-01-24 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:00:06 - End Time 2025-01-24 01:00:06 [2025-01-24 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316151', 'tblTempUsageDetail_20' ) start [2025-01-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316151', 'tblTempUsageDetail_20' ) end [2025-01-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316151', 'tblTempVendorCDR_20' ) start [2025-01-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316151', 'tblTempVendorCDR_20' ) end [2025-01-24 01:00:18] Production.INFO: ProcessCDR(1,14316151,1,1,2) [2025-01-24 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316151', 'tblTempUsageDetail_20' ) start [2025-01-24 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316151', 'tblTempUsageDetail_20' ) end [2025-01-24 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:00:22] Production.INFO: ==27317== Releasing lock... [2025-01-24 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:01:06 [end_date_ymd] => 2025-01-24 01:01:06 [RateCDR] => 1 ) [2025-01-24 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:01:06' and `end` < '2025-01-24 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:01:18] Production.INFO: count ==645 [2025-01-24 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:01:06 - End Time 2025-01-24 01:01:06 [2025-01-24 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316156', 'tblTempUsageDetail_20' ) start [2025-01-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316156', 'tblTempUsageDetail_20' ) end [2025-01-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316156', 'tblTempVendorCDR_20' ) start [2025-01-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316156', 'tblTempVendorCDR_20' ) end [2025-01-24 01:01:18] Production.INFO: ProcessCDR(1,14316156,1,1,2) [2025-01-24 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316156', 'tblTempUsageDetail_20' ) start [2025-01-24 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316156', 'tblTempUsageDetail_20' ) end [2025-01-24 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:01:21] Production.INFO: ==27408== Releasing lock... [2025-01-24 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:02:05 [end_date_ymd] => 2025-01-24 01:02:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:02:05' and `end` < '2025-01-24 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-24 01:02:17] Production.INFO: count ==646 [2025-01-24 01:02:17] Production.ERROR: pbx CDR StartTime 2025-01-23 22:02:05 - End Time 2025-01-24 01:02:05 [2025-01-24 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316161', 'tblTempUsageDetail_20' ) start [2025-01-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316161', 'tblTempUsageDetail_20' ) end [2025-01-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316161', 'tblTempVendorCDR_20' ) start [2025-01-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316161', 'tblTempVendorCDR_20' ) end [2025-01-24 01:02:17] Production.INFO: ProcessCDR(1,14316161,1,1,2) [2025-01-24 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316161', 'tblTempUsageDetail_20' ) start [2025-01-24 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316161', 'tblTempUsageDetail_20' ) end [2025-01-24 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:02:21] Production.INFO: ==27479== Releasing lock... [2025-01-24 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:02:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:03:05 [end_date_ymd] => 2025-01-24 01:03:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:03:05' and `end` < '2025-01-24 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-24 01:03:18] Production.INFO: count ==644 [2025-01-24 01:03:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:03:05 - End Time 2025-01-24 01:03:05 [2025-01-24 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316166', 'tblTempUsageDetail_20' ) start [2025-01-24 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316166', 'tblTempUsageDetail_20' ) end [2025-01-24 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316166', 'tblTempVendorCDR_20' ) start [2025-01-24 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316166', 'tblTempVendorCDR_20' ) end [2025-01-24 01:03:19] Production.INFO: ProcessCDR(1,14316166,1,1,2) [2025-01-24 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316166', 'tblTempUsageDetail_20' ) start [2025-01-24 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316166', 'tblTempUsageDetail_20' ) end [2025-01-24 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:03:22] Production.INFO: ==27552== Releasing lock... [2025-01-24 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:03:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:04:05 [end_date_ymd] => 2025-01-24 01:04:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:04:05' and `end` < '2025-01-24 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-24 01:04:18] Production.INFO: count ==639 [2025-01-24 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:04:05 - End Time 2025-01-24 01:04:05 [2025-01-24 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316170', 'tblTempUsageDetail_20' ) start [2025-01-24 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316170', 'tblTempUsageDetail_20' ) end [2025-01-24 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316170', 'tblTempVendorCDR_20' ) start [2025-01-24 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316170', 'tblTempVendorCDR_20' ) end [2025-01-24 01:04:18] Production.INFO: ProcessCDR(1,14316170,1,1,2) [2025-01-24 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316170', 'tblTempUsageDetail_20' ) start [2025-01-24 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316170', 'tblTempUsageDetail_20' ) end [2025-01-24 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:04:21] Production.INFO: ==27625== Releasing lock... [2025-01-24 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:04:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:05:05 [end_date_ymd] => 2025-01-24 01:05:05 [RateCDR] => 1 ) [2025-01-24 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:05:05' and `end` < '2025-01-24 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:05:18] Production.INFO: count ==636 [2025-01-24 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:05:05 - End Time 2025-01-24 01:05:05 [2025-01-24 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316176', 'tblTempUsageDetail_20' ) start [2025-01-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316176', 'tblTempUsageDetail_20' ) end [2025-01-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316176', 'tblTempVendorCDR_20' ) start [2025-01-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316176', 'tblTempVendorCDR_20' ) end [2025-01-24 01:05:18] Production.INFO: ProcessCDR(1,14316176,1,1,2) [2025-01-24 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316176', 'tblTempUsageDetail_20' ) start [2025-01-24 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316176', 'tblTempUsageDetail_20' ) end [2025-01-24 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:05:22] Production.INFO: ==27698== Releasing lock... [2025-01-24 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:06:05 [end_date_ymd] => 2025-01-24 01:06:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:06:05' and `end` < '2025-01-24 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-24 01:06:17] Production.INFO: count ==629 [2025-01-24 01:06:17] Production.ERROR: pbx CDR StartTime 2025-01-23 22:06:05 - End Time 2025-01-24 01:06:05 [2025-01-24 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316181', 'tblTempUsageDetail_20' ) start [2025-01-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316181', 'tblTempUsageDetail_20' ) end [2025-01-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316181', 'tblTempVendorCDR_20' ) start [2025-01-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316181', 'tblTempVendorCDR_20' ) end [2025-01-24 01:06:17] Production.INFO: ProcessCDR(1,14316181,1,1,2) [2025-01-24 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316181', 'tblTempUsageDetail_20' ) start [2025-01-24 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316181', 'tblTempUsageDetail_20' ) end [2025-01-24 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:06:21] Production.INFO: ==27770== Releasing lock... [2025-01-24 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:07:06 [end_date_ymd] => 2025-01-24 01:07:06 [RateCDR] => 1 ) [2025-01-24 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:07:06' and `end` < '2025-01-24 01:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:07:18] Production.INFO: count ==629 [2025-01-24 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:07:06 - End Time 2025-01-24 01:07:06 [2025-01-24 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316186', 'tblTempUsageDetail_20' ) start [2025-01-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316186', 'tblTempUsageDetail_20' ) end [2025-01-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316186', 'tblTempVendorCDR_20' ) start [2025-01-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316186', 'tblTempVendorCDR_20' ) end [2025-01-24 01:07:18] Production.INFO: ProcessCDR(1,14316186,1,1,2) [2025-01-24 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316186', 'tblTempUsageDetail_20' ) start [2025-01-24 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316186', 'tblTempUsageDetail_20' ) end [2025-01-24 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:07:21] Production.INFO: ==27845== Releasing lock... [2025-01-24 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:08:05 [end_date_ymd] => 2025-01-24 01:08:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:08:05' and `end` < '2025-01-24 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-24 01:08:18] Production.INFO: count ==629 [2025-01-24 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:08:05 - End Time 2025-01-24 01:08:05 [2025-01-24 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316191', 'tblTempUsageDetail_20' ) start [2025-01-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316191', 'tblTempUsageDetail_20' ) end [2025-01-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316191', 'tblTempVendorCDR_20' ) start [2025-01-24 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316191', 'tblTempVendorCDR_20' ) end [2025-01-24 01:08:18] Production.INFO: ProcessCDR(1,14316191,1,1,2) [2025-01-24 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316191', 'tblTempUsageDetail_20' ) start [2025-01-24 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316191', 'tblTempUsageDetail_20' ) end [2025-01-24 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:08:21] Production.INFO: ==27916== Releasing lock... [2025-01-24 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:08:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:09:05 [end_date_ymd] => 2025-01-24 01:09:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:09:05' and `end` < '2025-01-24 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-24 01:09:18] Production.INFO: count ==629 [2025-01-24 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:09:05 - End Time 2025-01-24 01:09:05 [2025-01-24 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316196', 'tblTempUsageDetail_20' ) start [2025-01-24 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316196', 'tblTempUsageDetail_20' ) end [2025-01-24 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316196', 'tblTempVendorCDR_20' ) start [2025-01-24 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316196', 'tblTempVendorCDR_20' ) end [2025-01-24 01:09:18] Production.INFO: ProcessCDR(1,14316196,1,1,2) [2025-01-24 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316196', 'tblTempUsageDetail_20' ) start [2025-01-24 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316196', 'tblTempUsageDetail_20' ) end [2025-01-24 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:09:21] Production.INFO: ==28031== Releasing lock... [2025-01-24 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:10:05 [end_date_ymd] => 2025-01-24 01:10:05 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:10:05' and `end` < '2025-01-24 01: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-24 01:10:18] Production.INFO: count ==640 [2025-01-24 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:10:05 - End Time 2025-01-24 01:10:05 [2025-01-24 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316202', 'tblTempUsageDetail_20' ) start [2025-01-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316202', 'tblTempUsageDetail_20' ) end [2025-01-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316202', 'tblTempVendorCDR_20' ) start [2025-01-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316202', 'tblTempVendorCDR_20' ) end [2025-01-24 01:10:18] Production.INFO: ProcessCDR(1,14316202,1,1,2) [2025-01-24 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316202', 'tblTempUsageDetail_20' ) start [2025-01-24 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316202', 'tblTempUsageDetail_20' ) end [2025-01-24 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:10:23] Production.INFO: ==28105== Releasing lock... [2025-01-24 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:11:05 [end_date_ymd] => 2025-01-24 01:11:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:11:05' and `end` < '2025-01-24 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-24 01:11:19] Production.INFO: count ==645 [2025-01-24 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:11:05 - End Time 2025-01-24 01:11:05 [2025-01-24 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316207', 'tblTempUsageDetail_20' ) start [2025-01-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316207', 'tblTempUsageDetail_20' ) end [2025-01-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316207', 'tblTempVendorCDR_20' ) start [2025-01-24 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316207', 'tblTempVendorCDR_20' ) end [2025-01-24 01:11:19] Production.INFO: ProcessCDR(1,14316207,1,1,2) [2025-01-24 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316207', 'tblTempUsageDetail_20' ) start [2025-01-24 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316207', 'tblTempUsageDetail_20' ) end [2025-01-24 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:11:22] Production.INFO: ==28187== Releasing lock... [2025-01-24 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:12:05 [end_date_ymd] => 2025-01-24 01:12:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:12:05' and `end` < '2025-01-24 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-24 01:12:18] Production.INFO: count ==642 [2025-01-24 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:12:05 - End Time 2025-01-24 01:12:05 [2025-01-24 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316212', 'tblTempUsageDetail_20' ) start [2025-01-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316212', 'tblTempUsageDetail_20' ) end [2025-01-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316212', 'tblTempVendorCDR_20' ) start [2025-01-24 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316212', 'tblTempVendorCDR_20' ) end [2025-01-24 01:12:18] Production.INFO: ProcessCDR(1,14316212,1,1,2) [2025-01-24 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316212', 'tblTempUsageDetail_20' ) start [2025-01-24 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316212', 'tblTempUsageDetail_20' ) end [2025-01-24 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:12:22] Production.INFO: ==28264== Releasing lock... [2025-01-24 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:12:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:13:05 [end_date_ymd] => 2025-01-24 01:13:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:13:05' and `end` < '2025-01-24 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:13:18] Production.INFO: count ==643 [2025-01-24 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:13:05 - End Time 2025-01-24 01:13:05 [2025-01-24 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316217', 'tblTempUsageDetail_20' ) start [2025-01-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316217', 'tblTempUsageDetail_20' ) end [2025-01-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316217', 'tblTempVendorCDR_20' ) start [2025-01-24 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316217', 'tblTempVendorCDR_20' ) end [2025-01-24 01:13:18] Production.INFO: ProcessCDR(1,14316217,1,1,2) [2025-01-24 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316217', 'tblTempUsageDetail_20' ) start [2025-01-24 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316217', 'tblTempUsageDetail_20' ) end [2025-01-24 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:13:21] Production.INFO: ==28339== Releasing lock... [2025-01-24 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:13:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:14:05 [end_date_ymd] => 2025-01-24 01:14:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:14:05' and `end` < '2025-01-24 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-24 01:14:19] Production.INFO: count ==642 [2025-01-24 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:14:05 - End Time 2025-01-24 01:14:05 [2025-01-24 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316222', 'tblTempUsageDetail_20' ) start [2025-01-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316222', 'tblTempUsageDetail_20' ) end [2025-01-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316222', 'tblTempVendorCDR_20' ) start [2025-01-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316222', 'tblTempVendorCDR_20' ) end [2025-01-24 01:14:19] Production.INFO: ProcessCDR(1,14316222,1,1,2) [2025-01-24 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316222', 'tblTempUsageDetail_20' ) start [2025-01-24 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316222', 'tblTempUsageDetail_20' ) end [2025-01-24 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:14:22] Production.INFO: ==28409== Releasing lock... [2025-01-24 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:15:05 [end_date_ymd] => 2025-01-24 01:15:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:15:05' and `end` < '2025-01-24 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-24 01:15:17] Production.INFO: count ==641 [2025-01-24 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-23 22:15:05 - End Time 2025-01-24 01:15:05 [2025-01-24 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316227', 'tblTempUsageDetail_20' ) start [2025-01-24 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316227', 'tblTempUsageDetail_20' ) end [2025-01-24 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316227', 'tblTempVendorCDR_20' ) start [2025-01-24 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316227', 'tblTempVendorCDR_20' ) end [2025-01-24 01:15:17] Production.INFO: ProcessCDR(1,14316227,1,1,2) [2025-01-24 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316227', 'tblTempUsageDetail_20' ) start [2025-01-24 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316227', 'tblTempUsageDetail_20' ) end [2025-01-24 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:15:20] Production.INFO: ==28480== Releasing lock... [2025-01-24 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:15:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:16:04 [end_date_ymd] => 2025-01-24 01:16:04 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:16:04' and `end` < '2025-01-24 01: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-24 01:16:17] Production.INFO: count ==644 [2025-01-24 01:16:17] Production.ERROR: pbx CDR StartTime 2025-01-23 22:16:04 - End Time 2025-01-24 01:16:04 [2025-01-24 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316232', 'tblTempUsageDetail_20' ) start [2025-01-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316232', 'tblTempUsageDetail_20' ) end [2025-01-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316232', 'tblTempVendorCDR_20' ) start [2025-01-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316232', 'tblTempVendorCDR_20' ) end [2025-01-24 01:16:17] Production.INFO: ProcessCDR(1,14316232,1,1,2) [2025-01-24 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316232', 'tblTempUsageDetail_20' ) start [2025-01-24 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316232', 'tblTempUsageDetail_20' ) end [2025-01-24 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:16:20] Production.INFO: ==28554== Releasing lock... [2025-01-24 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:16:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:17:05 [end_date_ymd] => 2025-01-24 01:17:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:17:05' and `end` < '2025-01-24 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-24 01:17:19] Production.INFO: count ==644 [2025-01-24 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:17:05 - End Time 2025-01-24 01:17:05 [2025-01-24 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316237', 'tblTempUsageDetail_20' ) start [2025-01-24 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316237', 'tblTempUsageDetail_20' ) end [2025-01-24 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316237', 'tblTempVendorCDR_20' ) start [2025-01-24 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316237', 'tblTempVendorCDR_20' ) end [2025-01-24 01:17:19] Production.INFO: ProcessCDR(1,14316237,1,1,2) [2025-01-24 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316237', 'tblTempUsageDetail_20' ) start [2025-01-24 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316237', 'tblTempUsageDetail_20' ) end [2025-01-24 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:17:22] Production.INFO: ==28626== Releasing lock... [2025-01-24 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:17:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:18:06 [end_date_ymd] => 2025-01-24 01:18:06 [RateCDR] => 1 ) [2025-01-24 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:18:06' and `end` < '2025-01-24 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:18:18] Production.INFO: count ==642 [2025-01-24 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:18:06 - End Time 2025-01-24 01:18:06 [2025-01-24 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316242', 'tblTempUsageDetail_20' ) start [2025-01-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316242', 'tblTempUsageDetail_20' ) end [2025-01-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316242', 'tblTempVendorCDR_20' ) start [2025-01-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316242', 'tblTempVendorCDR_20' ) end [2025-01-24 01:18:18] Production.INFO: ProcessCDR(1,14316242,1,1,2) [2025-01-24 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316242', 'tblTempUsageDetail_20' ) start [2025-01-24 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316242', 'tblTempUsageDetail_20' ) end [2025-01-24 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:18:21] Production.INFO: ==28704== Releasing lock... [2025-01-24 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:19:05 [end_date_ymd] => 2025-01-24 01:19:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:19:05' and `end` < '2025-01-24 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-24 01:19:18] Production.INFO: count ==641 [2025-01-24 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:19:05 - End Time 2025-01-24 01:19:05 [2025-01-24 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316247', 'tblTempUsageDetail_20' ) start [2025-01-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316247', 'tblTempUsageDetail_20' ) end [2025-01-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316247', 'tblTempVendorCDR_20' ) start [2025-01-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316247', 'tblTempVendorCDR_20' ) end [2025-01-24 01:19:18] Production.INFO: ProcessCDR(1,14316247,1,1,2) [2025-01-24 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316247', 'tblTempUsageDetail_20' ) start [2025-01-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316247', 'tblTempUsageDetail_20' ) end [2025-01-24 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:19:21] Production.INFO: ==28779== Releasing lock... [2025-01-24 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:20:06 [end_date_ymd] => 2025-01-24 01:20:06 [RateCDR] => 1 ) [2025-01-24 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-23 22:20:06' and `end` < '2025-01-24 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-24 01:20:19] Production.INFO: count ==656 [2025-01-24 01:20:20] Production.ERROR: pbx CDR StartTime 2025-01-23 22:20:06 - End Time 2025-01-24 01:20:06 [2025-01-24 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316252', 'tblTempUsageDetail_20' ) start [2025-01-24 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316252', 'tblTempUsageDetail_20' ) end [2025-01-24 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316252', 'tblTempVendorCDR_20' ) start [2025-01-24 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316252', 'tblTempVendorCDR_20' ) end [2025-01-24 01:20:20] Production.INFO: ProcessCDR(1,14316252,1,1,2) [2025-01-24 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316252', 'tblTempUsageDetail_20' ) start [2025-01-24 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316252', 'tblTempUsageDetail_20' ) end [2025-01-24 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:20:23] Production.INFO: ==28854== Releasing lock... [2025-01-24 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:21:05 [end_date_ymd] => 2025-01-24 01:21:05 [RateCDR] => 1 ) [2025-01-24 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:21:05' and `end` < '2025-01-24 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:21:18] Production.INFO: count ==655 [2025-01-24 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:21:05 - End Time 2025-01-24 01:21:05 [2025-01-24 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316258', 'tblTempUsageDetail_20' ) start [2025-01-24 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316258', 'tblTempUsageDetail_20' ) end [2025-01-24 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316258', 'tblTempVendorCDR_20' ) start [2025-01-24 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316258', 'tblTempVendorCDR_20' ) end [2025-01-24 01:21:18] Production.INFO: ProcessCDR(1,14316258,1,1,2) [2025-01-24 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316258', 'tblTempUsageDetail_20' ) start [2025-01-24 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316258', 'tblTempUsageDetail_20' ) end [2025-01-24 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:21:21] Production.INFO: ==28932== Releasing lock... [2025-01-24 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:21:21] Production.INFO: 33 MB #Memory Used# [2025-01-24 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:22:06 [end_date_ymd] => 2025-01-24 01:22:06 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:22:06' and `end` < '2025-01-24 01: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-24 01:22:18] Production.INFO: count ==657 [2025-01-24 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:22:06 - End Time 2025-01-24 01:22:06 [2025-01-24 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316263', 'tblTempUsageDetail_20' ) start [2025-01-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316263', 'tblTempUsageDetail_20' ) end [2025-01-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316263', 'tblTempVendorCDR_20' ) start [2025-01-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316263', 'tblTempVendorCDR_20' ) end [2025-01-24 01:22:18] Production.INFO: ProcessCDR(1,14316263,1,1,2) [2025-01-24 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316263', 'tblTempUsageDetail_20' ) start [2025-01-24 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316263', 'tblTempUsageDetail_20' ) end [2025-01-24 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:22:22] Production.INFO: ==29004== Releasing lock... [2025-01-24 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:23:06 [end_date_ymd] => 2025-01-24 01:23:06 [RateCDR] => 1 ) [2025-01-24 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:23:06' and `end` < '2025-01-24 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:23:18] Production.INFO: count ==654 [2025-01-24 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:23:06 - End Time 2025-01-24 01:23:06 [2025-01-24 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316268', 'tblTempUsageDetail_20' ) start [2025-01-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316268', 'tblTempUsageDetail_20' ) end [2025-01-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316268', 'tblTempVendorCDR_20' ) start [2025-01-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316268', 'tblTempVendorCDR_20' ) end [2025-01-24 01:23:18] Production.INFO: ProcessCDR(1,14316268,1,1,2) [2025-01-24 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316268', 'tblTempUsageDetail_20' ) start [2025-01-24 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316268', 'tblTempUsageDetail_20' ) end [2025-01-24 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:23:21] Production.INFO: ==29077== Releasing lock... [2025-01-24 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:24:04 [end_date_ymd] => 2025-01-24 01:24:04 [RateCDR] => 1 ) [2025-01-24 01:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:24:04' and `end` < '2025-01-24 01:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:24:18] Production.INFO: count ==654 [2025-01-24 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:24:04 - End Time 2025-01-24 01:24:04 [2025-01-24 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316273', 'tblTempUsageDetail_20' ) start [2025-01-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316273', 'tblTempUsageDetail_20' ) end [2025-01-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316273', 'tblTempVendorCDR_20' ) start [2025-01-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316273', 'tblTempVendorCDR_20' ) end [2025-01-24 01:24:18] Production.INFO: ProcessCDR(1,14316273,1,1,2) [2025-01-24 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316273', 'tblTempUsageDetail_20' ) start [2025-01-24 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316273', 'tblTempUsageDetail_20' ) end [2025-01-24 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:24:21] Production.INFO: ==29187== Releasing lock... [2025-01-24 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:25:05 [end_date_ymd] => 2025-01-24 01:25:05 [RateCDR] => 1 ) [2025-01-24 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:25:05' and `end` < '2025-01-24 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:25:18] Production.INFO: count ==652 [2025-01-24 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:25:05 - End Time 2025-01-24 01:25:05 [2025-01-24 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316278', 'tblTempUsageDetail_20' ) start [2025-01-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316278', 'tblTempUsageDetail_20' ) end [2025-01-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316278', 'tblTempVendorCDR_20' ) start [2025-01-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316278', 'tblTempVendorCDR_20' ) end [2025-01-24 01:25:18] Production.INFO: ProcessCDR(1,14316278,1,1,2) [2025-01-24 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316278', 'tblTempUsageDetail_20' ) start [2025-01-24 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316278', 'tblTempUsageDetail_20' ) end [2025-01-24 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:25:21] Production.INFO: ==29262== Releasing lock... [2025-01-24 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:26:06 [end_date_ymd] => 2025-01-24 01:26:06 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:26:06' and `end` < '2025-01-24 01: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-24 01:26:19] Production.INFO: count ==651 [2025-01-24 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:26:06 - End Time 2025-01-24 01:26:06 [2025-01-24 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316283', 'tblTempUsageDetail_20' ) start [2025-01-24 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316283', 'tblTempUsageDetail_20' ) end [2025-01-24 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316283', 'tblTempVendorCDR_20' ) start [2025-01-24 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316283', 'tblTempVendorCDR_20' ) end [2025-01-24 01:26:19] Production.INFO: ProcessCDR(1,14316283,1,1,2) [2025-01-24 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316283', 'tblTempUsageDetail_20' ) start [2025-01-24 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316283', 'tblTempUsageDetail_20' ) end [2025-01-24 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:26:22] Production.INFO: ==29335== Releasing lock... [2025-01-24 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:26:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:27:05 [end_date_ymd] => 2025-01-24 01:27:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:27:05' and `end` < '2025-01-24 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-24 01:27:17] Production.INFO: count ==651 [2025-01-24 01:27:17] Production.ERROR: pbx CDR StartTime 2025-01-23 22:27:05 - End Time 2025-01-24 01:27:05 [2025-01-24 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316288', 'tblTempUsageDetail_20' ) start [2025-01-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316288', 'tblTempUsageDetail_20' ) end [2025-01-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316288', 'tblTempVendorCDR_20' ) start [2025-01-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316288', 'tblTempVendorCDR_20' ) end [2025-01-24 01:27:17] Production.INFO: ProcessCDR(1,14316288,1,1,2) [2025-01-24 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316288', 'tblTempUsageDetail_20' ) start [2025-01-24 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316288', 'tblTempUsageDetail_20' ) end [2025-01-24 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:27:20] Production.INFO: ==29409== Releasing lock... [2025-01-24 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:27:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:28:05 [end_date_ymd] => 2025-01-24 01:28:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:28:05' and `end` < '2025-01-24 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-24 01:28:18] Production.INFO: count ==649 [2025-01-24 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:28:05 - End Time 2025-01-24 01:28:05 [2025-01-24 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316293', 'tblTempUsageDetail_20' ) start [2025-01-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316293', 'tblTempUsageDetail_20' ) end [2025-01-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316293', 'tblTempVendorCDR_20' ) start [2025-01-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316293', 'tblTempVendorCDR_20' ) end [2025-01-24 01:28:18] Production.INFO: ProcessCDR(1,14316293,1,1,2) [2025-01-24 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316293', 'tblTempUsageDetail_20' ) start [2025-01-24 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316293', 'tblTempUsageDetail_20' ) end [2025-01-24 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:28:21] Production.INFO: ==29481== Releasing lock... [2025-01-24 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:29:05 [end_date_ymd] => 2025-01-24 01:29:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:29:05' and `end` < '2025-01-24 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-24 01:29:18] Production.INFO: count ==648 [2025-01-24 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:29:05 - End Time 2025-01-24 01:29:05 [2025-01-24 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316298', 'tblTempUsageDetail_20' ) start [2025-01-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316298', 'tblTempUsageDetail_20' ) end [2025-01-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316298', 'tblTempVendorCDR_20' ) start [2025-01-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316298', 'tblTempVendorCDR_20' ) end [2025-01-24 01:29:18] Production.INFO: ProcessCDR(1,14316298,1,1,2) [2025-01-24 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316298', 'tblTempUsageDetail_20' ) start [2025-01-24 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316298', 'tblTempUsageDetail_20' ) end [2025-01-24 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:29:21] Production.INFO: ==29550== Releasing lock... [2025-01-24 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:30:06 [end_date_ymd] => 2025-01-24 01:30:06 [RateCDR] => 1 ) [2025-01-24 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:30:06' and `end` < '2025-01-24 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:30:18] Production.INFO: count ==663 [2025-01-24 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:30:06 - End Time 2025-01-24 01:30:06 [2025-01-24 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316303', 'tblTempUsageDetail_20' ) start [2025-01-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316303', 'tblTempUsageDetail_20' ) end [2025-01-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316303', 'tblTempVendorCDR_20' ) start [2025-01-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316303', 'tblTempVendorCDR_20' ) end [2025-01-24 01:30:19] Production.INFO: ProcessCDR(1,14316303,1,1,2) [2025-01-24 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316303', 'tblTempUsageDetail_20' ) start [2025-01-24 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316303', 'tblTempUsageDetail_20' ) end [2025-01-24 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:30:22] Production.INFO: ==29626== Releasing lock... [2025-01-24 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:31:05 [end_date_ymd] => 2025-01-24 01:31:05 [RateCDR] => 1 ) [2025-01-24 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:31:05' and `end` < '2025-01-24 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:31:18] Production.INFO: count ==675 [2025-01-24 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:31:05 - End Time 2025-01-24 01:31:05 [2025-01-24 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316309', 'tblTempUsageDetail_20' ) start [2025-01-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316309', 'tblTempUsageDetail_20' ) end [2025-01-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316309', 'tblTempVendorCDR_20' ) start [2025-01-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316309', 'tblTempVendorCDR_20' ) end [2025-01-24 01:31:18] Production.INFO: ProcessCDR(1,14316309,1,1,2) [2025-01-24 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316309', 'tblTempUsageDetail_20' ) start [2025-01-24 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316309', 'tblTempUsageDetail_20' ) end [2025-01-24 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:31:21] Production.INFO: ==29705== Releasing lock... [2025-01-24 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:32:05 [end_date_ymd] => 2025-01-24 01:32:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:32:05' and `end` < '2025-01-24 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-24 01:32:17] Production.INFO: count ==679 [2025-01-24 01:32:17] Production.ERROR: pbx CDR StartTime 2025-01-23 22:32:05 - End Time 2025-01-24 01:32:05 [2025-01-24 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316314', 'tblTempUsageDetail_20' ) start [2025-01-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316314', 'tblTempUsageDetail_20' ) end [2025-01-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316314', 'tblTempVendorCDR_20' ) start [2025-01-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316314', 'tblTempVendorCDR_20' ) end [2025-01-24 01:32:17] Production.INFO: ProcessCDR(1,14316314,1,1,2) [2025-01-24 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316314', 'tblTempUsageDetail_20' ) start [2025-01-24 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316314', 'tblTempUsageDetail_20' ) end [2025-01-24 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:32:21] Production.INFO: ==29780== Releasing lock... [2025-01-24 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:33:05 [end_date_ymd] => 2025-01-24 01:33:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:33:05' and `end` < '2025-01-24 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-24 01:33:18] Production.INFO: count ==681 [2025-01-24 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:33:05 - End Time 2025-01-24 01:33:05 [2025-01-24 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316319', 'tblTempUsageDetail_20' ) start [2025-01-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316319', 'tblTempUsageDetail_20' ) end [2025-01-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316319', 'tblTempVendorCDR_20' ) start [2025-01-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316319', 'tblTempVendorCDR_20' ) end [2025-01-24 01:33:18] Production.INFO: ProcessCDR(1,14316319,1,1,2) [2025-01-24 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316319', 'tblTempUsageDetail_20' ) start [2025-01-24 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316319', 'tblTempUsageDetail_20' ) end [2025-01-24 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:33:22] Production.INFO: ==29849== Releasing lock... [2025-01-24 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:33:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:34:06 [end_date_ymd] => 2025-01-24 01:34:06 [RateCDR] => 1 ) [2025-01-24 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-23 22:34:06' and `end` < '2025-01-24 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-24 01:34:18] Production.INFO: count ==679 [2025-01-24 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:34:06 - End Time 2025-01-24 01:34:06 [2025-01-24 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316324', 'tblTempUsageDetail_20' ) start [2025-01-24 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316324', 'tblTempUsageDetail_20' ) end [2025-01-24 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316324', 'tblTempVendorCDR_20' ) start [2025-01-24 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316324', 'tblTempVendorCDR_20' ) end [2025-01-24 01:34:18] Production.INFO: ProcessCDR(1,14316324,1,1,2) [2025-01-24 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316324', 'tblTempUsageDetail_20' ) start [2025-01-24 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316324', 'tblTempUsageDetail_20' ) end [2025-01-24 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:34:22] Production.INFO: ==29926== Releasing lock... [2025-01-24 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:34:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:35:06 [end_date_ymd] => 2025-01-24 01:35:06 [RateCDR] => 1 ) [2025-01-24 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:35:06' and `end` < '2025-01-24 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:35:18] Production.INFO: count ==679 [2025-01-24 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:35:06 - End Time 2025-01-24 01:35:06 [2025-01-24 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316329', 'tblTempUsageDetail_20' ) start [2025-01-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316329', 'tblTempUsageDetail_20' ) end [2025-01-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316329', 'tblTempVendorCDR_20' ) start [2025-01-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316329', 'tblTempVendorCDR_20' ) end [2025-01-24 01:35:18] Production.INFO: ProcessCDR(1,14316329,1,1,2) [2025-01-24 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316329', 'tblTempUsageDetail_20' ) start [2025-01-24 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316329', 'tblTempUsageDetail_20' ) end [2025-01-24 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:35:22] Production.INFO: ==29999== Releasing lock... [2025-01-24 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:36:05 [end_date_ymd] => 2025-01-24 01:36:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:36:05' and `end` < '2025-01-24 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-24 01:36:19] Production.INFO: count ==678 [2025-01-24 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:36:05 - End Time 2025-01-24 01:36:05 [2025-01-24 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316334', 'tblTempUsageDetail_20' ) start [2025-01-24 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316334', 'tblTempUsageDetail_20' ) end [2025-01-24 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316334', 'tblTempVendorCDR_20' ) start [2025-01-24 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316334', 'tblTempVendorCDR_20' ) end [2025-01-24 01:36:19] Production.INFO: ProcessCDR(1,14316334,1,1,2) [2025-01-24 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316334', 'tblTempUsageDetail_20' ) start [2025-01-24 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316334', 'tblTempUsageDetail_20' ) end [2025-01-24 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:36:22] Production.INFO: ==30071== Releasing lock... [2025-01-24 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:36:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:37:05 [end_date_ymd] => 2025-01-24 01:37:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:37:05' and `end` < '2025-01-24 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-24 01:37:18] Production.INFO: count ==678 [2025-01-24 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:37:05 - End Time 2025-01-24 01:37:05 [2025-01-24 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316339', 'tblTempUsageDetail_20' ) start [2025-01-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316339', 'tblTempUsageDetail_20' ) end [2025-01-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316339', 'tblTempVendorCDR_20' ) start [2025-01-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316339', 'tblTempVendorCDR_20' ) end [2025-01-24 01:37:18] Production.INFO: ProcessCDR(1,14316339,1,1,2) [2025-01-24 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316339', 'tblTempUsageDetail_20' ) start [2025-01-24 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316339', 'tblTempUsageDetail_20' ) end [2025-01-24 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:37:21] Production.INFO: ==30143== Releasing lock... [2025-01-24 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:38:06 [end_date_ymd] => 2025-01-24 01:38:06 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:38:06' and `end` < '2025-01-24 01: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-24 01:38:19] Production.INFO: count ==678 [2025-01-24 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:38:06 - End Time 2025-01-24 01:38:06 [2025-01-24 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316344', 'tblTempUsageDetail_20' ) start [2025-01-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316344', 'tblTempUsageDetail_20' ) end [2025-01-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316344', 'tblTempVendorCDR_20' ) start [2025-01-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316344', 'tblTempVendorCDR_20' ) end [2025-01-24 01:38:19] Production.INFO: ProcessCDR(1,14316344,1,1,2) [2025-01-24 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316344', 'tblTempUsageDetail_20' ) start [2025-01-24 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316344', 'tblTempUsageDetail_20' ) end [2025-01-24 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:38:23] Production.INFO: ==30217== Releasing lock... [2025-01-24 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:38:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:39:06 [end_date_ymd] => 2025-01-24 01:39:06 [RateCDR] => 1 ) [2025-01-24 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:39:06' and `end` < '2025-01-24 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:39:18] Production.INFO: count ==678 [2025-01-24 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:39:06 - End Time 2025-01-24 01:39:06 [2025-01-24 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316349', 'tblTempUsageDetail_20' ) start [2025-01-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316349', 'tblTempUsageDetail_20' ) end [2025-01-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316349', 'tblTempVendorCDR_20' ) start [2025-01-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316349', 'tblTempVendorCDR_20' ) end [2025-01-24 01:39:18] Production.INFO: ProcessCDR(1,14316349,1,1,2) [2025-01-24 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316349', 'tblTempUsageDetail_20' ) start [2025-01-24 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316349', 'tblTempUsageDetail_20' ) end [2025-01-24 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:39:22] Production.INFO: ==30288== Releasing lock... [2025-01-24 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:40:07 [end_date_ymd] => 2025-01-24 01:40:07 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:40:07' and `end` < '2025-01-24 01: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-24 01:40:19] Production.INFO: count ==692 [2025-01-24 01:40:20] Production.ERROR: pbx CDR StartTime 2025-01-23 22:40:07 - End Time 2025-01-24 01:40:07 [2025-01-24 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316355', 'tblTempUsageDetail_20' ) start [2025-01-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316355', 'tblTempUsageDetail_20' ) end [2025-01-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316355', 'tblTempVendorCDR_20' ) start [2025-01-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316355', 'tblTempVendorCDR_20' ) end [2025-01-24 01:40:20] Production.INFO: ProcessCDR(1,14316355,1,1,2) [2025-01-24 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316355', 'tblTempUsageDetail_20' ) start [2025-01-24 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316355', 'tblTempUsageDetail_20' ) end [2025-01-24 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:40:23] Production.INFO: ==30403== Releasing lock... [2025-01-24 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:40:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:41:05 [end_date_ymd] => 2025-01-24 01:41:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:41:05' and `end` < '2025-01-24 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-24 01:41:18] Production.INFO: count ==691 [2025-01-24 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:41:05 - End Time 2025-01-24 01:41:05 [2025-01-24 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316360', 'tblTempUsageDetail_20' ) start [2025-01-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316360', 'tblTempUsageDetail_20' ) end [2025-01-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316360', 'tblTempVendorCDR_20' ) start [2025-01-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316360', 'tblTempVendorCDR_20' ) end [2025-01-24 01:41:18] Production.INFO: ProcessCDR(1,14316360,1,1,2) [2025-01-24 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316360', 'tblTempUsageDetail_20' ) start [2025-01-24 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316360', 'tblTempUsageDetail_20' ) end [2025-01-24 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:41:22] Production.INFO: ==30477== Releasing lock... [2025-01-24 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:42:06 [end_date_ymd] => 2025-01-24 01:42:06 [RateCDR] => 1 ) [2025-01-24 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:42:06' and `end` < '2025-01-24 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:42:18] Production.INFO: count ==690 [2025-01-24 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:42:06 - End Time 2025-01-24 01:42:06 [2025-01-24 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316365', 'tblTempUsageDetail_20' ) start [2025-01-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316365', 'tblTempUsageDetail_20' ) end [2025-01-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316365', 'tblTempVendorCDR_20' ) start [2025-01-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316365', 'tblTempVendorCDR_20' ) end [2025-01-24 01:42:18] Production.INFO: ProcessCDR(1,14316365,1,1,2) [2025-01-24 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316365', 'tblTempUsageDetail_20' ) start [2025-01-24 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316365', 'tblTempUsageDetail_20' ) end [2025-01-24 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:42:22] Production.INFO: ==30551== Releasing lock... [2025-01-24 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:42:22] Production.INFO: 34 MB #Memory Used# [2025-01-24 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:43:06 [end_date_ymd] => 2025-01-24 01:43:06 [RateCDR] => 1 ) [2025-01-24 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-23 22:43:06' and `end` < '2025-01-24 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-24 01:43:20] Production.INFO: count ==691 [2025-01-24 01:43:20] Production.ERROR: pbx CDR StartTime 2025-01-23 22:43:06 - End Time 2025-01-24 01:43:06 [2025-01-24 01:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316370', 'tblTempUsageDetail_20' ) start [2025-01-24 01:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316370', 'tblTempUsageDetail_20' ) end [2025-01-24 01:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316370', 'tblTempVendorCDR_20' ) start [2025-01-24 01:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316370', 'tblTempVendorCDR_20' ) end [2025-01-24 01:43:21] Production.INFO: ProcessCDR(1,14316370,1,1,2) [2025-01-24 01:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316370', 'tblTempUsageDetail_20' ) start [2025-01-24 01:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316370', 'tblTempUsageDetail_20' ) end [2025-01-24 01:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:43:24] Production.INFO: ==30631== Releasing lock... [2025-01-24 01:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:43:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:44:06 [end_date_ymd] => 2025-01-24 01:44:06 [RateCDR] => 1 ) [2025-01-24 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:44:06' and `end` < '2025-01-24 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:44:18] Production.INFO: count ==691 [2025-01-24 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:44:06 - End Time 2025-01-24 01:44:06 [2025-01-24 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316375', 'tblTempUsageDetail_20' ) start [2025-01-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316375', 'tblTempUsageDetail_20' ) end [2025-01-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316375', 'tblTempVendorCDR_20' ) start [2025-01-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316375', 'tblTempVendorCDR_20' ) end [2025-01-24 01:44:18] Production.INFO: ProcessCDR(1,14316375,1,1,2) [2025-01-24 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316375', 'tblTempUsageDetail_20' ) start [2025-01-24 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316375', 'tblTempUsageDetail_20' ) end [2025-01-24 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:44:22] Production.INFO: ==30707== Releasing lock... [2025-01-24 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:45:05 [end_date_ymd] => 2025-01-24 01:45:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:45:05' and `end` < '2025-01-24 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-24 01:45:18] Production.INFO: count ==690 [2025-01-24 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:45:05 - End Time 2025-01-24 01:45:05 [2025-01-24 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316380', 'tblTempUsageDetail_20' ) start [2025-01-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316380', 'tblTempUsageDetail_20' ) end [2025-01-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316380', 'tblTempVendorCDR_20' ) start [2025-01-24 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316380', 'tblTempVendorCDR_20' ) end [2025-01-24 01:45:18] Production.INFO: ProcessCDR(1,14316380,1,1,2) [2025-01-24 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316380', 'tblTempUsageDetail_20' ) start [2025-01-24 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316380', 'tblTempUsageDetail_20' ) end [2025-01-24 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:45:21] Production.INFO: ==30778== Releasing lock... [2025-01-24 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-24 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:46:06 [end_date_ymd] => 2025-01-24 01:46:06 [RateCDR] => 1 ) [2025-01-24 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:46:06' and `end` < '2025-01-24 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:46:19] Production.INFO: count ==689 [2025-01-24 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:46:06 - End Time 2025-01-24 01:46:06 [2025-01-24 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316385', 'tblTempUsageDetail_20' ) start [2025-01-24 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316385', 'tblTempUsageDetail_20' ) end [2025-01-24 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316385', 'tblTempVendorCDR_20' ) start [2025-01-24 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316385', 'tblTempVendorCDR_20' ) end [2025-01-24 01:46:19] Production.INFO: ProcessCDR(1,14316385,1,1,2) [2025-01-24 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316385', 'tblTempUsageDetail_20' ) start [2025-01-24 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316385', 'tblTempUsageDetail_20' ) end [2025-01-24 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:46:23] Production.INFO: ==30852== Releasing lock... [2025-01-24 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:47:06 [end_date_ymd] => 2025-01-24 01:47:06 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:47:06' and `end` < '2025-01-24 01: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-24 01:47:18] Production.INFO: count ==692 [2025-01-24 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:47:06 - End Time 2025-01-24 01:47:06 [2025-01-24 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316390', 'tblTempUsageDetail_20' ) start [2025-01-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316390', 'tblTempUsageDetail_20' ) end [2025-01-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316390', 'tblTempVendorCDR_20' ) start [2025-01-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316390', 'tblTempVendorCDR_20' ) end [2025-01-24 01:47:18] Production.INFO: ProcessCDR(1,14316390,1,1,2) [2025-01-24 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316390', 'tblTempUsageDetail_20' ) start [2025-01-24 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316390', 'tblTempUsageDetail_20' ) end [2025-01-24 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:47:22] Production.INFO: ==30927== Releasing lock... [2025-01-24 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:48:06 [end_date_ymd] => 2025-01-24 01:48:06 [RateCDR] => 1 ) [2025-01-24 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:48:06' and `end` < '2025-01-24 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:48:19] Production.INFO: count ==691 [2025-01-24 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:48:06 - End Time 2025-01-24 01:48:06 [2025-01-24 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316395', 'tblTempUsageDetail_20' ) start [2025-01-24 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316395', 'tblTempUsageDetail_20' ) end [2025-01-24 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316395', 'tblTempVendorCDR_20' ) start [2025-01-24 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316395', 'tblTempVendorCDR_20' ) end [2025-01-24 01:48:19] Production.INFO: ProcessCDR(1,14316395,1,1,2) [2025-01-24 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316395', 'tblTempUsageDetail_20' ) start [2025-01-24 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316395', 'tblTempUsageDetail_20' ) end [2025-01-24 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:48:23] Production.INFO: ==30997== Releasing lock... [2025-01-24 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:48:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:49:05 [end_date_ymd] => 2025-01-24 01:49:05 [RateCDR] => 1 ) [2025-01-24 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:49:05' and `end` < '2025-01-24 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:49:18] Production.INFO: count ==659 [2025-01-24 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:49:05 - End Time 2025-01-24 01:49:05 [2025-01-24 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316400', 'tblTempUsageDetail_20' ) start [2025-01-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316400', 'tblTempUsageDetail_20' ) end [2025-01-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316400', 'tblTempVendorCDR_20' ) start [2025-01-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316400', 'tblTempVendorCDR_20' ) end [2025-01-24 01:49:18] Production.INFO: ProcessCDR(1,14316400,1,1,2) [2025-01-24 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316400', 'tblTempUsageDetail_20' ) start [2025-01-24 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316400', 'tblTempUsageDetail_20' ) end [2025-01-24 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:49:21] Production.INFO: ==31070== Releasing lock... [2025-01-24 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:50:07 [end_date_ymd] => 2025-01-24 01:50:07 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:50:07' and `end` < '2025-01-24 01: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-24 01:50:20] Production.INFO: count ==627 [2025-01-24 01:50:20] Production.ERROR: pbx CDR StartTime 2025-01-23 22:50:07 - End Time 2025-01-24 01:50:07 [2025-01-24 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316406', 'tblTempUsageDetail_20' ) start [2025-01-24 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316406', 'tblTempUsageDetail_20' ) end [2025-01-24 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316406', 'tblTempVendorCDR_20' ) start [2025-01-24 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316406', 'tblTempVendorCDR_20' ) end [2025-01-24 01:50:20] Production.INFO: ProcessCDR(1,14316406,1,1,2) [2025-01-24 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316406', 'tblTempUsageDetail_20' ) start [2025-01-24 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316406', 'tblTempUsageDetail_20' ) end [2025-01-24 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:50:23] Production.INFO: ==31146== Releasing lock... [2025-01-24 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:51:05 [end_date_ymd] => 2025-01-24 01:51:05 [RateCDR] => 1 ) [2025-01-24 01: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-23 22:51:05' and `end` < '2025-01-24 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-24 01:51:18] Production.INFO: count ==583 [2025-01-24 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:51:05 - End Time 2025-01-24 01:51:05 [2025-01-24 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316411', 'tblTempUsageDetail_20' ) start [2025-01-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316411', 'tblTempUsageDetail_20' ) end [2025-01-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316411', 'tblTempVendorCDR_20' ) start [2025-01-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316411', 'tblTempVendorCDR_20' ) end [2025-01-24 01:51:18] Production.INFO: ProcessCDR(1,14316411,1,1,2) [2025-01-24 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316411', 'tblTempUsageDetail_20' ) start [2025-01-24 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316411', 'tblTempUsageDetail_20' ) end [2025-01-24 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:51:22] Production.INFO: ==31225== Releasing lock... [2025-01-24 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:52:05 [end_date_ymd] => 2025-01-24 01:52:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:52:05' and `end` < '2025-01-24 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-24 01:52:19] Production.INFO: count ==544 [2025-01-24 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:52:05 - End Time 2025-01-24 01:52:05 [2025-01-24 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316416', 'tblTempUsageDetail_20' ) start [2025-01-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316416', 'tblTempUsageDetail_20' ) end [2025-01-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316416', 'tblTempVendorCDR_20' ) start [2025-01-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316416', 'tblTempVendorCDR_20' ) end [2025-01-24 01:52:19] Production.INFO: ProcessCDR(1,14316416,1,1,2) [2025-01-24 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316416', 'tblTempUsageDetail_20' ) start [2025-01-24 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316416', 'tblTempUsageDetail_20' ) end [2025-01-24 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:52:22] Production.INFO: ==31295== Releasing lock... [2025-01-24 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:53:06 [end_date_ymd] => 2025-01-24 01:53:06 [RateCDR] => 1 ) [2025-01-24 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-23 22:53:06' and `end` < '2025-01-24 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-24 01:53:18] Production.INFO: count ==506 [2025-01-24 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:53:06 - End Time 2025-01-24 01:53:06 [2025-01-24 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316421', 'tblTempUsageDetail_20' ) start [2025-01-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316421', 'tblTempUsageDetail_20' ) end [2025-01-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316421', 'tblTempVendorCDR_20' ) start [2025-01-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316421', 'tblTempVendorCDR_20' ) end [2025-01-24 01:53:18] Production.INFO: ProcessCDR(1,14316421,1,1,2) [2025-01-24 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316421', 'tblTempUsageDetail_20' ) start [2025-01-24 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316421', 'tblTempUsageDetail_20' ) end [2025-01-24 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:53:22] Production.INFO: ==31367== Releasing lock... [2025-01-24 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-24 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:54:05 [end_date_ymd] => 2025-01-24 01:54:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:54:05' and `end` < '2025-01-24 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-24 01:54:18] Production.INFO: count ==478 [2025-01-24 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:54:05 - End Time 2025-01-24 01:54:05 [2025-01-24 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316426', 'tblTempUsageDetail_20' ) start [2025-01-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316426', 'tblTempUsageDetail_20' ) end [2025-01-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316426', 'tblTempVendorCDR_20' ) start [2025-01-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316426', 'tblTempVendorCDR_20' ) end [2025-01-24 01:54:18] Production.INFO: ProcessCDR(1,14316426,1,1,2) [2025-01-24 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316426', 'tblTempUsageDetail_20' ) start [2025-01-24 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316426', 'tblTempUsageDetail_20' ) end [2025-01-24 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:54:21] Production.INFO: ==31443== Releasing lock... [2025-01-24 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-24 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:55:06 [end_date_ymd] => 2025-01-24 01:55:06 [RateCDR] => 1 ) [2025-01-24 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:55:06' and `end` < '2025-01-24 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:55:19] Production.INFO: count ==437 [2025-01-24 01:55:20] Production.ERROR: pbx CDR StartTime 2025-01-23 22:55:06 - End Time 2025-01-24 01:55:06 [2025-01-24 01:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316431', 'tblTempUsageDetail_20' ) start [2025-01-24 01:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316431', 'tblTempUsageDetail_20' ) end [2025-01-24 01:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316431', 'tblTempVendorCDR_20' ) start [2025-01-24 01:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316431', 'tblTempVendorCDR_20' ) end [2025-01-24 01:55:20] Production.INFO: ProcessCDR(1,14316431,1,1,2) [2025-01-24 01:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316431', 'tblTempUsageDetail_20' ) start [2025-01-24 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316431', 'tblTempUsageDetail_20' ) end [2025-01-24 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:55:23] Production.INFO: ==31552== Releasing lock... [2025-01-24 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:55:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:56:05 [end_date_ymd] => 2025-01-24 01:56:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:56:05' and `end` < '2025-01-24 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-24 01:56:18] Production.INFO: count ==430 [2025-01-24 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:56:05 - End Time 2025-01-24 01:56:05 [2025-01-24 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316436', 'tblTempUsageDetail_20' ) start [2025-01-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316436', 'tblTempUsageDetail_20' ) end [2025-01-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316436', 'tblTempVendorCDR_20' ) start [2025-01-24 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316436', 'tblTempVendorCDR_20' ) end [2025-01-24 01:56:18] Production.INFO: ProcessCDR(1,14316436,1,1,2) [2025-01-24 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316436', 'tblTempUsageDetail_20' ) start [2025-01-24 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316436', 'tblTempUsageDetail_20' ) end [2025-01-24 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:56:23] Production.INFO: ==31628== Releasing lock... [2025-01-24 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:56:23] Production.INFO: 31 MB #Memory Used# [2025-01-24 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:57:05 [end_date_ymd] => 2025-01-24 01:57:05 [RateCDR] => 1 ) [2025-01-24 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 22:57:05' and `end` < '2025-01-24 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 01:57:19] Production.INFO: count ==417 [2025-01-24 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:57:05 - End Time 2025-01-24 01:57:05 [2025-01-24 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316441', 'tblTempUsageDetail_20' ) start [2025-01-24 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316441', 'tblTempUsageDetail_20' ) end [2025-01-24 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316441', 'tblTempVendorCDR_20' ) start [2025-01-24 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316441', 'tblTempVendorCDR_20' ) end [2025-01-24 01:57:19] Production.INFO: ProcessCDR(1,14316441,1,1,2) [2025-01-24 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316441', 'tblTempUsageDetail_20' ) start [2025-01-24 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316441', 'tblTempUsageDetail_20' ) end [2025-01-24 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:57:22] Production.INFO: ==31698== Releasing lock... [2025-01-24 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:58:05 [end_date_ymd] => 2025-01-24 01:58:05 [RateCDR] => 1 ) [2025-01-24 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-23 22:58:05' and `end` < '2025-01-24 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-24 01:58:18] Production.INFO: count ==377 [2025-01-24 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 22:58:05 - End Time 2025-01-24 01:58:05 [2025-01-24 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316446', 'tblTempUsageDetail_20' ) start [2025-01-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316446', 'tblTempUsageDetail_20' ) end [2025-01-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316446', 'tblTempVendorCDR_20' ) start [2025-01-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316446', 'tblTempVendorCDR_20' ) end [2025-01-24 01:58:18] Production.INFO: ProcessCDR(1,14316446,1,1,2) [2025-01-24 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316446', 'tblTempUsageDetail_20' ) start [2025-01-24 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316446', 'tblTempUsageDetail_20' ) end [2025-01-24 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:58:21] Production.INFO: ==31771== Releasing lock... [2025-01-24 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-24 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 22:59:06 [end_date_ymd] => 2025-01-24 01:59:06 [RateCDR] => 1 ) [2025-01-24 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-23 22:59:06' and `end` < '2025-01-24 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-24 01:59:19] Production.INFO: count ==376 [2025-01-24 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-23 22:59:06 - End Time 2025-01-24 01:59:06 [2025-01-24 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316451', 'tblTempUsageDetail_20' ) start [2025-01-24 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316451', 'tblTempUsageDetail_20' ) end [2025-01-24 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316451', 'tblTempVendorCDR_20' ) start [2025-01-24 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316451', 'tblTempVendorCDR_20' ) end [2025-01-24 01:59:19] Production.INFO: ProcessCDR(1,14316451,1,1,2) [2025-01-24 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316451', 'tblTempUsageDetail_20' ) start [2025-01-24 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316451', 'tblTempUsageDetail_20' ) end [2025-01-24 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 01:59:22] Production.INFO: ==31846== Releasing lock... [2025-01-24 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 01:59:22] Production.INFO: 30 MB #Memory Used# [2025-01-24 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:00:07 [end_date_ymd] => 2025-01-24 02:00:07 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:00:07' and `end` < '2025-01-24 02: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-24 02:00:19] Production.INFO: count ==384 [2025-01-24 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:00:07 - End Time 2025-01-24 02:00:07 [2025-01-24 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316456', 'tblTempUsageDetail_20' ) start [2025-01-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316456', 'tblTempUsageDetail_20' ) end [2025-01-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316456', 'tblTempVendorCDR_20' ) start [2025-01-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316456', 'tblTempVendorCDR_20' ) end [2025-01-24 02:00:19] Production.INFO: ProcessCDR(1,14316456,1,1,2) [2025-01-24 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316456', 'tblTempUsageDetail_20' ) start [2025-01-24 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316456', 'tblTempUsageDetail_20' ) end [2025-01-24 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:00:24] Production.INFO: ==31921== Releasing lock... [2025-01-24 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:00:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:01:06 [end_date_ymd] => 2025-01-24 02:01:06 [RateCDR] => 1 ) [2025-01-24 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:01:06' and `end` < '2025-01-24 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:01:19] Production.INFO: count ==388 [2025-01-24 02:01:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:01:06 - End Time 2025-01-24 02:01:06 [2025-01-24 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316462', 'tblTempUsageDetail_20' ) start [2025-01-24 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316462', 'tblTempUsageDetail_20' ) end [2025-01-24 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316462', 'tblTempVendorCDR_20' ) start [2025-01-24 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316462', 'tblTempVendorCDR_20' ) end [2025-01-24 02:01:19] Production.INFO: ProcessCDR(1,14316462,1,1,2) [2025-01-24 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316462', 'tblTempUsageDetail_20' ) start [2025-01-24 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316462', 'tblTempUsageDetail_20' ) end [2025-01-24 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:01:22] Production.INFO: ==32097== Releasing lock... [2025-01-24 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:02:05 [end_date_ymd] => 2025-01-24 02:02:05 [RateCDR] => 1 ) [2025-01-24 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:02:05' and `end` < '2025-01-24 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:02:19] Production.INFO: count ==390 [2025-01-24 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:02:05 - End Time 2025-01-24 02:02:05 [2025-01-24 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316467', 'tblTempUsageDetail_20' ) start [2025-01-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316467', 'tblTempUsageDetail_20' ) end [2025-01-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316467', 'tblTempVendorCDR_20' ) start [2025-01-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316467', 'tblTempVendorCDR_20' ) end [2025-01-24 02:02:19] Production.INFO: ProcessCDR(1,14316467,1,1,2) [2025-01-24 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316467', 'tblTempUsageDetail_20' ) start [2025-01-24 02:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316467', 'tblTempUsageDetail_20' ) end [2025-01-24 02:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:02:25] Production.INFO: ==32169== Releasing lock... [2025-01-24 02:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:02:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:03:05 [end_date_ymd] => 2025-01-24 02:03:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:03:05' and `end` < '2025-01-24 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-24 02:03:18] Production.INFO: count ==392 [2025-01-24 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:03:05 - End Time 2025-01-24 02:03:05 [2025-01-24 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316472', 'tblTempUsageDetail_20' ) start [2025-01-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316472', 'tblTempUsageDetail_20' ) end [2025-01-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316472', 'tblTempVendorCDR_20' ) start [2025-01-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316472', 'tblTempVendorCDR_20' ) end [2025-01-24 02:03:18] Production.INFO: ProcessCDR(1,14316472,1,1,2) [2025-01-24 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316472', 'tblTempUsageDetail_20' ) start [2025-01-24 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316472', 'tblTempUsageDetail_20' ) end [2025-01-24 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:03:22] Production.INFO: ==32241== Releasing lock... [2025-01-24 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:04:06 [end_date_ymd] => 2025-01-24 02:04:06 [RateCDR] => 1 ) [2025-01-24 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-23 23:04:06' and `end` < '2025-01-24 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-24 02:04:18] Production.INFO: count ==394 [2025-01-24 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:04:06 - End Time 2025-01-24 02:04:06 [2025-01-24 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316477', 'tblTempUsageDetail_20' ) start [2025-01-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316477', 'tblTempUsageDetail_20' ) end [2025-01-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316477', 'tblTempVendorCDR_20' ) start [2025-01-24 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316477', 'tblTempVendorCDR_20' ) end [2025-01-24 02:04:18] Production.INFO: ProcessCDR(1,14316477,1,1,2) [2025-01-24 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316477', 'tblTempUsageDetail_20' ) start [2025-01-24 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316477', 'tblTempUsageDetail_20' ) end [2025-01-24 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:04:23] Production.INFO: ==32317== Releasing lock... [2025-01-24 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:05:06 [end_date_ymd] => 2025-01-24 02:05:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:05:06' and `end` < '2025-01-24 02: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-24 02:05:18] Production.INFO: count ==393 [2025-01-24 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:05:06 - End Time 2025-01-24 02:05:06 [2025-01-24 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316482', 'tblTempUsageDetail_20' ) start [2025-01-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316482', 'tblTempUsageDetail_20' ) end [2025-01-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316482', 'tblTempVendorCDR_20' ) start [2025-01-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316482', 'tblTempVendorCDR_20' ) end [2025-01-24 02:05:18] Production.INFO: ProcessCDR(1,14316482,1,1,2) [2025-01-24 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316482', 'tblTempUsageDetail_20' ) start [2025-01-24 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316482', 'tblTempUsageDetail_20' ) end [2025-01-24 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:05:21] Production.INFO: ==32387== Releasing lock... [2025-01-24 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:06:05 [end_date_ymd] => 2025-01-24 02:06:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:06:05' and `end` < '2025-01-24 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-24 02:06:18] Production.INFO: count ==392 [2025-01-24 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:06:05 - End Time 2025-01-24 02:06:05 [2025-01-24 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316487', 'tblTempUsageDetail_20' ) start [2025-01-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316487', 'tblTempUsageDetail_20' ) end [2025-01-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316487', 'tblTempVendorCDR_20' ) start [2025-01-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316487', 'tblTempVendorCDR_20' ) end [2025-01-24 02:06:18] Production.INFO: ProcessCDR(1,14316487,1,1,2) [2025-01-24 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316487', 'tblTempUsageDetail_20' ) start [2025-01-24 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316487', 'tblTempUsageDetail_20' ) end [2025-01-24 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:06:21] Production.INFO: ==32459== Releasing lock... [2025-01-24 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:07:05 [end_date_ymd] => 2025-01-24 02:07:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:07:05' and `end` < '2025-01-24 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-24 02:07:17] Production.INFO: count ==394 [2025-01-24 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:07:05 - End Time 2025-01-24 02:07:05 [2025-01-24 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316492', 'tblTempUsageDetail_20' ) start [2025-01-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316492', 'tblTempUsageDetail_20' ) end [2025-01-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316492', 'tblTempVendorCDR_20' ) start [2025-01-24 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316492', 'tblTempVendorCDR_20' ) end [2025-01-24 02:07:17] Production.INFO: ProcessCDR(1,14316492,1,1,2) [2025-01-24 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316492', 'tblTempUsageDetail_20' ) start [2025-01-24 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316492', 'tblTempUsageDetail_20' ) end [2025-01-24 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:07:22] Production.INFO: ==32529== Releasing lock... [2025-01-24 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:08:06 [end_date_ymd] => 2025-01-24 02:08:06 [RateCDR] => 1 ) [2025-01-24 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:08:06' and `end` < '2025-01-24 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:08:19] Production.INFO: count ==394 [2025-01-24 02:08:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:08:06 - End Time 2025-01-24 02:08:06 [2025-01-24 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316497', 'tblTempUsageDetail_20' ) start [2025-01-24 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316497', 'tblTempUsageDetail_20' ) end [2025-01-24 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316497', 'tblTempVendorCDR_20' ) start [2025-01-24 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316497', 'tblTempVendorCDR_20' ) end [2025-01-24 02:08:19] Production.INFO: ProcessCDR(1,14316497,1,1,2) [2025-01-24 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316497', 'tblTempUsageDetail_20' ) start [2025-01-24 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316497', 'tblTempUsageDetail_20' ) end [2025-01-24 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:08:22] Production.INFO: ==32602== Releasing lock... [2025-01-24 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:09:06 [end_date_ymd] => 2025-01-24 02:09:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:09:06' and `end` < '2025-01-24 02: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-24 02:09:18] Production.INFO: count ==393 [2025-01-24 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:09:06 - End Time 2025-01-24 02:09:06 [2025-01-24 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316502', 'tblTempUsageDetail_20' ) start [2025-01-24 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316502', 'tblTempUsageDetail_20' ) end [2025-01-24 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316502', 'tblTempVendorCDR_20' ) start [2025-01-24 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316502', 'tblTempVendorCDR_20' ) end [2025-01-24 02:09:18] Production.INFO: ProcessCDR(1,14316502,1,1,2) [2025-01-24 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316502', 'tblTempUsageDetail_20' ) start [2025-01-24 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316502', 'tblTempUsageDetail_20' ) end [2025-01-24 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:09:22] Production.INFO: ==32672== Releasing lock... [2025-01-24 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:10:06 [end_date_ymd] => 2025-01-24 02:10:06 [RateCDR] => 1 ) [2025-01-24 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-23 23:10:06' and `end` < '2025-01-24 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-24 02:10:18] Production.INFO: count ==412 [2025-01-24 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:10:06 - End Time 2025-01-24 02:10:06 [2025-01-24 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316507', 'tblTempUsageDetail_20' ) start [2025-01-24 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316507', 'tblTempUsageDetail_20' ) end [2025-01-24 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316507', 'tblTempVendorCDR_20' ) start [2025-01-24 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316507', 'tblTempVendorCDR_20' ) end [2025-01-24 02:10:18] Production.INFO: ProcessCDR(1,14316507,1,1,2) [2025-01-24 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316507', 'tblTempUsageDetail_20' ) start [2025-01-24 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316507', 'tblTempUsageDetail_20' ) end [2025-01-24 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:10:22] Production.INFO: ==319== Releasing lock... [2025-01-24 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:11:06 [end_date_ymd] => 2025-01-24 02:11:06 [RateCDR] => 1 ) [2025-01-24 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:11:06' and `end` < '2025-01-24 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:11:19] Production.INFO: count ==418 [2025-01-24 02:11:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:11:06 - End Time 2025-01-24 02:11:06 [2025-01-24 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316513', 'tblTempUsageDetail_20' ) start [2025-01-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316513', 'tblTempUsageDetail_20' ) end [2025-01-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316513', 'tblTempVendorCDR_20' ) start [2025-01-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316513', 'tblTempVendorCDR_20' ) end [2025-01-24 02:11:19] Production.INFO: ProcessCDR(1,14316513,1,1,2) [2025-01-24 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316513', 'tblTempUsageDetail_20' ) start [2025-01-24 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316513', 'tblTempUsageDetail_20' ) end [2025-01-24 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:11:22] Production.INFO: ==416== Releasing lock... [2025-01-24 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:12:05 [end_date_ymd] => 2025-01-24 02:12:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:12:05' and `end` < '2025-01-24 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-24 02:12:18] Production.INFO: count ==420 [2025-01-24 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:12:05 - End Time 2025-01-24 02:12:05 [2025-01-24 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316518', 'tblTempUsageDetail_20' ) start [2025-01-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316518', 'tblTempUsageDetail_20' ) end [2025-01-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316518', 'tblTempVendorCDR_20' ) start [2025-01-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316518', 'tblTempVendorCDR_20' ) end [2025-01-24 02:12:18] Production.INFO: ProcessCDR(1,14316518,1,1,2) [2025-01-24 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316518', 'tblTempUsageDetail_20' ) start [2025-01-24 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316518', 'tblTempUsageDetail_20' ) end [2025-01-24 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:12:23] Production.INFO: ==487== Releasing lock... [2025-01-24 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:13:05 [end_date_ymd] => 2025-01-24 02:13:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:13:05' and `end` < '2025-01-24 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-24 02:13:21] Production.INFO: count ==420 [2025-01-24 02:13:21] Production.ERROR: pbx CDR StartTime 2025-01-23 23:13:05 - End Time 2025-01-24 02:13:05 [2025-01-24 02:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316523', 'tblTempUsageDetail_20' ) start [2025-01-24 02:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316523', 'tblTempUsageDetail_20' ) end [2025-01-24 02:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316523', 'tblTempVendorCDR_20' ) start [2025-01-24 02:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316523', 'tblTempVendorCDR_20' ) end [2025-01-24 02:13:21] Production.INFO: ProcessCDR(1,14316523,1,1,2) [2025-01-24 02:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316523', 'tblTempUsageDetail_20' ) start [2025-01-24 02:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316523', 'tblTempUsageDetail_20' ) end [2025-01-24 02:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:13:24] Production.INFO: ==563== Releasing lock... [2025-01-24 02:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:13:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:14:05 [end_date_ymd] => 2025-01-24 02:14:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:14:05' and `end` < '2025-01-24 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-24 02:14:18] Production.INFO: count ==420 [2025-01-24 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:14:05 - End Time 2025-01-24 02:14:05 [2025-01-24 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316528', 'tblTempUsageDetail_20' ) start [2025-01-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316528', 'tblTempUsageDetail_20' ) end [2025-01-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316528', 'tblTempVendorCDR_20' ) start [2025-01-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316528', 'tblTempVendorCDR_20' ) end [2025-01-24 02:14:18] Production.INFO: ProcessCDR(1,14316528,1,1,2) [2025-01-24 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316528', 'tblTempUsageDetail_20' ) start [2025-01-24 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316528', 'tblTempUsageDetail_20' ) end [2025-01-24 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:14:21] Production.INFO: ==643== Releasing lock... [2025-01-24 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:15:05 [end_date_ymd] => 2025-01-24 02:15:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:15:05' and `end` < '2025-01-24 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-24 02:15:17] Production.INFO: count ==420 [2025-01-24 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:15:05 - End Time 2025-01-24 02:15:05 [2025-01-24 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316533', 'tblTempUsageDetail_20' ) start [2025-01-24 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316533', 'tblTempUsageDetail_20' ) end [2025-01-24 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316533', 'tblTempVendorCDR_20' ) start [2025-01-24 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316533', 'tblTempVendorCDR_20' ) end [2025-01-24 02:15:17] Production.INFO: ProcessCDR(1,14316533,1,1,2) [2025-01-24 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316533', 'tblTempUsageDetail_20' ) start [2025-01-24 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316533', 'tblTempUsageDetail_20' ) end [2025-01-24 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:15:21] Production.INFO: ==747== Releasing lock... [2025-01-24 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:16:05 [end_date_ymd] => 2025-01-24 02:16:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:16:05' and `end` < '2025-01-24 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-24 02:16:18] Production.INFO: count ==419 [2025-01-24 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:16:05 - End Time 2025-01-24 02:16:05 [2025-01-24 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316538', 'tblTempUsageDetail_20' ) start [2025-01-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316538', 'tblTempUsageDetail_20' ) end [2025-01-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316538', 'tblTempVendorCDR_20' ) start [2025-01-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316538', 'tblTempVendorCDR_20' ) end [2025-01-24 02:16:18] Production.INFO: ProcessCDR(1,14316538,1,1,2) [2025-01-24 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316538', 'tblTempUsageDetail_20' ) start [2025-01-24 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316538', 'tblTempUsageDetail_20' ) end [2025-01-24 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:16:23] Production.INFO: ==820== Releasing lock... [2025-01-24 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:17:06 [end_date_ymd] => 2025-01-24 02:17:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:17:06' and `end` < '2025-01-24 02: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-24 02:17:19] Production.INFO: count ==418 [2025-01-24 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:17:06 - End Time 2025-01-24 02:17:06 [2025-01-24 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316543', 'tblTempUsageDetail_20' ) start [2025-01-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316543', 'tblTempUsageDetail_20' ) end [2025-01-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316543', 'tblTempVendorCDR_20' ) start [2025-01-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316543', 'tblTempVendorCDR_20' ) end [2025-01-24 02:17:19] Production.INFO: ProcessCDR(1,14316543,1,1,2) [2025-01-24 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316543', 'tblTempUsageDetail_20' ) start [2025-01-24 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316543', 'tblTempUsageDetail_20' ) end [2025-01-24 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:17:22] Production.INFO: ==891== Releasing lock... [2025-01-24 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:18:05 [end_date_ymd] => 2025-01-24 02:18:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:18:05' and `end` < '2025-01-24 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-24 02:18:19] Production.INFO: count ==422 [2025-01-24 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:18:05 - End Time 2025-01-24 02:18:05 [2025-01-24 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316548', 'tblTempUsageDetail_20' ) start [2025-01-24 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316548', 'tblTempUsageDetail_20' ) end [2025-01-24 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316548', 'tblTempVendorCDR_20' ) start [2025-01-24 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316548', 'tblTempVendorCDR_20' ) end [2025-01-24 02:18:19] Production.INFO: ProcessCDR(1,14316548,1,1,2) [2025-01-24 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316548', 'tblTempUsageDetail_20' ) start [2025-01-24 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316548', 'tblTempUsageDetail_20' ) end [2025-01-24 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:18:22] Production.INFO: ==962== Releasing lock... [2025-01-24 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:19:06 [end_date_ymd] => 2025-01-24 02:19:06 [RateCDR] => 1 ) [2025-01-24 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:19:06' and `end` < '2025-01-24 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:19:18] Production.INFO: count ==422 [2025-01-24 02:19:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:19:06 - End Time 2025-01-24 02:19:06 [2025-01-24 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316553', 'tblTempUsageDetail_20' ) start [2025-01-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316553', 'tblTempUsageDetail_20' ) end [2025-01-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316553', 'tblTempVendorCDR_20' ) start [2025-01-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316553', 'tblTempVendorCDR_20' ) end [2025-01-24 02:19:19] Production.INFO: ProcessCDR(1,14316553,1,1,2) [2025-01-24 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316553', 'tblTempUsageDetail_20' ) start [2025-01-24 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316553', 'tblTempUsageDetail_20' ) end [2025-01-24 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:19:22] Production.INFO: ==1035== Releasing lock... [2025-01-24 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:20:06 [end_date_ymd] => 2025-01-24 02:20:06 [RateCDR] => 1 ) [2025-01-24 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-23 23:20:06' and `end` < '2025-01-24 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-24 02:20:20] Production.INFO: count ==438 [2025-01-24 02:20:20] Production.ERROR: pbx CDR StartTime 2025-01-23 23:20:06 - End Time 2025-01-24 02:20:06 [2025-01-24 02:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316559', 'tblTempUsageDetail_20' ) start [2025-01-24 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316559', 'tblTempUsageDetail_20' ) end [2025-01-24 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316559', 'tblTempVendorCDR_20' ) start [2025-01-24 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316559', 'tblTempVendorCDR_20' ) end [2025-01-24 02:20:20] Production.INFO: ProcessCDR(1,14316559,1,1,2) [2025-01-24 02:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316559', 'tblTempUsageDetail_20' ) start [2025-01-24 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316559', 'tblTempUsageDetail_20' ) end [2025-01-24 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:20:23] Production.INFO: ==1105== Releasing lock... [2025-01-24 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:21:06 [end_date_ymd] => 2025-01-24 02:21:06 [RateCDR] => 1 ) [2025-01-24 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:21:06' and `end` < '2025-01-24 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:21:18] Production.INFO: count ==442 [2025-01-24 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:21:06 - End Time 2025-01-24 02:21:06 [2025-01-24 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316564', 'tblTempUsageDetail_20' ) start [2025-01-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316564', 'tblTempUsageDetail_20' ) end [2025-01-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316564', 'tblTempVendorCDR_20' ) start [2025-01-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316564', 'tblTempVendorCDR_20' ) end [2025-01-24 02:21:18] Production.INFO: ProcessCDR(1,14316564,1,1,2) [2025-01-24 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316564', 'tblTempUsageDetail_20' ) start [2025-01-24 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316564', 'tblTempUsageDetail_20' ) end [2025-01-24 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:21:21] Production.INFO: ==1188== Releasing lock... [2025-01-24 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:22:05 [end_date_ymd] => 2025-01-24 02:22:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:22:05' and `end` < '2025-01-24 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-24 02:22:18] Production.INFO: count ==441 [2025-01-24 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:22:05 - End Time 2025-01-24 02:22:05 [2025-01-24 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316569', 'tblTempUsageDetail_20' ) start [2025-01-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316569', 'tblTempUsageDetail_20' ) end [2025-01-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316569', 'tblTempVendorCDR_20' ) start [2025-01-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316569', 'tblTempVendorCDR_20' ) end [2025-01-24 02:22:18] Production.INFO: ProcessCDR(1,14316569,1,1,2) [2025-01-24 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316569', 'tblTempUsageDetail_20' ) start [2025-01-24 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316569', 'tblTempUsageDetail_20' ) end [2025-01-24 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:22:21] Production.INFO: ==1269== Releasing lock... [2025-01-24 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:23:05 [end_date_ymd] => 2025-01-24 02:23:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:23:05' and `end` < '2025-01-24 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-24 02:23:20] Production.INFO: count ==441 [2025-01-24 02:23:20] Production.ERROR: pbx CDR StartTime 2025-01-23 23:23:05 - End Time 2025-01-24 02:23:05 [2025-01-24 02:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316574', 'tblTempUsageDetail_20' ) start [2025-01-24 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316574', 'tblTempUsageDetail_20' ) end [2025-01-24 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316574', 'tblTempVendorCDR_20' ) start [2025-01-24 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316574', 'tblTempVendorCDR_20' ) end [2025-01-24 02:23:20] Production.INFO: ProcessCDR(1,14316574,1,1,2) [2025-01-24 02:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316574', 'tblTempUsageDetail_20' ) start [2025-01-24 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316574', 'tblTempUsageDetail_20' ) end [2025-01-24 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:23:23] Production.INFO: ==1340== Releasing lock... [2025-01-24 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:23:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:24:05 [end_date_ymd] => 2025-01-24 02:24:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:24:05' and `end` < '2025-01-24 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-24 02:24:19] Production.INFO: count ==441 [2025-01-24 02:24:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:24:05 - End Time 2025-01-24 02:24:05 [2025-01-24 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316579', 'tblTempUsageDetail_20' ) start [2025-01-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316579', 'tblTempUsageDetail_20' ) end [2025-01-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316579', 'tblTempVendorCDR_20' ) start [2025-01-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316579', 'tblTempVendorCDR_20' ) end [2025-01-24 02:24:19] Production.INFO: ProcessCDR(1,14316579,1,1,2) [2025-01-24 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316579', 'tblTempUsageDetail_20' ) start [2025-01-24 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316579', 'tblTempUsageDetail_20' ) end [2025-01-24 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:24:22] Production.INFO: ==1410== Releasing lock... [2025-01-24 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:25:05 [end_date_ymd] => 2025-01-24 02:25:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:25:05' and `end` < '2025-01-24 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-24 02:25:19] Production.INFO: count ==441 [2025-01-24 02:25:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:25:05 - End Time 2025-01-24 02:25:05 [2025-01-24 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316584', 'tblTempUsageDetail_20' ) start [2025-01-24 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316584', 'tblTempUsageDetail_20' ) end [2025-01-24 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316584', 'tblTempVendorCDR_20' ) start [2025-01-24 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316584', 'tblTempVendorCDR_20' ) end [2025-01-24 02:25:19] Production.INFO: ProcessCDR(1,14316584,1,1,2) [2025-01-24 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316584', 'tblTempUsageDetail_20' ) start [2025-01-24 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316584', 'tblTempUsageDetail_20' ) end [2025-01-24 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:25:22] Production.INFO: ==1482== Releasing lock... [2025-01-24 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:26:05 [end_date_ymd] => 2025-01-24 02:26:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:26:05' and `end` < '2025-01-24 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-24 02:26:18] Production.INFO: count ==442 [2025-01-24 02:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:26:05 - End Time 2025-01-24 02:26:05 [2025-01-24 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316589', 'tblTempUsageDetail_20' ) start [2025-01-24 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316589', 'tblTempUsageDetail_20' ) end [2025-01-24 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316589', 'tblTempVendorCDR_20' ) start [2025-01-24 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316589', 'tblTempVendorCDR_20' ) end [2025-01-24 02:26:19] Production.INFO: ProcessCDR(1,14316589,1,1,2) [2025-01-24 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316589', 'tblTempUsageDetail_20' ) start [2025-01-24 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316589', 'tblTempUsageDetail_20' ) end [2025-01-24 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:26:22] Production.INFO: ==1630== Releasing lock... [2025-01-24 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:27:06 [end_date_ymd] => 2025-01-24 02:27:06 [RateCDR] => 1 ) [2025-01-24 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:27:06' and `end` < '2025-01-24 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:27:19] Production.INFO: count ==442 [2025-01-24 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:27:06 - End Time 2025-01-24 02:27:06 [2025-01-24 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316594', 'tblTempUsageDetail_20' ) start [2025-01-24 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316594', 'tblTempUsageDetail_20' ) end [2025-01-24 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316594', 'tblTempVendorCDR_20' ) start [2025-01-24 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316594', 'tblTempVendorCDR_20' ) end [2025-01-24 02:27:19] Production.INFO: ProcessCDR(1,14316594,1,1,2) [2025-01-24 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316594', 'tblTempUsageDetail_20' ) start [2025-01-24 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316594', 'tblTempUsageDetail_20' ) end [2025-01-24 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:27:22] Production.INFO: ==1703== Releasing lock... [2025-01-24 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:28:05 [end_date_ymd] => 2025-01-24 02:28:05 [RateCDR] => 1 ) [2025-01-24 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:28:05' and `end` < '2025-01-24 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:28:18] Production.INFO: count ==441 [2025-01-24 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:28:05 - End Time 2025-01-24 02:28:05 [2025-01-24 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316599', 'tblTempUsageDetail_20' ) start [2025-01-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316599', 'tblTempUsageDetail_20' ) end [2025-01-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316599', 'tblTempVendorCDR_20' ) start [2025-01-24 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316599', 'tblTempVendorCDR_20' ) end [2025-01-24 02:28:18] Production.INFO: ProcessCDR(1,14316599,1,1,2) [2025-01-24 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316599', 'tblTempUsageDetail_20' ) start [2025-01-24 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316599', 'tblTempUsageDetail_20' ) end [2025-01-24 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:28:21] Production.INFO: ==1773== Releasing lock... [2025-01-24 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:29:06 [end_date_ymd] => 2025-01-24 02:29:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:29:06' and `end` < '2025-01-24 02: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-24 02:29:19] Production.INFO: count ==440 [2025-01-24 02:29:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:29:06 - End Time 2025-01-24 02:29:06 [2025-01-24 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316604', 'tblTempUsageDetail_20' ) start [2025-01-24 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316604', 'tblTempUsageDetail_20' ) end [2025-01-24 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316604', 'tblTempVendorCDR_20' ) start [2025-01-24 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316604', 'tblTempVendorCDR_20' ) end [2025-01-24 02:29:19] Production.INFO: ProcessCDR(1,14316604,1,1,2) [2025-01-24 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316604', 'tblTempUsageDetail_20' ) start [2025-01-24 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316604', 'tblTempUsageDetail_20' ) end [2025-01-24 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:29:22] Production.INFO: ==1855== Releasing lock... [2025-01-24 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:30:06 [end_date_ymd] => 2025-01-24 02:30:06 [RateCDR] => 1 ) [2025-01-24 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:30:06' and `end` < '2025-01-24 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:30:19] Production.INFO: count ==447 [2025-01-24 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:30:06 - End Time 2025-01-24 02:30:06 [2025-01-24 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316610', 'tblTempUsageDetail_20' ) start [2025-01-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316610', 'tblTempUsageDetail_20' ) end [2025-01-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316610', 'tblTempVendorCDR_20' ) start [2025-01-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316610', 'tblTempVendorCDR_20' ) end [2025-01-24 02:30:19] Production.INFO: ProcessCDR(1,14316610,1,1,2) [2025-01-24 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316610', 'tblTempUsageDetail_20' ) start [2025-01-24 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316610', 'tblTempUsageDetail_20' ) end [2025-01-24 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:30:22] Production.INFO: ==1943== Releasing lock... [2025-01-24 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:31:06 [end_date_ymd] => 2025-01-24 02:31:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:31:06' and `end` < '2025-01-24 02: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-24 02:31:18] Production.INFO: count ==456 [2025-01-24 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:31:06 - End Time 2025-01-24 02:31:06 [2025-01-24 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316615', 'tblTempUsageDetail_20' ) start [2025-01-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316615', 'tblTempUsageDetail_20' ) end [2025-01-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316615', 'tblTempVendorCDR_20' ) start [2025-01-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316615', 'tblTempVendorCDR_20' ) end [2025-01-24 02:31:18] Production.INFO: ProcessCDR(1,14316615,1,1,2) [2025-01-24 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316615', 'tblTempUsageDetail_20' ) start [2025-01-24 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316615', 'tblTempUsageDetail_20' ) end [2025-01-24 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:31:22] Production.INFO: ==2040== Releasing lock... [2025-01-24 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:32:05 [end_date_ymd] => 2025-01-24 02:32:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:32:05' and `end` < '2025-01-24 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-24 02:32:19] Production.INFO: count ==456 [2025-01-24 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:32:05 - End Time 2025-01-24 02:32:05 [2025-01-24 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316620', 'tblTempUsageDetail_20' ) start [2025-01-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316620', 'tblTempUsageDetail_20' ) end [2025-01-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316620', 'tblTempVendorCDR_20' ) start [2025-01-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316620', 'tblTempVendorCDR_20' ) end [2025-01-24 02:32:19] Production.INFO: ProcessCDR(1,14316620,1,1,2) [2025-01-24 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316620', 'tblTempUsageDetail_20' ) start [2025-01-24 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316620', 'tblTempUsageDetail_20' ) end [2025-01-24 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:32:22] Production.INFO: ==2116== Releasing lock... [2025-01-24 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:33:05 [end_date_ymd] => 2025-01-24 02:33:05 [RateCDR] => 1 ) [2025-01-24 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:33:05' and `end` < '2025-01-24 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:33:18] Production.INFO: count ==456 [2025-01-24 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:33:05 - End Time 2025-01-24 02:33:05 [2025-01-24 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316625', 'tblTempUsageDetail_20' ) start [2025-01-24 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316625', 'tblTempUsageDetail_20' ) end [2025-01-24 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316625', 'tblTempVendorCDR_20' ) start [2025-01-24 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316625', 'tblTempVendorCDR_20' ) end [2025-01-24 02:33:19] Production.INFO: ProcessCDR(1,14316625,1,1,2) [2025-01-24 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316625', 'tblTempUsageDetail_20' ) start [2025-01-24 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316625', 'tblTempUsageDetail_20' ) end [2025-01-24 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:33:22] Production.INFO: ==2217== Releasing lock... [2025-01-24 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:34:05 [end_date_ymd] => 2025-01-24 02:34:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:34:05' and `end` < '2025-01-24 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-24 02:34:18] Production.INFO: count ==456 [2025-01-24 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:34:05 - End Time 2025-01-24 02:34:05 [2025-01-24 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316630', 'tblTempUsageDetail_20' ) start [2025-01-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316630', 'tblTempUsageDetail_20' ) end [2025-01-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316630', 'tblTempVendorCDR_20' ) start [2025-01-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316630', 'tblTempVendorCDR_20' ) end [2025-01-24 02:34:18] Production.INFO: ProcessCDR(1,14316630,1,1,2) [2025-01-24 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316630', 'tblTempUsageDetail_20' ) start [2025-01-24 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316630', 'tblTempUsageDetail_20' ) end [2025-01-24 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:34:21] Production.INFO: ==2297== Releasing lock... [2025-01-24 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:35:05 [end_date_ymd] => 2025-01-24 02:35:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:35:05' and `end` < '2025-01-24 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-24 02:35:19] Production.INFO: count ==456 [2025-01-24 02:35:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:35:05 - End Time 2025-01-24 02:35:05 [2025-01-24 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316635', 'tblTempUsageDetail_20' ) start [2025-01-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316635', 'tblTempUsageDetail_20' ) end [2025-01-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316635', 'tblTempVendorCDR_20' ) start [2025-01-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316635', 'tblTempVendorCDR_20' ) end [2025-01-24 02:35:19] Production.INFO: ProcessCDR(1,14316635,1,1,2) [2025-01-24 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316635', 'tblTempUsageDetail_20' ) start [2025-01-24 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316635', 'tblTempUsageDetail_20' ) end [2025-01-24 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:35:22] Production.INFO: ==2396== Releasing lock... [2025-01-24 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:36:05 [end_date_ymd] => 2025-01-24 02:36:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:36:05' and `end` < '2025-01-24 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-24 02:36:18] Production.INFO: count ==456 [2025-01-24 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:36:05 - End Time 2025-01-24 02:36:05 [2025-01-24 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316640', 'tblTempUsageDetail_20' ) start [2025-01-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316640', 'tblTempUsageDetail_20' ) end [2025-01-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316640', 'tblTempVendorCDR_20' ) start [2025-01-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316640', 'tblTempVendorCDR_20' ) end [2025-01-24 02:36:18] Production.INFO: ProcessCDR(1,14316640,1,1,2) [2025-01-24 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316640', 'tblTempUsageDetail_20' ) start [2025-01-24 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316640', 'tblTempUsageDetail_20' ) end [2025-01-24 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:36:21] Production.INFO: ==2478== Releasing lock... [2025-01-24 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:37:05 [end_date_ymd] => 2025-01-24 02:37:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:37:05' and `end` < '2025-01-24 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-24 02:37:18] Production.INFO: count ==456 [2025-01-24 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:37:05 - End Time 2025-01-24 02:37:05 [2025-01-24 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316645', 'tblTempUsageDetail_20' ) start [2025-01-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316645', 'tblTempUsageDetail_20' ) end [2025-01-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316645', 'tblTempVendorCDR_20' ) start [2025-01-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316645', 'tblTempVendorCDR_20' ) end [2025-01-24 02:37:18] Production.INFO: ProcessCDR(1,14316645,1,1,2) [2025-01-24 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316645', 'tblTempUsageDetail_20' ) start [2025-01-24 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316645', 'tblTempUsageDetail_20' ) end [2025-01-24 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:37:21] Production.INFO: ==2576== Releasing lock... [2025-01-24 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:38:05 [end_date_ymd] => 2025-01-24 02:38:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:38:05' and `end` < '2025-01-24 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-24 02:38:18] Production.INFO: count ==455 [2025-01-24 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:38:05 - End Time 2025-01-24 02:38:05 [2025-01-24 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316650', 'tblTempUsageDetail_20' ) start [2025-01-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316650', 'tblTempUsageDetail_20' ) end [2025-01-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316650', 'tblTempVendorCDR_20' ) start [2025-01-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316650', 'tblTempVendorCDR_20' ) end [2025-01-24 02:38:18] Production.INFO: ProcessCDR(1,14316650,1,1,2) [2025-01-24 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316650', 'tblTempUsageDetail_20' ) start [2025-01-24 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316650', 'tblTempUsageDetail_20' ) end [2025-01-24 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:38:21] Production.INFO: ==2653== Releasing lock... [2025-01-24 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:39:06 [end_date_ymd] => 2025-01-24 02:39:06 [RateCDR] => 1 ) [2025-01-24 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:39:06' and `end` < '2025-01-24 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:39:18] Production.INFO: count ==455 [2025-01-24 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:39:06 - End Time 2025-01-24 02:39:06 [2025-01-24 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316655', 'tblTempUsageDetail_20' ) start [2025-01-24 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316655', 'tblTempUsageDetail_20' ) end [2025-01-24 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316655', 'tblTempVendorCDR_20' ) start [2025-01-24 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316655', 'tblTempVendorCDR_20' ) end [2025-01-24 02:39:18] Production.INFO: ProcessCDR(1,14316655,1,1,2) [2025-01-24 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316655', 'tblTempUsageDetail_20' ) start [2025-01-24 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316655', 'tblTempUsageDetail_20' ) end [2025-01-24 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:39:21] Production.INFO: ==2762== Releasing lock... [2025-01-24 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:40:06 [end_date_ymd] => 2025-01-24 02:40:06 [RateCDR] => 1 ) [2025-01-24 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-23 23:40:06' and `end` < '2025-01-24 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-24 02:40:18] Production.INFO: count ==461 [2025-01-24 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:40:06 - End Time 2025-01-24 02:40:06 [2025-01-24 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316660', 'tblTempUsageDetail_20' ) start [2025-01-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316660', 'tblTempUsageDetail_20' ) end [2025-01-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316660', 'tblTempVendorCDR_20' ) start [2025-01-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316660', 'tblTempVendorCDR_20' ) end [2025-01-24 02:40:18] Production.INFO: ProcessCDR(1,14316660,1,1,2) [2025-01-24 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316660', 'tblTempUsageDetail_20' ) start [2025-01-24 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316660', 'tblTempUsageDetail_20' ) end [2025-01-24 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:40:21] Production.INFO: ==2843== Releasing lock... [2025-01-24 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:41:06 [end_date_ymd] => 2025-01-24 02:41:06 [RateCDR] => 1 ) [2025-01-24 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:41:06' and `end` < '2025-01-24 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:41:20] Production.INFO: count ==461 [2025-01-24 02:41:20] Production.ERROR: pbx CDR StartTime 2025-01-23 23:41:06 - End Time 2025-01-24 02:41:06 [2025-01-24 02:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316666', 'tblTempUsageDetail_20' ) start [2025-01-24 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316666', 'tblTempUsageDetail_20' ) end [2025-01-24 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316666', 'tblTempVendorCDR_20' ) start [2025-01-24 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316666', 'tblTempVendorCDR_20' ) end [2025-01-24 02:41:20] Production.INFO: ProcessCDR(1,14316666,1,1,2) [2025-01-24 02:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316666', 'tblTempUsageDetail_20' ) start [2025-01-24 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316666', 'tblTempUsageDetail_20' ) end [2025-01-24 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:41:23] Production.INFO: ==2988== Releasing lock... [2025-01-24 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:41:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:42:05 [end_date_ymd] => 2025-01-24 02:42:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:42:05' and `end` < '2025-01-24 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-24 02:42:17] Production.INFO: count ==461 [2025-01-24 02:42:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:42:05 - End Time 2025-01-24 02:42:05 [2025-01-24 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316671', 'tblTempUsageDetail_20' ) start [2025-01-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316671', 'tblTempUsageDetail_20' ) end [2025-01-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316671', 'tblTempVendorCDR_20' ) start [2025-01-24 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316671', 'tblTempVendorCDR_20' ) end [2025-01-24 02:42:17] Production.INFO: ProcessCDR(1,14316671,1,1,2) [2025-01-24 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316671', 'tblTempUsageDetail_20' ) start [2025-01-24 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316671', 'tblTempUsageDetail_20' ) end [2025-01-24 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:42:21] Production.INFO: ==3064== Releasing lock... [2025-01-24 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:43:05 [end_date_ymd] => 2025-01-24 02:43:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:43:05' and `end` < '2025-01-24 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-24 02:43:18] Production.INFO: count ==461 [2025-01-24 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:43:05 - End Time 2025-01-24 02:43:05 [2025-01-24 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316676', 'tblTempUsageDetail_20' ) start [2025-01-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316676', 'tblTempUsageDetail_20' ) end [2025-01-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316676', 'tblTempVendorCDR_20' ) start [2025-01-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316676', 'tblTempVendorCDR_20' ) end [2025-01-24 02:43:18] Production.INFO: ProcessCDR(1,14316676,1,1,2) [2025-01-24 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316676', 'tblTempUsageDetail_20' ) start [2025-01-24 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316676', 'tblTempUsageDetail_20' ) end [2025-01-24 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:43:21] Production.INFO: ==3171== Releasing lock... [2025-01-24 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:44:05 [end_date_ymd] => 2025-01-24 02:44:05 [RateCDR] => 1 ) [2025-01-24 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:44:05' and `end` < '2025-01-24 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:44:17] Production.INFO: count ==462 [2025-01-24 02:44:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:44:05 - End Time 2025-01-24 02:44:05 [2025-01-24 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316681', 'tblTempUsageDetail_20' ) start [2025-01-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316681', 'tblTempUsageDetail_20' ) end [2025-01-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316681', 'tblTempVendorCDR_20' ) start [2025-01-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316681', 'tblTempVendorCDR_20' ) end [2025-01-24 02:44:17] Production.INFO: ProcessCDR(1,14316681,1,1,2) [2025-01-24 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316681', 'tblTempUsageDetail_20' ) start [2025-01-24 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316681', 'tblTempUsageDetail_20' ) end [2025-01-24 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:44:20] Production.INFO: ==3258== Releasing lock... [2025-01-24 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:44:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:45:05 [end_date_ymd] => 2025-01-24 02:45:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:45:05' and `end` < '2025-01-24 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-24 02:45:18] Production.INFO: count ==462 [2025-01-24 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:45:05 - End Time 2025-01-24 02:45:05 [2025-01-24 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316686', 'tblTempUsageDetail_20' ) start [2025-01-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316686', 'tblTempUsageDetail_20' ) end [2025-01-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316686', 'tblTempVendorCDR_20' ) start [2025-01-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316686', 'tblTempVendorCDR_20' ) end [2025-01-24 02:45:18] Production.INFO: ProcessCDR(1,14316686,1,1,2) [2025-01-24 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316686', 'tblTempUsageDetail_20' ) start [2025-01-24 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316686', 'tblTempUsageDetail_20' ) end [2025-01-24 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:45:21] Production.INFO: ==3355== Releasing lock... [2025-01-24 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:46:04 [end_date_ymd] => 2025-01-24 02:46:04 [RateCDR] => 1 ) [2025-01-24 02:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:46:04' and `end` < '2025-01-24 02:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:46:17] Production.INFO: count ==464 [2025-01-24 02:46:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:46:04 - End Time 2025-01-24 02:46:04 [2025-01-24 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316691', 'tblTempUsageDetail_20' ) start [2025-01-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316691', 'tblTempUsageDetail_20' ) end [2025-01-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316691', 'tblTempVendorCDR_20' ) start [2025-01-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316691', 'tblTempVendorCDR_20' ) end [2025-01-24 02:46:17] Production.INFO: ProcessCDR(1,14316691,1,1,2) [2025-01-24 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316691', 'tblTempUsageDetail_20' ) start [2025-01-24 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316691', 'tblTempUsageDetail_20' ) end [2025-01-24 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:46:20] Production.INFO: ==3448== Releasing lock... [2025-01-24 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:46:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:47:05 [end_date_ymd] => 2025-01-24 02:47:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:47:05' and `end` < '2025-01-24 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-24 02:47:18] Production.INFO: count ==465 [2025-01-24 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:47:05 - End Time 2025-01-24 02:47:05 [2025-01-24 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316696', 'tblTempUsageDetail_20' ) start [2025-01-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316696', 'tblTempUsageDetail_20' ) end [2025-01-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316696', 'tblTempVendorCDR_20' ) start [2025-01-24 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316696', 'tblTempVendorCDR_20' ) end [2025-01-24 02:47:18] Production.INFO: ProcessCDR(1,14316696,1,1,2) [2025-01-24 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316696', 'tblTempUsageDetail_20' ) start [2025-01-24 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316696', 'tblTempUsageDetail_20' ) end [2025-01-24 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:47:23] Production.INFO: ==3549== Releasing lock... [2025-01-24 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:47:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:48:05 [end_date_ymd] => 2025-01-24 02:48:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:48:05' and `end` < '2025-01-24 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-24 02:48:18] Production.INFO: count ==462 [2025-01-24 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:48:05 - End Time 2025-01-24 02:48:05 [2025-01-24 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316701', 'tblTempUsageDetail_20' ) start [2025-01-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316701', 'tblTempUsageDetail_20' ) end [2025-01-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316701', 'tblTempVendorCDR_20' ) start [2025-01-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316701', 'tblTempVendorCDR_20' ) end [2025-01-24 02:48:18] Production.INFO: ProcessCDR(1,14316701,1,1,2) [2025-01-24 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316701', 'tblTempUsageDetail_20' ) start [2025-01-24 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316701', 'tblTempUsageDetail_20' ) end [2025-01-24 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:48:22] Production.INFO: ==3639== Releasing lock... [2025-01-24 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:49:05 [end_date_ymd] => 2025-01-24 02:49:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:49:05' and `end` < '2025-01-24 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-24 02:49:18] Production.INFO: count ==462 [2025-01-24 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:49:05 - End Time 2025-01-24 02:49:05 [2025-01-24 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316706', 'tblTempUsageDetail_20' ) start [2025-01-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316706', 'tblTempUsageDetail_20' ) end [2025-01-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316706', 'tblTempVendorCDR_20' ) start [2025-01-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316706', 'tblTempVendorCDR_20' ) end [2025-01-24 02:49:18] Production.INFO: ProcessCDR(1,14316706,1,1,2) [2025-01-24 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316706', 'tblTempUsageDetail_20' ) start [2025-01-24 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316706', 'tblTempUsageDetail_20' ) end [2025-01-24 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:49:21] Production.INFO: ==3723== Releasing lock... [2025-01-24 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:50:06 [end_date_ymd] => 2025-01-24 02:50:06 [RateCDR] => 1 ) [2025-01-24 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:50:06' and `end` < '2025-01-24 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-24 02:50:20] Production.INFO: count ==481 [2025-01-24 02:50:20] Production.ERROR: pbx CDR StartTime 2025-01-23 23:50:06 - End Time 2025-01-24 02:50:06 [2025-01-24 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316712', 'tblTempUsageDetail_20' ) start [2025-01-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316712', 'tblTempUsageDetail_20' ) end [2025-01-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316712', 'tblTempVendorCDR_20' ) start [2025-01-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316712', 'tblTempVendorCDR_20' ) end [2025-01-24 02:50:20] Production.INFO: ProcessCDR(1,14316712,1,1,2) [2025-01-24 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316712', 'tblTempUsageDetail_20' ) start [2025-01-24 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316712', 'tblTempUsageDetail_20' ) end [2025-01-24 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:50:23] Production.INFO: ==3797== Releasing lock... [2025-01-24 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:50:23] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:51:05 [end_date_ymd] => 2025-01-24 02:51:05 [RateCDR] => 1 ) [2025-01-24 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:51:05' and `end` < '2025-01-24 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:51:19] Production.INFO: count ==485 [2025-01-24 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:51:05 - End Time 2025-01-24 02:51:05 [2025-01-24 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316717', 'tblTempUsageDetail_20' ) start [2025-01-24 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316717', 'tblTempUsageDetail_20' ) end [2025-01-24 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316717', 'tblTempVendorCDR_20' ) start [2025-01-24 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316717', 'tblTempVendorCDR_20' ) end [2025-01-24 02:51:19] Production.INFO: ProcessCDR(1,14316717,1,1,2) [2025-01-24 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316717', 'tblTempUsageDetail_20' ) start [2025-01-24 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316717', 'tblTempUsageDetail_20' ) end [2025-01-24 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:51:23] Production.INFO: ==3883== Releasing lock... [2025-01-24 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:51:23] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:52:06 [end_date_ymd] => 2025-01-24 02:52:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:52:06' and `end` < '2025-01-24 02: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-24 02:52:19] Production.INFO: count ==485 [2025-01-24 02:52:19] Production.ERROR: pbx CDR StartTime 2025-01-23 23:52:06 - End Time 2025-01-24 02:52:06 [2025-01-24 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316722', 'tblTempUsageDetail_20' ) start [2025-01-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316722', 'tblTempUsageDetail_20' ) end [2025-01-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316722', 'tblTempVendorCDR_20' ) start [2025-01-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316722', 'tblTempVendorCDR_20' ) end [2025-01-24 02:52:19] Production.INFO: ProcessCDR(1,14316722,1,1,2) [2025-01-24 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316722', 'tblTempUsageDetail_20' ) start [2025-01-24 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316722', 'tblTempUsageDetail_20' ) end [2025-01-24 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:52:22] Production.INFO: ==3960== Releasing lock... [2025-01-24 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:52:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:53:05 [end_date_ymd] => 2025-01-24 02:53:05 [RateCDR] => 1 ) [2025-01-24 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 23:53:05' and `end` < '2025-01-24 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 02:53:17] Production.INFO: count ==482 [2025-01-24 02:53:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:53:05 - End Time 2025-01-24 02:53:05 [2025-01-24 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316727', 'tblTempUsageDetail_20' ) start [2025-01-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316727', 'tblTempUsageDetail_20' ) end [2025-01-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316727', 'tblTempVendorCDR_20' ) start [2025-01-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316727', 'tblTempVendorCDR_20' ) end [2025-01-24 02:53:17] Production.INFO: ProcessCDR(1,14316727,1,1,2) [2025-01-24 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316727', 'tblTempUsageDetail_20' ) start [2025-01-24 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316727', 'tblTempUsageDetail_20' ) end [2025-01-24 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:53:20] Production.INFO: ==4035== Releasing lock... [2025-01-24 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:53:20] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:54:05 [end_date_ymd] => 2025-01-24 02:54:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:54:05' and `end` < '2025-01-24 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-24 02:54:18] Production.INFO: count ==481 [2025-01-24 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:54:05 - End Time 2025-01-24 02:54:05 [2025-01-24 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316732', 'tblTempUsageDetail_20' ) start [2025-01-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316732', 'tblTempUsageDetail_20' ) end [2025-01-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316732', 'tblTempVendorCDR_20' ) start [2025-01-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316732', 'tblTempVendorCDR_20' ) end [2025-01-24 02:54:18] Production.INFO: ProcessCDR(1,14316732,1,1,2) [2025-01-24 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316732', 'tblTempUsageDetail_20' ) start [2025-01-24 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316732', 'tblTempUsageDetail_20' ) end [2025-01-24 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:54:21] Production.INFO: ==4116== Releasing lock... [2025-01-24 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:54:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:55:05 [end_date_ymd] => 2025-01-24 02:55:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:55:05' and `end` < '2025-01-24 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-24 02:55:17] Production.INFO: count ==480 [2025-01-24 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:55:05 - End Time 2025-01-24 02:55:05 [2025-01-24 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316737', 'tblTempUsageDetail_20' ) start [2025-01-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316737', 'tblTempUsageDetail_20' ) end [2025-01-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316737', 'tblTempVendorCDR_20' ) start [2025-01-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316737', 'tblTempVendorCDR_20' ) end [2025-01-24 02:55:18] Production.INFO: ProcessCDR(1,14316737,1,1,2) [2025-01-24 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316737', 'tblTempUsageDetail_20' ) start [2025-01-24 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316737', 'tblTempUsageDetail_20' ) end [2025-01-24 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:55:21] Production.INFO: ==4189== Releasing lock... [2025-01-24 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:55:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:56:06 [end_date_ymd] => 2025-01-24 02:56:06 [RateCDR] => 1 ) [2025-01-24 02: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-23 23:56:06' and `end` < '2025-01-24 02: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-24 02:56:18] Production.INFO: count ==480 [2025-01-24 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:56:06 - End Time 2025-01-24 02:56:06 [2025-01-24 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316742', 'tblTempUsageDetail_20' ) start [2025-01-24 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316742', 'tblTempUsageDetail_20' ) end [2025-01-24 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316742', 'tblTempVendorCDR_20' ) start [2025-01-24 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316742', 'tblTempVendorCDR_20' ) end [2025-01-24 02:56:18] Production.INFO: ProcessCDR(1,14316742,1,1,2) [2025-01-24 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316742', 'tblTempUsageDetail_20' ) start [2025-01-24 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316742', 'tblTempUsageDetail_20' ) end [2025-01-24 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:56:21] Production.INFO: ==4264== Releasing lock... [2025-01-24 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:56:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:57:05 [end_date_ymd] => 2025-01-24 02:57:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:57:05' and `end` < '2025-01-24 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-24 02:57:18] Production.INFO: count ==480 [2025-01-24 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:57:05 - End Time 2025-01-24 02:57:05 [2025-01-24 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316747', 'tblTempUsageDetail_20' ) start [2025-01-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316747', 'tblTempUsageDetail_20' ) end [2025-01-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316747', 'tblTempVendorCDR_20' ) start [2025-01-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316747', 'tblTempVendorCDR_20' ) end [2025-01-24 02:57:18] Production.INFO: ProcessCDR(1,14316747,1,1,2) [2025-01-24 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316747', 'tblTempUsageDetail_20' ) start [2025-01-24 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316747', 'tblTempUsageDetail_20' ) end [2025-01-24 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:57:21] Production.INFO: ==4380== Releasing lock... [2025-01-24 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:57:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-24 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:58:05 [end_date_ymd] => 2025-01-24 02:58:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:58:05' and `end` < '2025-01-24 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-24 02:58:18] Production.INFO: count ==480 [2025-01-24 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 23:58:05 - End Time 2025-01-24 02:58:05 [2025-01-24 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316752', 'tblTempUsageDetail_20' ) start [2025-01-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316752', 'tblTempUsageDetail_20' ) end [2025-01-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316752', 'tblTempVendorCDR_20' ) start [2025-01-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316752', 'tblTempVendorCDR_20' ) end [2025-01-24 02:58:18] Production.INFO: ProcessCDR(1,14316752,1,1,2) [2025-01-24 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316752', 'tblTempUsageDetail_20' ) start [2025-01-24 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316752', 'tblTempUsageDetail_20' ) end [2025-01-24 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:58:21] Production.INFO: ==4459== Releasing lock... [2025-01-24 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:58:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 23:59:05 [end_date_ymd] => 2025-01-24 02:59:05 [RateCDR] => 1 ) [2025-01-24 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-23 23:59:05' and `end` < '2025-01-24 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-24 02:59:17] Production.INFO: count ==479 [2025-01-24 02:59:17] Production.ERROR: pbx CDR StartTime 2025-01-23 23:59:05 - End Time 2025-01-24 02:59:05 [2025-01-24 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316757', 'tblTempUsageDetail_20' ) start [2025-01-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316757', 'tblTempUsageDetail_20' ) end [2025-01-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316757', 'tblTempVendorCDR_20' ) start [2025-01-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316757', 'tblTempVendorCDR_20' ) end [2025-01-24 02:59:17] Production.INFO: ProcessCDR(1,14316757,1,1,2) [2025-01-24 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316757', 'tblTempUsageDetail_20' ) start [2025-01-24 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316757', 'tblTempUsageDetail_20' ) end [2025-01-24 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 02:59:21] Production.INFO: ==4535== Releasing lock... [2025-01-24 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 02:59:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:00:07 [end_date_ymd] => 2025-01-24 03:00:07 [RateCDR] => 1 ) [2025-01-24 03: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-24 00:00:07' and `end` < '2025-01-24 03: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-24 03:00:19] Production.INFO: count ==492 [2025-01-24 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:00:07 - End Time 2025-01-24 03:00:07 [2025-01-24 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316763', 'tblTempUsageDetail_20' ) start [2025-01-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316763', 'tblTempUsageDetail_20' ) end [2025-01-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316763', 'tblTempVendorCDR_20' ) start [2025-01-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316763', 'tblTempVendorCDR_20' ) end [2025-01-24 03:00:19] Production.INFO: ProcessCDR(1,14316763,1,1,2) [2025-01-24 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316763', 'tblTempUsageDetail_20' ) start [2025-01-24 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316763', 'tblTempUsageDetail_20' ) end [2025-01-24 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:00:22] Production.INFO: ==4624== Releasing lock... [2025-01-24 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:00:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:01:05 [end_date_ymd] => 2025-01-24 03:01:05 [RateCDR] => 1 ) [2025-01-24 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:01:05' and `end` < '2025-01-24 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:01:17] Production.INFO: count ==492 [2025-01-24 03:01:17] Production.ERROR: pbx CDR StartTime 2025-01-24 00:01:05 - End Time 2025-01-24 03:01:05 [2025-01-24 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316768', 'tblTempUsageDetail_20' ) start [2025-01-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316768', 'tblTempUsageDetail_20' ) end [2025-01-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316768', 'tblTempVendorCDR_20' ) start [2025-01-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316768', 'tblTempVendorCDR_20' ) end [2025-01-24 03:01:17] Production.INFO: ProcessCDR(1,14316768,1,1,2) [2025-01-24 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316768', 'tblTempUsageDetail_20' ) start [2025-01-24 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316768', 'tblTempUsageDetail_20' ) end [2025-01-24 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:01:20] Production.INFO: ==4716== Releasing lock... [2025-01-24 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:01:20] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:02:05 [end_date_ymd] => 2025-01-24 03:02:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:02:05' and `end` < '2025-01-24 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-24 03:02:18] Production.INFO: count ==493 [2025-01-24 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:02:05 - End Time 2025-01-24 03:02:05 [2025-01-24 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316773', 'tblTempUsageDetail_20' ) start [2025-01-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316773', 'tblTempUsageDetail_20' ) end [2025-01-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316773', 'tblTempVendorCDR_20' ) start [2025-01-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316773', 'tblTempVendorCDR_20' ) end [2025-01-24 03:02:18] Production.INFO: ProcessCDR(1,14316773,1,1,2) [2025-01-24 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316773', 'tblTempUsageDetail_20' ) start [2025-01-24 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316773', 'tblTempUsageDetail_20' ) end [2025-01-24 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:02:21] Production.INFO: ==4869== Releasing lock... [2025-01-24 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:02:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:03:05 [end_date_ymd] => 2025-01-24 03:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:03:05' and `end` < '2025-01-24 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-24 03:03:19] Production.INFO: count ==493 [2025-01-24 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:03:05 - End Time 2025-01-24 03:03:05 [2025-01-24 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316778', 'tblTempUsageDetail_20' ) start [2025-01-24 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316778', 'tblTempUsageDetail_20' ) end [2025-01-24 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316778', 'tblTempVendorCDR_20' ) start [2025-01-24 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316778', 'tblTempVendorCDR_20' ) end [2025-01-24 03:03:19] Production.INFO: ProcessCDR(1,14316778,1,1,2) [2025-01-24 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316778', 'tblTempUsageDetail_20' ) start [2025-01-24 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316778', 'tblTempUsageDetail_20' ) end [2025-01-24 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:03:22] Production.INFO: ==4947== Releasing lock... [2025-01-24 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:03:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:04:05 [end_date_ymd] => 2025-01-24 03:04:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:04:05' and `end` < '2025-01-24 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-24 03:04:18] Production.INFO: count ==492 [2025-01-24 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:04:05 - End Time 2025-01-24 03:04:05 [2025-01-24 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316782', 'tblTempUsageDetail_20' ) start [2025-01-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316782', 'tblTempUsageDetail_20' ) end [2025-01-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316782', 'tblTempVendorCDR_20' ) start [2025-01-24 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316782', 'tblTempVendorCDR_20' ) end [2025-01-24 03:04:18] Production.INFO: ProcessCDR(1,14316782,1,1,2) [2025-01-24 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316782', 'tblTempUsageDetail_20' ) start [2025-01-24 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316782', 'tblTempUsageDetail_20' ) end [2025-01-24 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:04:21] Production.INFO: ==5027== Releasing lock... [2025-01-24 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:04:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:05:05 [end_date_ymd] => 2025-01-24 03:05:05 [RateCDR] => 1 ) [2025-01-24 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:05:05' and `end` < '2025-01-24 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:05:17] Production.INFO: count ==489 [2025-01-24 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-24 00:05:05 - End Time 2025-01-24 03:05:05 [2025-01-24 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316788', 'tblTempUsageDetail_20' ) start [2025-01-24 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316788', 'tblTempUsageDetail_20' ) end [2025-01-24 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316788', 'tblTempVendorCDR_20' ) start [2025-01-24 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316788', 'tblTempVendorCDR_20' ) end [2025-01-24 03:05:17] Production.INFO: ProcessCDR(1,14316788,1,1,2) [2025-01-24 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316788', 'tblTempUsageDetail_20' ) start [2025-01-24 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316788', 'tblTempUsageDetail_20' ) end [2025-01-24 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:05:21] Production.INFO: ==5140== Releasing lock... [2025-01-24 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:05:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:06:06 [end_date_ymd] => 2025-01-24 03:06:06 [RateCDR] => 1 ) [2025-01-24 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:06:06' and `end` < '2025-01-24 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:06:19] Production.INFO: count ==488 [2025-01-24 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:06:06 - End Time 2025-01-24 03:06:06 [2025-01-24 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316793', 'tblTempUsageDetail_20' ) start [2025-01-24 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316793', 'tblTempUsageDetail_20' ) end [2025-01-24 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316793', 'tblTempVendorCDR_20' ) start [2025-01-24 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316793', 'tblTempVendorCDR_20' ) end [2025-01-24 03:06:19] Production.INFO: ProcessCDR(1,14316793,1,1,2) [2025-01-24 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316793', 'tblTempUsageDetail_20' ) start [2025-01-24 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316793', 'tblTempUsageDetail_20' ) end [2025-01-24 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:06:22] Production.INFO: ==5254== Releasing lock... [2025-01-24 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:06:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:07:05 [end_date_ymd] => 2025-01-24 03:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:07:05' and `end` < '2025-01-24 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-24 03:07:18] Production.INFO: count ==487 [2025-01-24 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:07:05 - End Time 2025-01-24 03:07:05 [2025-01-24 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316798', 'tblTempUsageDetail_20' ) start [2025-01-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316798', 'tblTempUsageDetail_20' ) end [2025-01-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316798', 'tblTempVendorCDR_20' ) start [2025-01-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316798', 'tblTempVendorCDR_20' ) end [2025-01-24 03:07:18] Production.INFO: ProcessCDR(1,14316798,1,1,2) [2025-01-24 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316798', 'tblTempUsageDetail_20' ) start [2025-01-24 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316798', 'tblTempUsageDetail_20' ) end [2025-01-24 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:07:22] Production.INFO: ==5329== Releasing lock... [2025-01-24 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:07:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:08:06 [end_date_ymd] => 2025-01-24 03:08:06 [RateCDR] => 1 ) [2025-01-24 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:08:06' and `end` < '2025-01-24 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:08:19] Production.INFO: count ==489 [2025-01-24 03:08:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:08:06 - End Time 2025-01-24 03:08:06 [2025-01-24 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316803', 'tblTempUsageDetail_20' ) start [2025-01-24 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316803', 'tblTempUsageDetail_20' ) end [2025-01-24 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316803', 'tblTempVendorCDR_20' ) start [2025-01-24 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316803', 'tblTempVendorCDR_20' ) end [2025-01-24 03:08:19] Production.INFO: ProcessCDR(1,14316803,1,1,2) [2025-01-24 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316803', 'tblTempUsageDetail_20' ) start [2025-01-24 03:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316803', 'tblTempUsageDetail_20' ) end [2025-01-24 03:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:08:24] Production.INFO: ==5406== Releasing lock... [2025-01-24 03:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:08:24] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:09:05 [end_date_ymd] => 2025-01-24 03:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:09:05' and `end` < '2025-01-24 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-24 03:09:18] Production.INFO: count ==489 [2025-01-24 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:09:05 - End Time 2025-01-24 03:09:05 [2025-01-24 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316808', 'tblTempUsageDetail_20' ) start [2025-01-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316808', 'tblTempUsageDetail_20' ) end [2025-01-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316808', 'tblTempVendorCDR_20' ) start [2025-01-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316808', 'tblTempVendorCDR_20' ) end [2025-01-24 03:09:18] Production.INFO: ProcessCDR(1,14316808,1,1,2) [2025-01-24 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316808', 'tblTempUsageDetail_20' ) start [2025-01-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316808', 'tblTempUsageDetail_20' ) end [2025-01-24 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:09:21] Production.INFO: ==5564== Releasing lock... [2025-01-24 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:09:21] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:10:05 [end_date_ymd] => 2025-01-24 03:10:05 [RateCDR] => 1 ) [2025-01-24 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:10:05' and `end` < '2025-01-24 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:10:18] Production.INFO: count ==482 [2025-01-24 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:10:05 - End Time 2025-01-24 03:10:05 [2025-01-24 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316814', 'tblTempUsageDetail_20' ) start [2025-01-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316814', 'tblTempUsageDetail_20' ) end [2025-01-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316814', 'tblTempVendorCDR_20' ) start [2025-01-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316814', 'tblTempVendorCDR_20' ) end [2025-01-24 03:10:18] Production.INFO: ProcessCDR(1,14316814,1,1,2) [2025-01-24 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316814', 'tblTempUsageDetail_20' ) start [2025-01-24 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316814', 'tblTempUsageDetail_20' ) end [2025-01-24 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:10:22] Production.INFO: ==5640== Releasing lock... [2025-01-24 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:10:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:11:05 [end_date_ymd] => 2025-01-24 03:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:11:05' and `end` < '2025-01-24 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-24 03:11:18] Production.INFO: count ==458 [2025-01-24 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:11:05 - End Time 2025-01-24 03:11:05 [2025-01-24 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316819', 'tblTempUsageDetail_20' ) start [2025-01-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316819', 'tblTempUsageDetail_20' ) end [2025-01-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316819', 'tblTempVendorCDR_20' ) start [2025-01-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316819', 'tblTempVendorCDR_20' ) end [2025-01-24 03:11:18] Production.INFO: ProcessCDR(1,14316819,1,1,2) [2025-01-24 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316819', 'tblTempUsageDetail_20' ) start [2025-01-24 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316819', 'tblTempUsageDetail_20' ) end [2025-01-24 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:11:21] Production.INFO: ==5724== Releasing lock... [2025-01-24 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:12:05 [end_date_ymd] => 2025-01-24 03:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:12:05' and `end` < '2025-01-24 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-24 03:12:18] Production.INFO: count ==458 [2025-01-24 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:12:05 - End Time 2025-01-24 03:12:05 [2025-01-24 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316824', 'tblTempUsageDetail_20' ) start [2025-01-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316824', 'tblTempUsageDetail_20' ) end [2025-01-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316824', 'tblTempVendorCDR_20' ) start [2025-01-24 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316824', 'tblTempVendorCDR_20' ) end [2025-01-24 03:12:18] Production.INFO: ProcessCDR(1,14316824,1,1,2) [2025-01-24 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316824', 'tblTempUsageDetail_20' ) start [2025-01-24 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316824', 'tblTempUsageDetail_20' ) end [2025-01-24 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:12:21] Production.INFO: ==5842== Releasing lock... [2025-01-24 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:13:05 [end_date_ymd] => 2025-01-24 03:13:05 [RateCDR] => 1 ) [2025-01-24 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:13:05' and `end` < '2025-01-24 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:13:18] Production.INFO: count ==458 [2025-01-24 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:13:05 - End Time 2025-01-24 03:13:05 [2025-01-24 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316829', 'tblTempUsageDetail_20' ) start [2025-01-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316829', 'tblTempUsageDetail_20' ) end [2025-01-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316829', 'tblTempVendorCDR_20' ) start [2025-01-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316829', 'tblTempVendorCDR_20' ) end [2025-01-24 03:13:18] Production.INFO: ProcessCDR(1,14316829,1,1,2) [2025-01-24 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316829', 'tblTempUsageDetail_20' ) start [2025-01-24 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316829', 'tblTempUsageDetail_20' ) end [2025-01-24 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:13:21] Production.INFO: ==5991== Releasing lock... [2025-01-24 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:14:05 [end_date_ymd] => 2025-01-24 03:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:14:05' and `end` < '2025-01-24 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-24 03:14:18] Production.INFO: count ==458 [2025-01-24 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:14:05 - End Time 2025-01-24 03:14:05 [2025-01-24 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316834', 'tblTempUsageDetail_20' ) start [2025-01-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316834', 'tblTempUsageDetail_20' ) end [2025-01-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316834', 'tblTempVendorCDR_20' ) start [2025-01-24 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316834', 'tblTempVendorCDR_20' ) end [2025-01-24 03:14:18] Production.INFO: ProcessCDR(1,14316834,1,1,2) [2025-01-24 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316834', 'tblTempUsageDetail_20' ) start [2025-01-24 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316834', 'tblTempUsageDetail_20' ) end [2025-01-24 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:14:21] Production.INFO: ==6068== Releasing lock... [2025-01-24 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:15:05 [end_date_ymd] => 2025-01-24 03:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:15:05' and `end` < '2025-01-24 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-24 03:15:18] Production.INFO: count ==458 [2025-01-24 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:15:05 - End Time 2025-01-24 03:15:05 [2025-01-24 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316839', 'tblTempUsageDetail_20' ) start [2025-01-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316839', 'tblTempUsageDetail_20' ) end [2025-01-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316839', 'tblTempVendorCDR_20' ) start [2025-01-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316839', 'tblTempVendorCDR_20' ) end [2025-01-24 03:15:18] Production.INFO: ProcessCDR(1,14316839,1,1,2) [2025-01-24 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316839', 'tblTempUsageDetail_20' ) start [2025-01-24 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316839', 'tblTempUsageDetail_20' ) end [2025-01-24 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:15:22] Production.INFO: ==6139== Releasing lock... [2025-01-24 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:16:06 [end_date_ymd] => 2025-01-24 03:16:06 [RateCDR] => 1 ) [2025-01-24 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:16:06' and `end` < '2025-01-24 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:16:18] Production.INFO: count ==456 [2025-01-24 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:16:06 - End Time 2025-01-24 03:16:06 [2025-01-24 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316844', 'tblTempUsageDetail_20' ) start [2025-01-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316844', 'tblTempUsageDetail_20' ) end [2025-01-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316844', 'tblTempVendorCDR_20' ) start [2025-01-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316844', 'tblTempVendorCDR_20' ) end [2025-01-24 03:16:18] Production.INFO: ProcessCDR(1,14316844,1,1,2) [2025-01-24 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316844', 'tblTempUsageDetail_20' ) start [2025-01-24 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316844', 'tblTempUsageDetail_20' ) end [2025-01-24 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:16:21] Production.INFO: ==6216== Releasing lock... [2025-01-24 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:17:05 [end_date_ymd] => 2025-01-24 03:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:17:05' and `end` < '2025-01-24 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-24 03:17:17] Production.INFO: count ==456 [2025-01-24 03:17:17] Production.ERROR: pbx CDR StartTime 2025-01-24 00:17:05 - End Time 2025-01-24 03:17:05 [2025-01-24 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316849', 'tblTempUsageDetail_20' ) start [2025-01-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316849', 'tblTempUsageDetail_20' ) end [2025-01-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316849', 'tblTempVendorCDR_20' ) start [2025-01-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316849', 'tblTempVendorCDR_20' ) end [2025-01-24 03:17:17] Production.INFO: ProcessCDR(1,14316849,1,1,2) [2025-01-24 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316849', 'tblTempUsageDetail_20' ) start [2025-01-24 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316849', 'tblTempUsageDetail_20' ) end [2025-01-24 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:17:20] Production.INFO: ==6367== Releasing lock... [2025-01-24 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:17:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:18:05 [end_date_ymd] => 2025-01-24 03:18:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:18:05' and `end` < '2025-01-24 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-24 03:18:18] Production.INFO: count ==456 [2025-01-24 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:18:05 - End Time 2025-01-24 03:18:05 [2025-01-24 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316854', 'tblTempUsageDetail_20' ) start [2025-01-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316854', 'tblTempUsageDetail_20' ) end [2025-01-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316854', 'tblTempVendorCDR_20' ) start [2025-01-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316854', 'tblTempVendorCDR_20' ) end [2025-01-24 03:18:18] Production.INFO: ProcessCDR(1,14316854,1,1,2) [2025-01-24 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316854', 'tblTempUsageDetail_20' ) start [2025-01-24 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316854', 'tblTempUsageDetail_20' ) end [2025-01-24 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:18:21] Production.INFO: ==6448== Releasing lock... [2025-01-24 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:19:05 [end_date_ymd] => 2025-01-24 03:19:05 [RateCDR] => 1 ) [2025-01-24 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:19:05' and `end` < '2025-01-24 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:19:17] Production.INFO: count ==456 [2025-01-24 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:19:05 - End Time 2025-01-24 03:19:05 [2025-01-24 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316859', 'tblTempUsageDetail_20' ) start [2025-01-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316859', 'tblTempUsageDetail_20' ) end [2025-01-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316859', 'tblTempVendorCDR_20' ) start [2025-01-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316859', 'tblTempVendorCDR_20' ) end [2025-01-24 03:19:18] Production.INFO: ProcessCDR(1,14316859,1,1,2) [2025-01-24 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316859', 'tblTempUsageDetail_20' ) start [2025-01-24 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316859', 'tblTempUsageDetail_20' ) end [2025-01-24 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:19:21] Production.INFO: ==6521== Releasing lock... [2025-01-24 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:20:06 [end_date_ymd] => 2025-01-24 03:20:06 [RateCDR] => 1 ) [2025-01-24 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-24 00:20:06' and `end` < '2025-01-24 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-24 03:20:18] Production.INFO: count ==446 [2025-01-24 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:20:06 - End Time 2025-01-24 03:20:06 [2025-01-24 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316865', 'tblTempUsageDetail_20' ) start [2025-01-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316865', 'tblTempUsageDetail_20' ) end [2025-01-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316865', 'tblTempVendorCDR_20' ) start [2025-01-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316865', 'tblTempVendorCDR_20' ) end [2025-01-24 03:20:18] Production.INFO: ProcessCDR(1,14316865,1,1,2) [2025-01-24 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316865', 'tblTempUsageDetail_20' ) start [2025-01-24 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316865', 'tblTempUsageDetail_20' ) end [2025-01-24 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:20:22] Production.INFO: ==6604== Releasing lock... [2025-01-24 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:21:05 [end_date_ymd] => 2025-01-24 03:21:05 [RateCDR] => 1 ) [2025-01-24 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:21:05' and `end` < '2025-01-24 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:21:18] Production.INFO: count ==425 [2025-01-24 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:21:05 - End Time 2025-01-24 03:21:05 [2025-01-24 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316870', 'tblTempUsageDetail_20' ) start [2025-01-24 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316870', 'tblTempUsageDetail_20' ) end [2025-01-24 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316870', 'tblTempVendorCDR_20' ) start [2025-01-24 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316870', 'tblTempVendorCDR_20' ) end [2025-01-24 03:21:18] Production.INFO: ProcessCDR(1,14316870,1,1,2) [2025-01-24 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316870', 'tblTempUsageDetail_20' ) start [2025-01-24 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316870', 'tblTempUsageDetail_20' ) end [2025-01-24 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:21:21] Production.INFO: ==6681== Releasing lock... [2025-01-24 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:22:06 [end_date_ymd] => 2025-01-24 03:22:06 [RateCDR] => 1 ) [2025-01-24 03: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-24 00:22:06' and `end` < '2025-01-24 03: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-24 03:22:18] Production.INFO: count ==425 [2025-01-24 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:22:06 - End Time 2025-01-24 03:22:06 [2025-01-24 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316875', 'tblTempUsageDetail_20' ) start [2025-01-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316875', 'tblTempUsageDetail_20' ) end [2025-01-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316875', 'tblTempVendorCDR_20' ) start [2025-01-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316875', 'tblTempVendorCDR_20' ) end [2025-01-24 03:22:18] Production.INFO: ProcessCDR(1,14316875,1,1,2) [2025-01-24 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316875', 'tblTempUsageDetail_20' ) start [2025-01-24 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316875', 'tblTempUsageDetail_20' ) end [2025-01-24 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:22:21] Production.INFO: ==6759== Releasing lock... [2025-01-24 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:23:05 [end_date_ymd] => 2025-01-24 03:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:23:05' and `end` < '2025-01-24 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-24 03:23:18] Production.INFO: count ==426 [2025-01-24 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:23:05 - End Time 2025-01-24 03:23:05 [2025-01-24 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316880', 'tblTempUsageDetail_20' ) start [2025-01-24 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316880', 'tblTempUsageDetail_20' ) end [2025-01-24 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316880', 'tblTempVendorCDR_20' ) start [2025-01-24 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316880', 'tblTempVendorCDR_20' ) end [2025-01-24 03:23:18] Production.INFO: ProcessCDR(1,14316880,1,1,2) [2025-01-24 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316880', 'tblTempUsageDetail_20' ) start [2025-01-24 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316880', 'tblTempUsageDetail_20' ) end [2025-01-24 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:23:22] Production.INFO: ==6837== Releasing lock... [2025-01-24 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:23:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:24:06 [end_date_ymd] => 2025-01-24 03:24:06 [RateCDR] => 1 ) [2025-01-24 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:24:06' and `end` < '2025-01-24 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:24:18] Production.INFO: count ==425 [2025-01-24 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:24:06 - End Time 2025-01-24 03:24:06 [2025-01-24 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316885', 'tblTempUsageDetail_20' ) start [2025-01-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316885', 'tblTempUsageDetail_20' ) end [2025-01-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316885', 'tblTempVendorCDR_20' ) start [2025-01-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316885', 'tblTempVendorCDR_20' ) end [2025-01-24 03:24:18] Production.INFO: ProcessCDR(1,14316885,1,1,2) [2025-01-24 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316885', 'tblTempUsageDetail_20' ) start [2025-01-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316885', 'tblTempUsageDetail_20' ) end [2025-01-24 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:24:21] Production.INFO: ==6957== Releasing lock... [2025-01-24 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:25:05 [end_date_ymd] => 2025-01-24 03:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:25:05' and `end` < '2025-01-24 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-24 03:25:17] Production.INFO: count ==425 [2025-01-24 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-24 00:25:05 - End Time 2025-01-24 03:25:05 [2025-01-24 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316890', 'tblTempUsageDetail_20' ) start [2025-01-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316890', 'tblTempUsageDetail_20' ) end [2025-01-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316890', 'tblTempVendorCDR_20' ) start [2025-01-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316890', 'tblTempVendorCDR_20' ) end [2025-01-24 03:25:17] Production.INFO: ProcessCDR(1,14316890,1,1,2) [2025-01-24 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316890', 'tblTempUsageDetail_20' ) start [2025-01-24 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316890', 'tblTempUsageDetail_20' ) end [2025-01-24 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:25:20] Production.INFO: ==7038== Releasing lock... [2025-01-24 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:26:06 [end_date_ymd] => 2025-01-24 03:26:06 [RateCDR] => 1 ) [2025-01-24 03:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:26:06' and `end` < '2025-01-24 03:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:26:19] Production.INFO: count ==424 [2025-01-24 03:26:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:26:06 - End Time 2025-01-24 03:26:06 [2025-01-24 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316895', 'tblTempUsageDetail_20' ) start [2025-01-24 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316895', 'tblTempUsageDetail_20' ) end [2025-01-24 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316895', 'tblTempVendorCDR_20' ) start [2025-01-24 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316895', 'tblTempVendorCDR_20' ) end [2025-01-24 03:26:19] Production.INFO: ProcessCDR(1,14316895,1,1,2) [2025-01-24 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316895', 'tblTempUsageDetail_20' ) start [2025-01-24 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316895', 'tblTempUsageDetail_20' ) end [2025-01-24 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:26:22] Production.INFO: ==7125== Releasing lock... [2025-01-24 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:27:05 [end_date_ymd] => 2025-01-24 03:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:27:05' and `end` < '2025-01-24 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-24 03:27:18] Production.INFO: count ==424 [2025-01-24 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:27:05 - End Time 2025-01-24 03:27:05 [2025-01-24 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316900', 'tblTempUsageDetail_20' ) start [2025-01-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316900', 'tblTempUsageDetail_20' ) end [2025-01-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316900', 'tblTempVendorCDR_20' ) start [2025-01-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316900', 'tblTempVendorCDR_20' ) end [2025-01-24 03:27:18] Production.INFO: ProcessCDR(1,14316900,1,1,2) [2025-01-24 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316900', 'tblTempUsageDetail_20' ) start [2025-01-24 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316900', 'tblTempUsageDetail_20' ) end [2025-01-24 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:27:21] Production.INFO: ==7210== Releasing lock... [2025-01-24 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:28:05 [end_date_ymd] => 2025-01-24 03:28:05 [RateCDR] => 1 ) [2025-01-24 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:28:05' and `end` < '2025-01-24 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:28:18] Production.INFO: count ==423 [2025-01-24 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:28:05 - End Time 2025-01-24 03:28:05 [2025-01-24 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316905', 'tblTempUsageDetail_20' ) start [2025-01-24 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316905', 'tblTempUsageDetail_20' ) end [2025-01-24 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316905', 'tblTempVendorCDR_20' ) start [2025-01-24 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316905', 'tblTempVendorCDR_20' ) end [2025-01-24 03:28:18] Production.INFO: ProcessCDR(1,14316905,1,1,2) [2025-01-24 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316905', 'tblTempUsageDetail_20' ) start [2025-01-24 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316905', 'tblTempUsageDetail_20' ) end [2025-01-24 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:28:21] Production.INFO: ==7289== Releasing lock... [2025-01-24 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:29:05 [end_date_ymd] => 2025-01-24 03:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:29:05' and `end` < '2025-01-24 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-24 03:29:17] Production.INFO: count ==421 [2025-01-24 03:29:17] Production.ERROR: pbx CDR StartTime 2025-01-24 00:29:05 - End Time 2025-01-24 03:29:05 [2025-01-24 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316910', 'tblTempUsageDetail_20' ) start [2025-01-24 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316910', 'tblTempUsageDetail_20' ) end [2025-01-24 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316910', 'tblTempVendorCDR_20' ) start [2025-01-24 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316910', 'tblTempVendorCDR_20' ) end [2025-01-24 03:29:17] Production.INFO: ProcessCDR(1,14316910,1,1,2) [2025-01-24 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316910', 'tblTempUsageDetail_20' ) start [2025-01-24 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316910', 'tblTempUsageDetail_20' ) end [2025-01-24 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:29:20] Production.INFO: ==7412== Releasing lock... [2025-01-24 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:30:07 [end_date_ymd] => 2025-01-24 03:30:07 [RateCDR] => 1 ) [2025-01-24 03: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-24 00:30:07' and `end` < '2025-01-24 03: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-24 03:30:19] Production.INFO: count ==406 [2025-01-24 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:30:07 - End Time 2025-01-24 03:30:07 [2025-01-24 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316916', 'tblTempUsageDetail_20' ) start [2025-01-24 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316916', 'tblTempUsageDetail_20' ) end [2025-01-24 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316916', 'tblTempVendorCDR_20' ) start [2025-01-24 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316916', 'tblTempVendorCDR_20' ) end [2025-01-24 03:30:19] Production.INFO: ProcessCDR(1,14316916,1,1,2) [2025-01-24 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316916', 'tblTempUsageDetail_20' ) start [2025-01-24 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316916', 'tblTempUsageDetail_20' ) end [2025-01-24 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:30:23] Production.INFO: ==7500== Releasing lock... [2025-01-24 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:30:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:31:05 [end_date_ymd] => 2025-01-24 03:31:05 [RateCDR] => 1 ) [2025-01-24 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:31:05' and `end` < '2025-01-24 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:31:18] Production.INFO: count ==402 [2025-01-24 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:31:05 - End Time 2025-01-24 03:31:05 [2025-01-24 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316921', 'tblTempUsageDetail_20' ) start [2025-01-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316921', 'tblTempUsageDetail_20' ) end [2025-01-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316921', 'tblTempVendorCDR_20' ) start [2025-01-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316921', 'tblTempVendorCDR_20' ) end [2025-01-24 03:31:18] Production.INFO: ProcessCDR(1,14316921,1,1,2) [2025-01-24 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316921', 'tblTempUsageDetail_20' ) start [2025-01-24 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316921', 'tblTempUsageDetail_20' ) end [2025-01-24 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:31:22] Production.INFO: ==7601== Releasing lock... [2025-01-24 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:32:06 [end_date_ymd] => 2025-01-24 03:32:06 [RateCDR] => 1 ) [2025-01-24 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:32:06' and `end` < '2025-01-24 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:32:19] Production.INFO: count ==402 [2025-01-24 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:32:06 - End Time 2025-01-24 03:32:06 [2025-01-24 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316926', 'tblTempUsageDetail_20' ) start [2025-01-24 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316926', 'tblTempUsageDetail_20' ) end [2025-01-24 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316926', 'tblTempVendorCDR_20' ) start [2025-01-24 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316926', 'tblTempVendorCDR_20' ) end [2025-01-24 03:32:19] Production.INFO: ProcessCDR(1,14316926,1,1,2) [2025-01-24 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316926', 'tblTempUsageDetail_20' ) start [2025-01-24 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316926', 'tblTempUsageDetail_20' ) end [2025-01-24 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:32:23] Production.INFO: ==7679== Releasing lock... [2025-01-24 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:32:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:33:06 [end_date_ymd] => 2025-01-24 03:33:06 [RateCDR] => 1 ) [2025-01-24 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:33:06' and `end` < '2025-01-24 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:33:18] Production.INFO: count ==400 [2025-01-24 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:33:06 - End Time 2025-01-24 03:33:06 [2025-01-24 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316931', 'tblTempUsageDetail_20' ) start [2025-01-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316931', 'tblTempUsageDetail_20' ) end [2025-01-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316931', 'tblTempVendorCDR_20' ) start [2025-01-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316931', 'tblTempVendorCDR_20' ) end [2025-01-24 03:33:18] Production.INFO: ProcessCDR(1,14316931,1,1,2) [2025-01-24 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316931', 'tblTempUsageDetail_20' ) start [2025-01-24 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316931', 'tblTempUsageDetail_20' ) end [2025-01-24 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:33:22] Production.INFO: ==7760== Releasing lock... [2025-01-24 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:34:06 [end_date_ymd] => 2025-01-24 03:34:06 [RateCDR] => 1 ) [2025-01-24 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:34:06' and `end` < '2025-01-24 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:34:18] Production.INFO: count ==400 [2025-01-24 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:34:06 - End Time 2025-01-24 03:34:06 [2025-01-24 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316936', 'tblTempUsageDetail_20' ) start [2025-01-24 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316936', 'tblTempUsageDetail_20' ) end [2025-01-24 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316936', 'tblTempVendorCDR_20' ) start [2025-01-24 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316936', 'tblTempVendorCDR_20' ) end [2025-01-24 03:34:19] Production.INFO: ProcessCDR(1,14316936,1,1,2) [2025-01-24 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316936', 'tblTempUsageDetail_20' ) start [2025-01-24 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316936', 'tblTempUsageDetail_20' ) end [2025-01-24 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:34:22] Production.INFO: ==7849== Releasing lock... [2025-01-24 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:35:05 [end_date_ymd] => 2025-01-24 03:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:35:05' and `end` < '2025-01-24 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-24 03:35:19] Production.INFO: count ==399 [2025-01-24 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:35:05 - End Time 2025-01-24 03:35:05 [2025-01-24 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316941', 'tblTempUsageDetail_20' ) start [2025-01-24 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316941', 'tblTempUsageDetail_20' ) end [2025-01-24 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316941', 'tblTempVendorCDR_20' ) start [2025-01-24 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316941', 'tblTempVendorCDR_20' ) end [2025-01-24 03:35:19] Production.INFO: ProcessCDR(1,14316941,1,1,2) [2025-01-24 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316941', 'tblTempUsageDetail_20' ) start [2025-01-24 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316941', 'tblTempUsageDetail_20' ) end [2025-01-24 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:35:22] Production.INFO: ==7929== Releasing lock... [2025-01-24 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:36:06 [end_date_ymd] => 2025-01-24 03:36:06 [RateCDR] => 1 ) [2025-01-24 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:36:06' and `end` < '2025-01-24 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:36:19] Production.INFO: count ==399 [2025-01-24 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:36:06 - End Time 2025-01-24 03:36:06 [2025-01-24 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316946', 'tblTempUsageDetail_20' ) start [2025-01-24 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316946', 'tblTempUsageDetail_20' ) end [2025-01-24 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316946', 'tblTempVendorCDR_20' ) start [2025-01-24 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316946', 'tblTempVendorCDR_20' ) end [2025-01-24 03:36:19] Production.INFO: ProcessCDR(1,14316946,1,1,2) [2025-01-24 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316946', 'tblTempUsageDetail_20' ) start [2025-01-24 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316946', 'tblTempUsageDetail_20' ) end [2025-01-24 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:36:23] Production.INFO: ==8011== Releasing lock... [2025-01-24 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:36:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:37:06 [end_date_ymd] => 2025-01-24 03:37:06 [RateCDR] => 1 ) [2025-01-24 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:37:06' and `end` < '2025-01-24 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:37:19] Production.INFO: count ==396 [2025-01-24 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:37:06 - End Time 2025-01-24 03:37:06 [2025-01-24 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316951', 'tblTempUsageDetail_20' ) start [2025-01-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316951', 'tblTempUsageDetail_20' ) end [2025-01-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316951', 'tblTempVendorCDR_20' ) start [2025-01-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316951', 'tblTempVendorCDR_20' ) end [2025-01-24 03:37:19] Production.INFO: ProcessCDR(1,14316951,1,1,2) [2025-01-24 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316951', 'tblTempUsageDetail_20' ) start [2025-01-24 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316951', 'tblTempUsageDetail_20' ) end [2025-01-24 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:37:22] Production.INFO: ==8094== Releasing lock... [2025-01-24 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:38:05 [end_date_ymd] => 2025-01-24 03:38:05 [RateCDR] => 1 ) [2025-01-24 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:38:05' and `end` < '2025-01-24 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-24 03:38:19] Production.INFO: count ==395 [2025-01-24 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:38:05 - End Time 2025-01-24 03:38:05 [2025-01-24 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316956', 'tblTempUsageDetail_20' ) start [2025-01-24 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316956', 'tblTempUsageDetail_20' ) end [2025-01-24 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316956', 'tblTempVendorCDR_20' ) start [2025-01-24 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316956', 'tblTempVendorCDR_20' ) end [2025-01-24 03:38:19] Production.INFO: ProcessCDR(1,14316956,1,1,2) [2025-01-24 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316956', 'tblTempUsageDetail_20' ) start [2025-01-24 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316956', 'tblTempUsageDetail_20' ) end [2025-01-24 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:38:22] Production.INFO: ==8175== Releasing lock... [2025-01-24 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:39:05 [end_date_ymd] => 2025-01-24 03:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:39:05' and `end` < '2025-01-24 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-24 03:39:18] Production.INFO: count ==395 [2025-01-24 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:39:05 - End Time 2025-01-24 03:39:05 [2025-01-24 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316961', 'tblTempUsageDetail_20' ) start [2025-01-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316961', 'tblTempUsageDetail_20' ) end [2025-01-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316961', 'tblTempVendorCDR_20' ) start [2025-01-24 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316961', 'tblTempVendorCDR_20' ) end [2025-01-24 03:39:18] Production.INFO: ProcessCDR(1,14316961,1,1,2) [2025-01-24 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316961', 'tblTempUsageDetail_20' ) start [2025-01-24 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316961', 'tblTempUsageDetail_20' ) end [2025-01-24 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:39:21] Production.INFO: ==8257== Releasing lock... [2025-01-24 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:40:06 [end_date_ymd] => 2025-01-24 03:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 00:40:06' and `end` < '2025-01-24 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-24 03:40:19] Production.INFO: count ==382 [2025-01-24 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:40:06 - End Time 2025-01-24 03:40:06 [2025-01-24 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316967', 'tblTempUsageDetail_20' ) start [2025-01-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316967', 'tblTempUsageDetail_20' ) end [2025-01-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316967', 'tblTempVendorCDR_20' ) start [2025-01-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316967', 'tblTempVendorCDR_20' ) end [2025-01-24 03:40:19] Production.INFO: ProcessCDR(1,14316967,1,1,2) [2025-01-24 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316967', 'tblTempUsageDetail_20' ) start [2025-01-24 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316967', 'tblTempUsageDetail_20' ) end [2025-01-24 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:40:22] Production.INFO: ==8340== Releasing lock... [2025-01-24 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:41:06 [end_date_ymd] => 2025-01-24 03:41:06 [RateCDR] => 1 ) [2025-01-24 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:41:06' and `end` < '2025-01-24 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:41:19] Production.INFO: count ==368 [2025-01-24 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:41:06 - End Time 2025-01-24 03:41:06 [2025-01-24 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316972', 'tblTempUsageDetail_20' ) start [2025-01-24 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316972', 'tblTempUsageDetail_20' ) end [2025-01-24 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316972', 'tblTempVendorCDR_20' ) start [2025-01-24 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316972', 'tblTempVendorCDR_20' ) end [2025-01-24 03:41:19] Production.INFO: ProcessCDR(1,14316972,1,1,2) [2025-01-24 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316972', 'tblTempUsageDetail_20' ) start [2025-01-24 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316972', 'tblTempUsageDetail_20' ) end [2025-01-24 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:41:22] Production.INFO: ==8425== Releasing lock... [2025-01-24 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:42:05 [end_date_ymd] => 2025-01-24 03:42:05 [RateCDR] => 1 ) [2025-01-24 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:42:05' and `end` < '2025-01-24 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:42:18] Production.INFO: count ==368 [2025-01-24 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:42:05 - End Time 2025-01-24 03:42:05 [2025-01-24 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316977', 'tblTempUsageDetail_20' ) start [2025-01-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316977', 'tblTempUsageDetail_20' ) end [2025-01-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316977', 'tblTempVendorCDR_20' ) start [2025-01-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316977', 'tblTempVendorCDR_20' ) end [2025-01-24 03:42:18] Production.INFO: ProcessCDR(1,14316977,1,1,2) [2025-01-24 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316977', 'tblTempUsageDetail_20' ) start [2025-01-24 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316977', 'tblTempUsageDetail_20' ) end [2025-01-24 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:42:22] Production.INFO: ==8506== Releasing lock... [2025-01-24 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:43:06 [end_date_ymd] => 2025-01-24 03:43:06 [RateCDR] => 1 ) [2025-01-24 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:43:06' and `end` < '2025-01-24 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:43:18] Production.INFO: count ==364 [2025-01-24 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:43:06 - End Time 2025-01-24 03:43:06 [2025-01-24 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316982', 'tblTempUsageDetail_20' ) start [2025-01-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316982', 'tblTempUsageDetail_20' ) end [2025-01-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316982', 'tblTempVendorCDR_20' ) start [2025-01-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316982', 'tblTempVendorCDR_20' ) end [2025-01-24 03:43:18] Production.INFO: ProcessCDR(1,14316982,1,1,2) [2025-01-24 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316982', 'tblTempUsageDetail_20' ) start [2025-01-24 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316982', 'tblTempUsageDetail_20' ) end [2025-01-24 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:43:21] Production.INFO: ==8590== Releasing lock... [2025-01-24 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:44:06 [end_date_ymd] => 2025-01-24 03:44:06 [RateCDR] => 1 ) [2025-01-24 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:44:06' and `end` < '2025-01-24 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:44:19] Production.INFO: count ==364 [2025-01-24 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:44:06 - End Time 2025-01-24 03:44:06 [2025-01-24 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316987', 'tblTempUsageDetail_20' ) start [2025-01-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316987', 'tblTempUsageDetail_20' ) end [2025-01-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316987', 'tblTempVendorCDR_20' ) start [2025-01-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316987', 'tblTempVendorCDR_20' ) end [2025-01-24 03:44:19] Production.INFO: ProcessCDR(1,14316987,1,1,2) [2025-01-24 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316987', 'tblTempUsageDetail_20' ) start [2025-01-24 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316987', 'tblTempUsageDetail_20' ) end [2025-01-24 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:44:23] Production.INFO: ==8671== Releasing lock... [2025-01-24 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:44:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:45:05 [end_date_ymd] => 2025-01-24 03:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:45:05' and `end` < '2025-01-24 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-24 03:45:18] Production.INFO: count ==364 [2025-01-24 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:45:05 - End Time 2025-01-24 03:45:05 [2025-01-24 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316992', 'tblTempUsageDetail_20' ) start [2025-01-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316992', 'tblTempUsageDetail_20' ) end [2025-01-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316992', 'tblTempVendorCDR_20' ) start [2025-01-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316992', 'tblTempVendorCDR_20' ) end [2025-01-24 03:45:18] Production.INFO: ProcessCDR(1,14316992,1,1,2) [2025-01-24 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316992', 'tblTempUsageDetail_20' ) start [2025-01-24 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316992', 'tblTempUsageDetail_20' ) end [2025-01-24 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:45:21] Production.INFO: ==8789== Releasing lock... [2025-01-24 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:46:05 [end_date_ymd] => 2025-01-24 03:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:46:05' and `end` < '2025-01-24 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-24 03:46:18] Production.INFO: count ==364 [2025-01-24 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:46:05 - End Time 2025-01-24 03:46:05 [2025-01-24 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316997', 'tblTempUsageDetail_20' ) start [2025-01-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14316997', 'tblTempUsageDetail_20' ) end [2025-01-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316997', 'tblTempVendorCDR_20' ) start [2025-01-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14316997', 'tblTempVendorCDR_20' ) end [2025-01-24 03:46:18] Production.INFO: ProcessCDR(1,14316997,1,1,2) [2025-01-24 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14316997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14316997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14316997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14316997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316997', 'tblTempUsageDetail_20' ) start [2025-01-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14316997', 'tblTempUsageDetail_20' ) end [2025-01-24 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:46:21] Production.INFO: ==8873== Releasing lock... [2025-01-24 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:47:06 [end_date_ymd] => 2025-01-24 03:47:06 [RateCDR] => 1 ) [2025-01-24 03: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-24 00:47:06' and `end` < '2025-01-24 03: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-24 03:47:19] Production.INFO: count ==364 [2025-01-24 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:47:06 - End Time 2025-01-24 03:47:06 [2025-01-24 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317002', 'tblTempUsageDetail_20' ) start [2025-01-24 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317002', 'tblTempUsageDetail_20' ) end [2025-01-24 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317002', 'tblTempVendorCDR_20' ) start [2025-01-24 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317002', 'tblTempVendorCDR_20' ) end [2025-01-24 03:47:19] Production.INFO: ProcessCDR(1,14317002,1,1,2) [2025-01-24 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317002', 'tblTempUsageDetail_20' ) start [2025-01-24 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317002', 'tblTempUsageDetail_20' ) end [2025-01-24 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:47:22] Production.INFO: ==8962== Releasing lock... [2025-01-24 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:48:05 [end_date_ymd] => 2025-01-24 03:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:48:05' and `end` < '2025-01-24 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-24 03:48:18] Production.INFO: count ==362 [2025-01-24 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:48:05 - End Time 2025-01-24 03:48:05 [2025-01-24 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317007', 'tblTempUsageDetail_20' ) start [2025-01-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317007', 'tblTempUsageDetail_20' ) end [2025-01-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317007', 'tblTempVendorCDR_20' ) start [2025-01-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317007', 'tblTempVendorCDR_20' ) end [2025-01-24 03:48:18] Production.INFO: ProcessCDR(1,14317007,1,1,2) [2025-01-24 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317007', 'tblTempUsageDetail_20' ) start [2025-01-24 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317007', 'tblTempUsageDetail_20' ) end [2025-01-24 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:48:22] Production.INFO: ==9044== Releasing lock... [2025-01-24 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:49:06 [end_date_ymd] => 2025-01-24 03:49:06 [RateCDR] => 1 ) [2025-01-24 03: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-24 00:49:06' and `end` < '2025-01-24 03: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-24 03:49:18] Production.INFO: count ==362 [2025-01-24 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:49:06 - End Time 2025-01-24 03:49:06 [2025-01-24 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317012', 'tblTempUsageDetail_20' ) start [2025-01-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317012', 'tblTempUsageDetail_20' ) end [2025-01-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317012', 'tblTempVendorCDR_20' ) start [2025-01-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317012', 'tblTempVendorCDR_20' ) end [2025-01-24 03:49:18] Production.INFO: ProcessCDR(1,14317012,1,1,2) [2025-01-24 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317012', 'tblTempUsageDetail_20' ) start [2025-01-24 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317012', 'tblTempUsageDetail_20' ) end [2025-01-24 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:49:22] Production.INFO: ==9132== Releasing lock... [2025-01-24 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:50:06 [end_date_ymd] => 2025-01-24 03:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 00:50:06' and `end` < '2025-01-24 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-24 03:50:18] Production.INFO: count ==358 [2025-01-24 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:50:06 - End Time 2025-01-24 03:50:06 [2025-01-24 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317018', 'tblTempUsageDetail_20' ) start [2025-01-24 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317018', 'tblTempUsageDetail_20' ) end [2025-01-24 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317018', 'tblTempVendorCDR_20' ) start [2025-01-24 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317018', 'tblTempVendorCDR_20' ) end [2025-01-24 03:50:18] Production.INFO: ProcessCDR(1,14317018,1,1,2) [2025-01-24 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317018', 'tblTempUsageDetail_20' ) start [2025-01-24 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317018', 'tblTempUsageDetail_20' ) end [2025-01-24 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:50:22] Production.INFO: ==9217== Releasing lock... [2025-01-24 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:51:06 [end_date_ymd] => 2025-01-24 03:51:06 [RateCDR] => 1 ) [2025-01-24 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:51:06' and `end` < '2025-01-24 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:51:18] Production.INFO: count ==344 [2025-01-24 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:51:06 - End Time 2025-01-24 03:51:06 [2025-01-24 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317023', 'tblTempUsageDetail_20' ) start [2025-01-24 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317023', 'tblTempUsageDetail_20' ) end [2025-01-24 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317023', 'tblTempVendorCDR_20' ) start [2025-01-24 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317023', 'tblTempVendorCDR_20' ) end [2025-01-24 03:51:19] Production.INFO: ProcessCDR(1,14317023,1,1,2) [2025-01-24 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317023', 'tblTempUsageDetail_20' ) start [2025-01-24 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317023', 'tblTempUsageDetail_20' ) end [2025-01-24 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:51:22] Production.INFO: ==9303== Releasing lock... [2025-01-24 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:51:22] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:52:06 [end_date_ymd] => 2025-01-24 03:52:06 [RateCDR] => 1 ) [2025-01-24 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-24 00:52:06' and `end` < '2025-01-24 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-24 03:52:18] Production.INFO: count ==344 [2025-01-24 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:52:06 - End Time 2025-01-24 03:52:06 [2025-01-24 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317028', 'tblTempUsageDetail_20' ) start [2025-01-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317028', 'tblTempUsageDetail_20' ) end [2025-01-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317028', 'tblTempVendorCDR_20' ) start [2025-01-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317028', 'tblTempVendorCDR_20' ) end [2025-01-24 03:52:18] Production.INFO: ProcessCDR(1,14317028,1,1,2) [2025-01-24 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317028', 'tblTempUsageDetail_20' ) start [2025-01-24 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317028', 'tblTempUsageDetail_20' ) end [2025-01-24 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:52:22] Production.INFO: ==9394== Releasing lock... [2025-01-24 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:52:22] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:53:06 [end_date_ymd] => 2025-01-24 03:53:06 [RateCDR] => 1 ) [2025-01-24 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:53:06' and `end` < '2025-01-24 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:53:19] Production.INFO: count ==344 [2025-01-24 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:53:06 - End Time 2025-01-24 03:53:06 [2025-01-24 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317033', 'tblTempUsageDetail_20' ) start [2025-01-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317033', 'tblTempUsageDetail_20' ) end [2025-01-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317033', 'tblTempVendorCDR_20' ) start [2025-01-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317033', 'tblTempVendorCDR_20' ) end [2025-01-24 03:53:19] Production.INFO: ProcessCDR(1,14317033,1,1,2) [2025-01-24 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317033', 'tblTempUsageDetail_20' ) start [2025-01-24 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317033', 'tblTempUsageDetail_20' ) end [2025-01-24 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:53:23] Production.INFO: ==9479== Releasing lock... [2025-01-24 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:53:23] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:54:05 [end_date_ymd] => 2025-01-24 03:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:54:05' and `end` < '2025-01-24 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-24 03:54:18] Production.INFO: count ==344 [2025-01-24 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:54:05 - End Time 2025-01-24 03:54:05 [2025-01-24 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317038', 'tblTempUsageDetail_20' ) start [2025-01-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317038', 'tblTempUsageDetail_20' ) end [2025-01-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317038', 'tblTempVendorCDR_20' ) start [2025-01-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317038', 'tblTempVendorCDR_20' ) end [2025-01-24 03:54:18] Production.INFO: ProcessCDR(1,14317038,1,1,2) [2025-01-24 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317038', 'tblTempUsageDetail_20' ) start [2025-01-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317038', 'tblTempUsageDetail_20' ) end [2025-01-24 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:54:21] Production.INFO: ==9566== Releasing lock... [2025-01-24 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:54:21] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:55:06 [end_date_ymd] => 2025-01-24 03:55:06 [RateCDR] => 1 ) [2025-01-24 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:55:06' and `end` < '2025-01-24 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:55:19] Production.INFO: count ==344 [2025-01-24 03:55:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:55:06 - End Time 2025-01-24 03:55:06 [2025-01-24 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317043', 'tblTempUsageDetail_20' ) start [2025-01-24 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317043', 'tblTempUsageDetail_20' ) end [2025-01-24 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317043', 'tblTempVendorCDR_20' ) start [2025-01-24 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317043', 'tblTempVendorCDR_20' ) end [2025-01-24 03:55:19] Production.INFO: ProcessCDR(1,14317043,1,1,2) [2025-01-24 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317043', 'tblTempUsageDetail_20' ) start [2025-01-24 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317043', 'tblTempUsageDetail_20' ) end [2025-01-24 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:55:22] Production.INFO: ==9650== Releasing lock... [2025-01-24 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:55:22] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:56:05 [end_date_ymd] => 2025-01-24 03:56:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:56:05' and `end` < '2025-01-24 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-24 03:56:19] Production.INFO: count ==345 [2025-01-24 03:56:20] Production.ERROR: pbx CDR StartTime 2025-01-24 00:56:05 - End Time 2025-01-24 03:56:05 [2025-01-24 03:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317048', 'tblTempUsageDetail_20' ) start [2025-01-24 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317048', 'tblTempUsageDetail_20' ) end [2025-01-24 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317048', 'tblTempVendorCDR_20' ) start [2025-01-24 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317048', 'tblTempVendorCDR_20' ) end [2025-01-24 03:56:20] Production.INFO: ProcessCDR(1,14317048,1,1,2) [2025-01-24 03:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317048', 'tblTempUsageDetail_20' ) start [2025-01-24 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317048', 'tblTempUsageDetail_20' ) end [2025-01-24 03:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:56:23] Production.INFO: ==9737== Releasing lock... [2025-01-24 03:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:56:23] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:57:06 [end_date_ymd] => 2025-01-24 03:57:06 [RateCDR] => 1 ) [2025-01-24 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-24 00:57:06' and `end` < '2025-01-24 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-24 03:57:19] Production.INFO: count ==342 [2025-01-24 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-24 00:57:06 - End Time 2025-01-24 03:57:06 [2025-01-24 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317053', 'tblTempUsageDetail_20' ) start [2025-01-24 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317053', 'tblTempUsageDetail_20' ) end [2025-01-24 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317053', 'tblTempVendorCDR_20' ) start [2025-01-24 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317053', 'tblTempVendorCDR_20' ) end [2025-01-24 03:57:19] Production.INFO: ProcessCDR(1,14317053,1,1,2) [2025-01-24 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317053', 'tblTempUsageDetail_20' ) start [2025-01-24 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317053', 'tblTempUsageDetail_20' ) end [2025-01-24 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:57:23] Production.INFO: ==9823== Releasing lock... [2025-01-24 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:57:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:58:06 [end_date_ymd] => 2025-01-24 03:58:06 [RateCDR] => 1 ) [2025-01-24 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 00:58:06' and `end` < '2025-01-24 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 03:58:18] Production.INFO: count ==341 [2025-01-24 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:58:06 - End Time 2025-01-24 03:58:06 [2025-01-24 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317058', 'tblTempUsageDetail_20' ) start [2025-01-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317058', 'tblTempUsageDetail_20' ) end [2025-01-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317058', 'tblTempVendorCDR_20' ) start [2025-01-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317058', 'tblTempVendorCDR_20' ) end [2025-01-24 03:58:18] Production.INFO: ProcessCDR(1,14317058,1,1,2) [2025-01-24 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317058', 'tblTempUsageDetail_20' ) start [2025-01-24 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317058', 'tblTempUsageDetail_20' ) end [2025-01-24 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:58:22] Production.INFO: ==9911== Releasing lock... [2025-01-24 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:58:22] Production.INFO: 30 MB #Memory Used# [2025-01-24 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 00:59:05 [end_date_ymd] => 2025-01-24 03:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 00:59:05' and `end` < '2025-01-24 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-24 03:59:18] Production.INFO: count ==341 [2025-01-24 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 00:59:05 - End Time 2025-01-24 03:59:05 [2025-01-24 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317063', 'tblTempUsageDetail_20' ) start [2025-01-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317063', 'tblTempUsageDetail_20' ) end [2025-01-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317063', 'tblTempVendorCDR_20' ) start [2025-01-24 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317063', 'tblTempVendorCDR_20' ) end [2025-01-24 03:59:18] Production.INFO: ProcessCDR(1,14317063,1,1,2) [2025-01-24 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317063', 'tblTempUsageDetail_20' ) start [2025-01-24 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317063', 'tblTempUsageDetail_20' ) end [2025-01-24 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 03:59:21] Production.INFO: ==9993== Releasing lock... [2025-01-24 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 03:59:21] Production.INFO: 30 MB #Memory Used# [2025-01-24 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:00:07 [end_date_ymd] => 2025-01-24 04:00:07 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:00:07' and `end` < '2025-01-24 04: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-24 04:00:19] Production.INFO: count ==325 [2025-01-24 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:00:07 - End Time 2025-01-24 04:00:07 [2025-01-24 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317070', 'tblTempUsageDetail_20' ) start [2025-01-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317070', 'tblTempUsageDetail_20' ) end [2025-01-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317070', 'tblTempVendorCDR_20' ) start [2025-01-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317070', 'tblTempVendorCDR_20' ) end [2025-01-24 04:00:19] Production.INFO: ProcessCDR(1,14317070,1,1,2) [2025-01-24 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317070', 'tblTempUsageDetail_20' ) start [2025-01-24 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317070', 'tblTempUsageDetail_20' ) end [2025-01-24 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:00:24] Production.INFO: ==10119== Releasing lock... [2025-01-24 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:00:24] Production.INFO: 30 MB #Memory Used# [2025-01-24 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:01:06 [end_date_ymd] => 2025-01-24 04:01:06 [RateCDR] => 1 ) [2025-01-24 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:01:06' and `end` < '2025-01-24 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:01:18] Production.INFO: count ==308 [2025-01-24 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:01:06 - End Time 2025-01-24 04:01:06 [2025-01-24 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317075', 'tblTempUsageDetail_20' ) start [2025-01-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317075', 'tblTempUsageDetail_20' ) end [2025-01-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317075', 'tblTempVendorCDR_20' ) start [2025-01-24 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317075', 'tblTempVendorCDR_20' ) end [2025-01-24 04:01:18] Production.INFO: ProcessCDR(1,14317075,1,1,2) [2025-01-24 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317075', 'tblTempUsageDetail_20' ) start [2025-01-24 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317075', 'tblTempUsageDetail_20' ) end [2025-01-24 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:01:21] Production.INFO: ==10210== Releasing lock... [2025-01-24 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:02:06 [end_date_ymd] => 2025-01-24 04:02:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:02:06' and `end` < '2025-01-24 04: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-24 04:02:18] Production.INFO: count ==307 [2025-01-24 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:02:06 - End Time 2025-01-24 04:02:06 [2025-01-24 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317080', 'tblTempUsageDetail_20' ) start [2025-01-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317080', 'tblTempUsageDetail_20' ) end [2025-01-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317080', 'tblTempVendorCDR_20' ) start [2025-01-24 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317080', 'tblTempVendorCDR_20' ) end [2025-01-24 04:02:18] Production.INFO: ProcessCDR(1,14317080,1,1,2) [2025-01-24 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317080', 'tblTempUsageDetail_20' ) start [2025-01-24 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317080', 'tblTempUsageDetail_20' ) end [2025-01-24 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:02:22] Production.INFO: ==10299== Releasing lock... [2025-01-24 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:03:05 [end_date_ymd] => 2025-01-24 04:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:03:05' and `end` < '2025-01-24 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-24 04:03:19] Production.INFO: count ==307 [2025-01-24 04:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:03:05 - End Time 2025-01-24 04:03:05 [2025-01-24 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317085', 'tblTempUsageDetail_20' ) start [2025-01-24 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317085', 'tblTempUsageDetail_20' ) end [2025-01-24 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317085', 'tblTempVendorCDR_20' ) start [2025-01-24 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317085', 'tblTempVendorCDR_20' ) end [2025-01-24 04:03:19] Production.INFO: ProcessCDR(1,14317085,1,1,2) [2025-01-24 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317085', 'tblTempUsageDetail_20' ) start [2025-01-24 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317085', 'tblTempUsageDetail_20' ) end [2025-01-24 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:03:22] Production.INFO: ==10378== Releasing lock... [2025-01-24 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:04:06 [end_date_ymd] => 2025-01-24 04:04:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:04:06' and `end` < '2025-01-24 04: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-24 04:04:20] Production.INFO: count ==309 [2025-01-24 04:04:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:04:06 - End Time 2025-01-24 04:04:06 [2025-01-24 04:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317090', 'tblTempUsageDetail_20' ) start [2025-01-24 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317090', 'tblTempUsageDetail_20' ) end [2025-01-24 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317090', 'tblTempVendorCDR_20' ) start [2025-01-24 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317090', 'tblTempVendorCDR_20' ) end [2025-01-24 04:04:20] Production.INFO: ProcessCDR(1,14317090,1,1,2) [2025-01-24 04:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317090', 'tblTempUsageDetail_20' ) start [2025-01-24 04:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317090', 'tblTempUsageDetail_20' ) end [2025-01-24 04:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:04:25] Production.INFO: ==10463== Releasing lock... [2025-01-24 04:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:04:25] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:05:06 [end_date_ymd] => 2025-01-24 04:05:06 [RateCDR] => 1 ) [2025-01-24 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:05:06' and `end` < '2025-01-24 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:05:18] Production.INFO: count ==309 [2025-01-24 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:05:06 - End Time 2025-01-24 04:05:06 [2025-01-24 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317095', 'tblTempUsageDetail_20' ) start [2025-01-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317095', 'tblTempUsageDetail_20' ) end [2025-01-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317095', 'tblTempVendorCDR_20' ) start [2025-01-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317095', 'tblTempVendorCDR_20' ) end [2025-01-24 04:05:18] Production.INFO: ProcessCDR(1,14317095,1,1,2) [2025-01-24 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317095', 'tblTempUsageDetail_20' ) start [2025-01-24 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317095', 'tblTempUsageDetail_20' ) end [2025-01-24 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:05:22] Production.INFO: ==10543== Releasing lock... [2025-01-24 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:06:06 [end_date_ymd] => 2025-01-24 04:06:06 [RateCDR] => 1 ) [2025-01-24 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:06:06' and `end` < '2025-01-24 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:06:20] Production.INFO: count ==309 [2025-01-24 04:06:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:06:06 - End Time 2025-01-24 04:06:06 [2025-01-24 04:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317100', 'tblTempUsageDetail_20' ) start [2025-01-24 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317100', 'tblTempUsageDetail_20' ) end [2025-01-24 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317100', 'tblTempVendorCDR_20' ) start [2025-01-24 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317100', 'tblTempVendorCDR_20' ) end [2025-01-24 04:06:20] Production.INFO: ProcessCDR(1,14317100,1,1,2) [2025-01-24 04:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317100', 'tblTempUsageDetail_20' ) start [2025-01-24 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317100', 'tblTempUsageDetail_20' ) end [2025-01-24 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:06:23] Production.INFO: ==10628== Releasing lock... [2025-01-24 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:06:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:07:05 [end_date_ymd] => 2025-01-24 04:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:07:05' and `end` < '2025-01-24 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-24 04:07:18] Production.INFO: count ==306 [2025-01-24 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:07:05 - End Time 2025-01-24 04:07:05 [2025-01-24 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317105', 'tblTempUsageDetail_20' ) start [2025-01-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317105', 'tblTempUsageDetail_20' ) end [2025-01-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317105', 'tblTempVendorCDR_20' ) start [2025-01-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317105', 'tblTempVendorCDR_20' ) end [2025-01-24 04:07:18] Production.INFO: ProcessCDR(1,14317105,1,1,2) [2025-01-24 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317105', 'tblTempUsageDetail_20' ) start [2025-01-24 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317105', 'tblTempUsageDetail_20' ) end [2025-01-24 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:07:22] Production.INFO: ==10709== Releasing lock... [2025-01-24 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:08:05 [end_date_ymd] => 2025-01-24 04:08:05 [RateCDR] => 1 ) [2025-01-24 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:08:05' and `end` < '2025-01-24 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:08:18] Production.INFO: count ==306 [2025-01-24 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:08:05 - End Time 2025-01-24 04:08:05 [2025-01-24 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317110', 'tblTempUsageDetail_20' ) start [2025-01-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317110', 'tblTempUsageDetail_20' ) end [2025-01-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317110', 'tblTempVendorCDR_20' ) start [2025-01-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317110', 'tblTempVendorCDR_20' ) end [2025-01-24 04:08:18] Production.INFO: ProcessCDR(1,14317110,1,1,2) [2025-01-24 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317110', 'tblTempUsageDetail_20' ) start [2025-01-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317110', 'tblTempUsageDetail_20' ) end [2025-01-24 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:08:22] Production.INFO: ==10786== Releasing lock... [2025-01-24 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:09:05 [end_date_ymd] => 2025-01-24 04:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:09:05' and `end` < '2025-01-24 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-24 04:09:18] Production.INFO: count ==305 [2025-01-24 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:09:05 - End Time 2025-01-24 04:09:05 [2025-01-24 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317115', 'tblTempUsageDetail_20' ) start [2025-01-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317115', 'tblTempUsageDetail_20' ) end [2025-01-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317115', 'tblTempVendorCDR_20' ) start [2025-01-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317115', 'tblTempVendorCDR_20' ) end [2025-01-24 04:09:18] Production.INFO: ProcessCDR(1,14317115,1,1,2) [2025-01-24 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317115', 'tblTempUsageDetail_20' ) start [2025-01-24 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317115', 'tblTempUsageDetail_20' ) end [2025-01-24 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:09:21] Production.INFO: ==10869== Releasing lock... [2025-01-24 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:10:06 [end_date_ymd] => 2025-01-24 04:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 01:10:06' and `end` < '2025-01-24 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-24 04:10:18] Production.INFO: count ==294 [2025-01-24 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:10:06 - End Time 2025-01-24 04:10:06 [2025-01-24 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317121', 'tblTempUsageDetail_20' ) start [2025-01-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317121', 'tblTempUsageDetail_20' ) end [2025-01-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317121', 'tblTempVendorCDR_20' ) start [2025-01-24 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317121', 'tblTempVendorCDR_20' ) end [2025-01-24 04:10:19] Production.INFO: ProcessCDR(1,14317121,1,1,2) [2025-01-24 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317121', 'tblTempUsageDetail_20' ) start [2025-01-24 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317121', 'tblTempUsageDetail_20' ) end [2025-01-24 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:10:22] Production.INFO: ==10947== Releasing lock... [2025-01-24 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:11:06 [end_date_ymd] => 2025-01-24 04:11:06 [RateCDR] => 1 ) [2025-01-24 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:11:06' and `end` < '2025-01-24 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:11:20] Production.INFO: count ==286 [2025-01-24 04:11:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:11:06 - End Time 2025-01-24 04:11:06 [2025-01-24 04:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317126', 'tblTempUsageDetail_20' ) start [2025-01-24 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317126', 'tblTempUsageDetail_20' ) end [2025-01-24 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317126', 'tblTempVendorCDR_20' ) start [2025-01-24 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317126', 'tblTempVendorCDR_20' ) end [2025-01-24 04:11:20] Production.INFO: ProcessCDR(1,14317126,1,1,2) [2025-01-24 04:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317126', 'tblTempUsageDetail_20' ) start [2025-01-24 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317126', 'tblTempUsageDetail_20' ) end [2025-01-24 04:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:11:23] Production.INFO: ==11026== Releasing lock... [2025-01-24 04:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:11:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:12:05 [end_date_ymd] => 2025-01-24 04:12:05 [RateCDR] => 1 ) [2025-01-24 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:12:05' and `end` < '2025-01-24 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:12:18] Production.INFO: count ==286 [2025-01-24 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:12:05 - End Time 2025-01-24 04:12:05 [2025-01-24 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317131', 'tblTempUsageDetail_20' ) start [2025-01-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317131', 'tblTempUsageDetail_20' ) end [2025-01-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317131', 'tblTempVendorCDR_20' ) start [2025-01-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317131', 'tblTempVendorCDR_20' ) end [2025-01-24 04:12:18] Production.INFO: ProcessCDR(1,14317131,1,1,2) [2025-01-24 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317131', 'tblTempUsageDetail_20' ) start [2025-01-24 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317131', 'tblTempUsageDetail_20' ) end [2025-01-24 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:12:22] Production.INFO: ==11105== Releasing lock... [2025-01-24 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:13:06 [end_date_ymd] => 2025-01-24 04:13:06 [RateCDR] => 1 ) [2025-01-24 04:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:13:06' and `end` < '2025-01-24 04:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:13:19] Production.INFO: count ==281 [2025-01-24 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:13:06 - End Time 2025-01-24 04:13:06 [2025-01-24 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317136', 'tblTempUsageDetail_20' ) start [2025-01-24 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317136', 'tblTempUsageDetail_20' ) end [2025-01-24 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317136', 'tblTempVendorCDR_20' ) start [2025-01-24 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317136', 'tblTempVendorCDR_20' ) end [2025-01-24 04:13:19] Production.INFO: ProcessCDR(1,14317136,1,1,2) [2025-01-24 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317136', 'tblTempUsageDetail_20' ) start [2025-01-24 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317136', 'tblTempUsageDetail_20' ) end [2025-01-24 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:13:23] Production.INFO: ==11178== Releasing lock... [2025-01-24 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:13:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:14:06 [end_date_ymd] => 2025-01-24 04:14:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:14:06' and `end` < '2025-01-24 04: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-24 04:14:18] Production.INFO: count ==281 [2025-01-24 04:14:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:14:06 - End Time 2025-01-24 04:14:06 [2025-01-24 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317141', 'tblTempUsageDetail_20' ) start [2025-01-24 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317141', 'tblTempUsageDetail_20' ) end [2025-01-24 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317141', 'tblTempVendorCDR_20' ) start [2025-01-24 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317141', 'tblTempVendorCDR_20' ) end [2025-01-24 04:14:19] Production.INFO: ProcessCDR(1,14317141,1,1,2) [2025-01-24 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317141', 'tblTempUsageDetail_20' ) start [2025-01-24 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317141', 'tblTempUsageDetail_20' ) end [2025-01-24 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:14:22] Production.INFO: ==11256== Releasing lock... [2025-01-24 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:15:06 [end_date_ymd] => 2025-01-24 04:15:06 [RateCDR] => 1 ) [2025-01-24 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:15:06' and `end` < '2025-01-24 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:15:18] Production.INFO: count ==281 [2025-01-24 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:15:06 - End Time 2025-01-24 04:15:06 [2025-01-24 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317146', 'tblTempUsageDetail_20' ) start [2025-01-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317146', 'tblTempUsageDetail_20' ) end [2025-01-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317146', 'tblTempVendorCDR_20' ) start [2025-01-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317146', 'tblTempVendorCDR_20' ) end [2025-01-24 04:15:18] Production.INFO: ProcessCDR(1,14317146,1,1,2) [2025-01-24 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317146', 'tblTempUsageDetail_20' ) start [2025-01-24 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317146', 'tblTempUsageDetail_20' ) end [2025-01-24 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:15:22] Production.INFO: ==11336== Releasing lock... [2025-01-24 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:16:06 [end_date_ymd] => 2025-01-24 04:16:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:16:06' and `end` < '2025-01-24 04: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-24 04:16:18] Production.INFO: count ==281 [2025-01-24 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:16:06 - End Time 2025-01-24 04:16:06 [2025-01-24 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317151', 'tblTempUsageDetail_20' ) start [2025-01-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317151', 'tblTempUsageDetail_20' ) end [2025-01-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317151', 'tblTempVendorCDR_20' ) start [2025-01-24 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317151', 'tblTempVendorCDR_20' ) end [2025-01-24 04:16:18] Production.INFO: ProcessCDR(1,14317151,1,1,2) [2025-01-24 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317151', 'tblTempUsageDetail_20' ) start [2025-01-24 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317151', 'tblTempUsageDetail_20' ) end [2025-01-24 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:16:21] Production.INFO: ==11450== Releasing lock... [2025-01-24 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:17:05 [end_date_ymd] => 2025-01-24 04:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:17:05' and `end` < '2025-01-24 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-24 04:17:18] Production.INFO: count ==281 [2025-01-24 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:17:05 - End Time 2025-01-24 04:17:05 [2025-01-24 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317156', 'tblTempUsageDetail_20' ) start [2025-01-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317156', 'tblTempUsageDetail_20' ) end [2025-01-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317156', 'tblTempVendorCDR_20' ) start [2025-01-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317156', 'tblTempVendorCDR_20' ) end [2025-01-24 04:17:18] Production.INFO: ProcessCDR(1,14317156,1,1,2) [2025-01-24 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317156', 'tblTempUsageDetail_20' ) start [2025-01-24 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317156', 'tblTempUsageDetail_20' ) end [2025-01-24 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:17:21] Production.INFO: ==11525== Releasing lock... [2025-01-24 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:18:06 [end_date_ymd] => 2025-01-24 04:18:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:18:06' and `end` < '2025-01-24 04: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-24 04:18:19] Production.INFO: count ==281 [2025-01-24 04:18:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:18:06 - End Time 2025-01-24 04:18:06 [2025-01-24 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317161', 'tblTempUsageDetail_20' ) start [2025-01-24 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317161', 'tblTempUsageDetail_20' ) end [2025-01-24 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317161', 'tblTempVendorCDR_20' ) start [2025-01-24 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317161', 'tblTempVendorCDR_20' ) end [2025-01-24 04:18:19] Production.INFO: ProcessCDR(1,14317161,1,1,2) [2025-01-24 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317161', 'tblTempUsageDetail_20' ) start [2025-01-24 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317161', 'tblTempUsageDetail_20' ) end [2025-01-24 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:18:22] Production.INFO: ==11613== Releasing lock... [2025-01-24 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:19:05 [end_date_ymd] => 2025-01-24 04:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:19:05' and `end` < '2025-01-24 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-24 04:19:18] Production.INFO: count ==281 [2025-01-24 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:19:05 - End Time 2025-01-24 04:19:05 [2025-01-24 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317166', 'tblTempUsageDetail_20' ) start [2025-01-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317166', 'tblTempUsageDetail_20' ) end [2025-01-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317166', 'tblTempVendorCDR_20' ) start [2025-01-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317166', 'tblTempVendorCDR_20' ) end [2025-01-24 04:19:18] Production.INFO: ProcessCDR(1,14317166,1,1,2) [2025-01-24 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317166', 'tblTempUsageDetail_20' ) start [2025-01-24 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317166', 'tblTempUsageDetail_20' ) end [2025-01-24 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:19:21] Production.INFO: ==11690== Releasing lock... [2025-01-24 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:20:07 [end_date_ymd] => 2025-01-24 04:20:07 [RateCDR] => 1 ) [2025-01-24 04:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:20:07' and `end` < '2025-01-24 04:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:20:19] Production.INFO: count ==279 [2025-01-24 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:20:07 - End Time 2025-01-24 04:20:07 [2025-01-24 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317172', 'tblTempUsageDetail_20' ) start [2025-01-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317172', 'tblTempUsageDetail_20' ) end [2025-01-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317172', 'tblTempVendorCDR_20' ) start [2025-01-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317172', 'tblTempVendorCDR_20' ) end [2025-01-24 04:20:19] Production.INFO: ProcessCDR(1,14317172,1,1,2) [2025-01-24 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317172', 'tblTempUsageDetail_20' ) start [2025-01-24 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317172', 'tblTempUsageDetail_20' ) end [2025-01-24 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:20:23] Production.INFO: ==11770== Releasing lock... [2025-01-24 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:21:05 [end_date_ymd] => 2025-01-24 04:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:21:05' and `end` < '2025-01-24 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-24 04:21:18] Production.INFO: count ==277 [2025-01-24 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:21:05 - End Time 2025-01-24 04:21:05 [2025-01-24 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317177', 'tblTempUsageDetail_20' ) start [2025-01-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317177', 'tblTempUsageDetail_20' ) end [2025-01-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317177', 'tblTempVendorCDR_20' ) start [2025-01-24 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317177', 'tblTempVendorCDR_20' ) end [2025-01-24 04:21:18] Production.INFO: ProcessCDR(1,14317177,1,1,2) [2025-01-24 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317177', 'tblTempUsageDetail_20' ) start [2025-01-24 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317177', 'tblTempUsageDetail_20' ) end [2025-01-24 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:21:22] Production.INFO: ==11848== Releasing lock... [2025-01-24 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:22:06 [end_date_ymd] => 2025-01-24 04:22:06 [RateCDR] => 1 ) [2025-01-24 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:22:06' and `end` < '2025-01-24 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:22:19] Production.INFO: count ==275 [2025-01-24 04:22:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:22:06 - End Time 2025-01-24 04:22:06 [2025-01-24 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317182', 'tblTempUsageDetail_20' ) start [2025-01-24 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317182', 'tblTempUsageDetail_20' ) end [2025-01-24 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317182', 'tblTempVendorCDR_20' ) start [2025-01-24 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317182', 'tblTempVendorCDR_20' ) end [2025-01-24 04:22:19] Production.INFO: ProcessCDR(1,14317182,1,1,2) [2025-01-24 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317182', 'tblTempUsageDetail_20' ) start [2025-01-24 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317182', 'tblTempUsageDetail_20' ) end [2025-01-24 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:22:22] Production.INFO: ==11924== Releasing lock... [2025-01-24 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:23:05 [end_date_ymd] => 2025-01-24 04:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:23:05' and `end` < '2025-01-24 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-24 04:23:19] Production.INFO: count ==275 [2025-01-24 04:23:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:23:05 - End Time 2025-01-24 04:23:05 [2025-01-24 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317187', 'tblTempUsageDetail_20' ) start [2025-01-24 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317187', 'tblTempUsageDetail_20' ) end [2025-01-24 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317187', 'tblTempVendorCDR_20' ) start [2025-01-24 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317187', 'tblTempVendorCDR_20' ) end [2025-01-24 04:23:19] Production.INFO: ProcessCDR(1,14317187,1,1,2) [2025-01-24 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317187', 'tblTempUsageDetail_20' ) start [2025-01-24 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317187', 'tblTempUsageDetail_20' ) end [2025-01-24 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:23:22] Production.INFO: ==12001== Releasing lock... [2025-01-24 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:24:06 [end_date_ymd] => 2025-01-24 04:24:06 [RateCDR] => 1 ) [2025-01-24 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:24:06' and `end` < '2025-01-24 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:24:19] Production.INFO: count ==275 [2025-01-24 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:24:06 - End Time 2025-01-24 04:24:06 [2025-01-24 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317192', 'tblTempUsageDetail_20' ) start [2025-01-24 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317192', 'tblTempUsageDetail_20' ) end [2025-01-24 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317192', 'tblTempVendorCDR_20' ) start [2025-01-24 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317192', 'tblTempVendorCDR_20' ) end [2025-01-24 04:24:19] Production.INFO: ProcessCDR(1,14317192,1,1,2) [2025-01-24 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317192', 'tblTempUsageDetail_20' ) start [2025-01-24 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317192', 'tblTempUsageDetail_20' ) end [2025-01-24 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:24:22] Production.INFO: ==12074== Releasing lock... [2025-01-24 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:25:05 [end_date_ymd] => 2025-01-24 04:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:25:05' and `end` < '2025-01-24 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-24 04:25:17] Production.INFO: count ==275 [2025-01-24 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-24 01:25:05 - End Time 2025-01-24 04:25:05 [2025-01-24 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317197', 'tblTempUsageDetail_20' ) start [2025-01-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317197', 'tblTempUsageDetail_20' ) end [2025-01-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317197', 'tblTempVendorCDR_20' ) start [2025-01-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317197', 'tblTempVendorCDR_20' ) end [2025-01-24 04:25:17] Production.INFO: ProcessCDR(1,14317197,1,1,2) [2025-01-24 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317197', 'tblTempUsageDetail_20' ) start [2025-01-24 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317197', 'tblTempUsageDetail_20' ) end [2025-01-24 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:25:21] Production.INFO: ==12150== Releasing lock... [2025-01-24 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:26:06 [end_date_ymd] => 2025-01-24 04:26:06 [RateCDR] => 1 ) [2025-01-24 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-24 01:26:06' and `end` < '2025-01-24 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-24 04:26:19] Production.INFO: count ==275 [2025-01-24 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:26:06 - End Time 2025-01-24 04:26:06 [2025-01-24 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317202', 'tblTempUsageDetail_20' ) start [2025-01-24 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317202', 'tblTempUsageDetail_20' ) end [2025-01-24 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317202', 'tblTempVendorCDR_20' ) start [2025-01-24 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317202', 'tblTempVendorCDR_20' ) end [2025-01-24 04:26:19] Production.INFO: ProcessCDR(1,14317202,1,1,2) [2025-01-24 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317202', 'tblTempUsageDetail_20' ) start [2025-01-24 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317202', 'tblTempUsageDetail_20' ) end [2025-01-24 04:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:26:23] Production.INFO: ==12232== Releasing lock... [2025-01-24 04:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:26:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:27:05 [end_date_ymd] => 2025-01-24 04:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:27:05' and `end` < '2025-01-24 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-24 04:27:19] Production.INFO: count ==275 [2025-01-24 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:27:05 - End Time 2025-01-24 04:27:05 [2025-01-24 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317207', 'tblTempUsageDetail_20' ) start [2025-01-24 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317207', 'tblTempUsageDetail_20' ) end [2025-01-24 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317207', 'tblTempVendorCDR_20' ) start [2025-01-24 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317207', 'tblTempVendorCDR_20' ) end [2025-01-24 04:27:19] Production.INFO: ProcessCDR(1,14317207,1,1,2) [2025-01-24 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317207', 'tblTempUsageDetail_20' ) start [2025-01-24 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317207', 'tblTempUsageDetail_20' ) end [2025-01-24 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:27:22] Production.INFO: ==12306== Releasing lock... [2025-01-24 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:27:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:28:06 [end_date_ymd] => 2025-01-24 04:28:06 [RateCDR] => 1 ) [2025-01-24 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:28:06' and `end` < '2025-01-24 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:28:19] Production.INFO: count ==275 [2025-01-24 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:28:06 - End Time 2025-01-24 04:28:06 [2025-01-24 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317212', 'tblTempUsageDetail_20' ) start [2025-01-24 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317212', 'tblTempUsageDetail_20' ) end [2025-01-24 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317212', 'tblTempVendorCDR_20' ) start [2025-01-24 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317212', 'tblTempVendorCDR_20' ) end [2025-01-24 04:28:19] Production.INFO: ProcessCDR(1,14317212,1,1,2) [2025-01-24 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317212', 'tblTempUsageDetail_20' ) start [2025-01-24 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317212', 'tblTempUsageDetail_20' ) end [2025-01-24 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:28:22] Production.INFO: ==12408== Releasing lock... [2025-01-24 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:29:05 [end_date_ymd] => 2025-01-24 04:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:29:05' and `end` < '2025-01-24 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-24 04:29:18] Production.INFO: count ==272 [2025-01-24 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:29:05 - End Time 2025-01-24 04:29:05 [2025-01-24 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317217', 'tblTempUsageDetail_20' ) start [2025-01-24 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317217', 'tblTempUsageDetail_20' ) end [2025-01-24 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317217', 'tblTempVendorCDR_20' ) start [2025-01-24 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317217', 'tblTempVendorCDR_20' ) end [2025-01-24 04:29:18] Production.INFO: ProcessCDR(1,14317217,1,1,2) [2025-01-24 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317217', 'tblTempUsageDetail_20' ) start [2025-01-24 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317217', 'tblTempUsageDetail_20' ) end [2025-01-24 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:29:21] Production.INFO: ==12509== Releasing lock... [2025-01-24 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:30:07 [end_date_ymd] => 2025-01-24 04:30:07 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:30:07' and `end` < '2025-01-24 04: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-24 04:30:19] Production.INFO: count ==260 [2025-01-24 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:30:07 - End Time 2025-01-24 04:30:07 [2025-01-24 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317223', 'tblTempUsageDetail_20' ) start [2025-01-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317223', 'tblTempUsageDetail_20' ) end [2025-01-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317223', 'tblTempVendorCDR_20' ) start [2025-01-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317223', 'tblTempVendorCDR_20' ) end [2025-01-24 04:30:19] Production.INFO: ProcessCDR(1,14317223,1,1,2) [2025-01-24 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317223', 'tblTempUsageDetail_20' ) start [2025-01-24 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317223', 'tblTempUsageDetail_20' ) end [2025-01-24 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:30:23] Production.INFO: ==12606== Releasing lock... [2025-01-24 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:31:06 [end_date_ymd] => 2025-01-24 04:31:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:31:06' and `end` < '2025-01-24 04: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-24 04:31:18] Production.INFO: count ==250 [2025-01-24 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:31:06 - End Time 2025-01-24 04:31:06 [2025-01-24 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317229', 'tblTempUsageDetail_20' ) start [2025-01-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317229', 'tblTempUsageDetail_20' ) end [2025-01-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317229', 'tblTempVendorCDR_20' ) start [2025-01-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317229', 'tblTempVendorCDR_20' ) end [2025-01-24 04:31:18] Production.INFO: ProcessCDR(1,14317229,1,1,2) [2025-01-24 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317229', 'tblTempUsageDetail_20' ) start [2025-01-24 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317229', 'tblTempUsageDetail_20' ) end [2025-01-24 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:31:22] Production.INFO: ==12745== Releasing lock... [2025-01-24 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:32:06 [end_date_ymd] => 2025-01-24 04:32:06 [RateCDR] => 1 ) [2025-01-24 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:32:06' and `end` < '2025-01-24 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:32:19] Production.INFO: count ==248 [2025-01-24 04:32:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:32:06 - End Time 2025-01-24 04:32:06 [2025-01-24 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317234', 'tblTempUsageDetail_20' ) start [2025-01-24 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317234', 'tblTempUsageDetail_20' ) end [2025-01-24 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317234', 'tblTempVendorCDR_20' ) start [2025-01-24 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317234', 'tblTempVendorCDR_20' ) end [2025-01-24 04:32:19] Production.INFO: ProcessCDR(1,14317234,1,1,2) [2025-01-24 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317234', 'tblTempUsageDetail_20' ) start [2025-01-24 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317234', 'tblTempUsageDetail_20' ) end [2025-01-24 04:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:32:23] Production.INFO: ==12858== Releasing lock... [2025-01-24 04:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:32:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:33:05 [end_date_ymd] => 2025-01-24 04:33:05 [RateCDR] => 1 ) [2025-01-24 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:33:05' and `end` < '2025-01-24 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:33:18] Production.INFO: count ==248 [2025-01-24 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:33:05 - End Time 2025-01-24 04:33:05 [2025-01-24 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317239', 'tblTempUsageDetail_20' ) start [2025-01-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317239', 'tblTempUsageDetail_20' ) end [2025-01-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317239', 'tblTempVendorCDR_20' ) start [2025-01-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317239', 'tblTempVendorCDR_20' ) end [2025-01-24 04:33:18] Production.INFO: ProcessCDR(1,14317239,1,1,2) [2025-01-24 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317239', 'tblTempUsageDetail_20' ) start [2025-01-24 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317239', 'tblTempUsageDetail_20' ) end [2025-01-24 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:33:22] Production.INFO: ==12953== Releasing lock... [2025-01-24 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:34:06 [end_date_ymd] => 2025-01-24 04:34:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:34:06' and `end` < '2025-01-24 04: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-24 04:34:18] Production.INFO: count ==248 [2025-01-24 04:34:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:34:06 - End Time 2025-01-24 04:34:06 [2025-01-24 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317244', 'tblTempUsageDetail_20' ) start [2025-01-24 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317244', 'tblTempUsageDetail_20' ) end [2025-01-24 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317244', 'tblTempVendorCDR_20' ) start [2025-01-24 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317244', 'tblTempVendorCDR_20' ) end [2025-01-24 04:34:19] Production.INFO: ProcessCDR(1,14317244,1,1,2) [2025-01-24 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317244', 'tblTempUsageDetail_20' ) start [2025-01-24 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317244', 'tblTempUsageDetail_20' ) end [2025-01-24 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:34:22] Production.INFO: ==13050== Releasing lock... [2025-01-24 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:35:05 [end_date_ymd] => 2025-01-24 04:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:35:05' and `end` < '2025-01-24 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-24 04:35:18] Production.INFO: count ==248 [2025-01-24 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:35:05 - End Time 2025-01-24 04:35:05 [2025-01-24 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317249', 'tblTempUsageDetail_20' ) start [2025-01-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317249', 'tblTempUsageDetail_20' ) end [2025-01-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317249', 'tblTempVendorCDR_20' ) start [2025-01-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317249', 'tblTempVendorCDR_20' ) end [2025-01-24 04:35:18] Production.INFO: ProcessCDR(1,14317249,1,1,2) [2025-01-24 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317249', 'tblTempUsageDetail_20' ) start [2025-01-24 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317249', 'tblTempUsageDetail_20' ) end [2025-01-24 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:35:22] Production.INFO: ==13148== Releasing lock... [2025-01-24 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:36:06 [end_date_ymd] => 2025-01-24 04:36:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:36:06' and `end` < '2025-01-24 04: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-24 04:36:19] Production.INFO: count ==248 [2025-01-24 04:36:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:36:06 - End Time 2025-01-24 04:36:06 [2025-01-24 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317254', 'tblTempUsageDetail_20' ) start [2025-01-24 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317254', 'tblTempUsageDetail_20' ) end [2025-01-24 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317254', 'tblTempVendorCDR_20' ) start [2025-01-24 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317254', 'tblTempVendorCDR_20' ) end [2025-01-24 04:36:19] Production.INFO: ProcessCDR(1,14317254,1,1,2) [2025-01-24 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317254', 'tblTempUsageDetail_20' ) start [2025-01-24 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317254', 'tblTempUsageDetail_20' ) end [2025-01-24 04:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:36:23] Production.INFO: ==13246== Releasing lock... [2025-01-24 04:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:36:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:37:06 [end_date_ymd] => 2025-01-24 04:37:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:37:06' and `end` < '2025-01-24 04: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-24 04:37:18] Production.INFO: count ==248 [2025-01-24 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:37:06 - End Time 2025-01-24 04:37:06 [2025-01-24 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317259', 'tblTempUsageDetail_20' ) start [2025-01-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317259', 'tblTempUsageDetail_20' ) end [2025-01-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317259', 'tblTempVendorCDR_20' ) start [2025-01-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317259', 'tblTempVendorCDR_20' ) end [2025-01-24 04:37:18] Production.INFO: ProcessCDR(1,14317259,1,1,2) [2025-01-24 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317259', 'tblTempUsageDetail_20' ) start [2025-01-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317259', 'tblTempUsageDetail_20' ) end [2025-01-24 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:37:21] Production.INFO: ==13342== Releasing lock... [2025-01-24 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:38:06 [end_date_ymd] => 2025-01-24 04:38:06 [RateCDR] => 1 ) [2025-01-24 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:38:06' and `end` < '2025-01-24 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:38:18] Production.INFO: count ==248 [2025-01-24 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:38:06 - End Time 2025-01-24 04:38:06 [2025-01-24 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317264', 'tblTempUsageDetail_20' ) start [2025-01-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317264', 'tblTempUsageDetail_20' ) end [2025-01-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317264', 'tblTempVendorCDR_20' ) start [2025-01-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317264', 'tblTempVendorCDR_20' ) end [2025-01-24 04:38:18] Production.INFO: ProcessCDR(1,14317264,1,1,2) [2025-01-24 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317264', 'tblTempUsageDetail_20' ) start [2025-01-24 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317264', 'tblTempUsageDetail_20' ) end [2025-01-24 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:38:22] Production.INFO: ==13439== Releasing lock... [2025-01-24 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:39:06 [end_date_ymd] => 2025-01-24 04:39:06 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:39:06' and `end` < '2025-01-24 04: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-24 04:39:18] Production.INFO: count ==248 [2025-01-24 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:39:06 - End Time 2025-01-24 04:39:06 [2025-01-24 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317268', 'tblTempUsageDetail_20' ) start [2025-01-24 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317268', 'tblTempUsageDetail_20' ) end [2025-01-24 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317268', 'tblTempVendorCDR_20' ) start [2025-01-24 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317268', 'tblTempVendorCDR_20' ) end [2025-01-24 04:39:18] Production.INFO: ProcessCDR(1,14317268,1,1,2) [2025-01-24 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317268', 'tblTempUsageDetail_20' ) start [2025-01-24 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317268', 'tblTempUsageDetail_20' ) end [2025-01-24 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:39:22] Production.INFO: ==13533== Releasing lock... [2025-01-24 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:40:06 [end_date_ymd] => 2025-01-24 04:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 01:40:06' and `end` < '2025-01-24 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-24 04:40:18] Production.INFO: count ==236 [2025-01-24 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:40:06 - End Time 2025-01-24 04:40:06 [2025-01-24 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317275', 'tblTempUsageDetail_20' ) start [2025-01-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317275', 'tblTempUsageDetail_20' ) end [2025-01-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317275', 'tblTempVendorCDR_20' ) start [2025-01-24 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317275', 'tblTempVendorCDR_20' ) end [2025-01-24 04:40:18] Production.INFO: ProcessCDR(1,14317275,1,1,2) [2025-01-24 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317275', 'tblTempUsageDetail_20' ) start [2025-01-24 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317275', 'tblTempUsageDetail_20' ) end [2025-01-24 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:40:21] Production.INFO: ==13629== Releasing lock... [2025-01-24 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:41:05 [end_date_ymd] => 2025-01-24 04:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:41:05' and `end` < '2025-01-24 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-24 04:41:18] Production.INFO: count ==236 [2025-01-24 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:41:05 - End Time 2025-01-24 04:41:05 [2025-01-24 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317280', 'tblTempUsageDetail_20' ) start [2025-01-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317280', 'tblTempUsageDetail_20' ) end [2025-01-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317280', 'tblTempVendorCDR_20' ) start [2025-01-24 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317280', 'tblTempVendorCDR_20' ) end [2025-01-24 04:41:18] Production.INFO: ProcessCDR(1,14317280,1,1,2) [2025-01-24 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317280', 'tblTempUsageDetail_20' ) start [2025-01-24 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317280', 'tblTempUsageDetail_20' ) end [2025-01-24 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:41:21] Production.INFO: ==13728== Releasing lock... [2025-01-24 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:42:05 [end_date_ymd] => 2025-01-24 04:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:42:05' and `end` < '2025-01-24 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-24 04:42:18] Production.INFO: count ==236 [2025-01-24 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:42:05 - End Time 2025-01-24 04:42:05 [2025-01-24 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317285', 'tblTempUsageDetail_20' ) start [2025-01-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317285', 'tblTempUsageDetail_20' ) end [2025-01-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317285', 'tblTempVendorCDR_20' ) start [2025-01-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317285', 'tblTempVendorCDR_20' ) end [2025-01-24 04:42:18] Production.INFO: ProcessCDR(1,14317285,1,1,2) [2025-01-24 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317285', 'tblTempUsageDetail_20' ) start [2025-01-24 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317285', 'tblTempUsageDetail_20' ) end [2025-01-24 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:42:22] Production.INFO: ==13820== Releasing lock... [2025-01-24 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:43:05 [end_date_ymd] => 2025-01-24 04:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:43:05' and `end` < '2025-01-24 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-24 04:43:18] Production.INFO: count ==235 [2025-01-24 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:43:05 - End Time 2025-01-24 04:43:05 [2025-01-24 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317290', 'tblTempUsageDetail_20' ) start [2025-01-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317290', 'tblTempUsageDetail_20' ) end [2025-01-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317290', 'tblTempVendorCDR_20' ) start [2025-01-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317290', 'tblTempVendorCDR_20' ) end [2025-01-24 04:43:18] Production.INFO: ProcessCDR(1,14317290,1,1,2) [2025-01-24 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317290', 'tblTempUsageDetail_20' ) start [2025-01-24 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317290', 'tblTempUsageDetail_20' ) end [2025-01-24 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:43:21] Production.INFO: ==13917== Releasing lock... [2025-01-24 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:44:05 [end_date_ymd] => 2025-01-24 04:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:44:05' and `end` < '2025-01-24 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-24 04:44:18] Production.INFO: count ==235 [2025-01-24 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:44:05 - End Time 2025-01-24 04:44:05 [2025-01-24 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317295', 'tblTempUsageDetail_20' ) start [2025-01-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317295', 'tblTempUsageDetail_20' ) end [2025-01-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317295', 'tblTempVendorCDR_20' ) start [2025-01-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317295', 'tblTempVendorCDR_20' ) end [2025-01-24 04:44:18] Production.INFO: ProcessCDR(1,14317295,1,1,2) [2025-01-24 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317295', 'tblTempUsageDetail_20' ) start [2025-01-24 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317295', 'tblTempUsageDetail_20' ) end [2025-01-24 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:44:22] Production.INFO: ==14012== Releasing lock... [2025-01-24 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:45:05 [end_date_ymd] => 2025-01-24 04:45:05 [RateCDR] => 1 ) [2025-01-24 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:45:05' and `end` < '2025-01-24 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:45:18] Production.INFO: count ==231 [2025-01-24 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:45:05 - End Time 2025-01-24 04:45:05 [2025-01-24 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317300', 'tblTempUsageDetail_20' ) start [2025-01-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317300', 'tblTempUsageDetail_20' ) end [2025-01-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317300', 'tblTempVendorCDR_20' ) start [2025-01-24 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317300', 'tblTempVendorCDR_20' ) end [2025-01-24 04:45:18] Production.INFO: ProcessCDR(1,14317300,1,1,2) [2025-01-24 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317300', 'tblTempUsageDetail_20' ) start [2025-01-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317300', 'tblTempUsageDetail_20' ) end [2025-01-24 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:45:21] Production.INFO: ==14112== Releasing lock... [2025-01-24 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:46:06 [end_date_ymd] => 2025-01-24 04:46:06 [RateCDR] => 1 ) [2025-01-24 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:46:06' and `end` < '2025-01-24 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:47:18] Production.INFO: count ==231 [2025-01-24 04:47:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:46:06 - End Time 2025-01-24 04:46:06 [2025-01-24 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317305', 'tblTempUsageDetail_20' ) start [2025-01-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317305', 'tblTempUsageDetail_20' ) end [2025-01-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317305', 'tblTempVendorCDR_20' ) start [2025-01-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317305', 'tblTempVendorCDR_20' ) end [2025-01-24 04:47:18] Production.INFO: ProcessCDR(1,14317305,1,1,2) [2025-01-24 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317305', 'tblTempUsageDetail_20' ) start [2025-01-24 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317305', 'tblTempUsageDetail_20' ) end [2025-01-24 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:47:21] Production.INFO: ==14206== Releasing lock... [2025-01-24 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:48:06 [end_date_ymd] => 2025-01-24 04:48:06 [RateCDR] => 1 ) [2025-01-24 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:48:06' and `end` < '2025-01-24 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:48:22] Production.INFO: count ==231 [2025-01-24 04:48:22] Production.ERROR: pbx CDR StartTime 2025-01-24 01:48:06 - End Time 2025-01-24 04:48:06 [2025-01-24 04:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317314', 'tblTempUsageDetail_20' ) start [2025-01-24 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317314', 'tblTempUsageDetail_20' ) end [2025-01-24 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317314', 'tblTempVendorCDR_20' ) start [2025-01-24 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317314', 'tblTempVendorCDR_20' ) end [2025-01-24 04:48:22] Production.INFO: ProcessCDR(1,14317314,1,1,2) [2025-01-24 04:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317314', 'tblTempUsageDetail_20' ) start [2025-01-24 04:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317314', 'tblTempUsageDetail_20' ) end [2025-01-24 04:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:48:26] Production.INFO: ==14430== Releasing lock... [2025-01-24 04:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:48:26] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:49:05 [end_date_ymd] => 2025-01-24 04:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:49:05' and `end` < '2025-01-24 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-24 04:49:19] Production.INFO: count ==231 [2025-01-24 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:49:05 - End Time 2025-01-24 04:49:05 [2025-01-24 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317319', 'tblTempUsageDetail_20' ) start [2025-01-24 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317319', 'tblTempUsageDetail_20' ) end [2025-01-24 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317319', 'tblTempVendorCDR_20' ) start [2025-01-24 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317319', 'tblTempVendorCDR_20' ) end [2025-01-24 04:49:19] Production.INFO: ProcessCDR(1,14317319,1,1,2) [2025-01-24 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317319', 'tblTempUsageDetail_20' ) start [2025-01-24 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317319', 'tblTempUsageDetail_20' ) end [2025-01-24 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:49:23] Production.INFO: ==14525== Releasing lock... [2025-01-24 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:49:23] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:50:06 [end_date_ymd] => 2025-01-24 04:50:06 [RateCDR] => 1 ) [2025-01-24 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:50:06' and `end` < '2025-01-24 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:50:22] Production.INFO: count ==225 [2025-01-24 04:50:22] Production.ERROR: pbx CDR StartTime 2025-01-24 01:50:06 - End Time 2025-01-24 04:50:06 [2025-01-24 04:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317325', 'tblTempUsageDetail_20' ) start [2025-01-24 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317325', 'tblTempUsageDetail_20' ) end [2025-01-24 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317325', 'tblTempVendorCDR_20' ) start [2025-01-24 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317325', 'tblTempVendorCDR_20' ) end [2025-01-24 04:50:22] Production.INFO: ProcessCDR(1,14317325,1,1,2) [2025-01-24 04:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317325', 'tblTempUsageDetail_20' ) start [2025-01-24 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317325', 'tblTempUsageDetail_20' ) end [2025-01-24 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:50:25] Production.INFO: ==14622== Releasing lock... [2025-01-24 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:50:25] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:51:05 [end_date_ymd] => 2025-01-24 04:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:51:05' and `end` < '2025-01-24 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-24 04:51:20] Production.INFO: count ==225 [2025-01-24 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:51:05 - End Time 2025-01-24 04:51:05 [2025-01-24 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317330', 'tblTempUsageDetail_20' ) start [2025-01-24 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317330', 'tblTempUsageDetail_20' ) end [2025-01-24 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317330', 'tblTempVendorCDR_20' ) start [2025-01-24 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317330', 'tblTempVendorCDR_20' ) end [2025-01-24 04:51:20] Production.INFO: ProcessCDR(1,14317330,1,1,2) [2025-01-24 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317330', 'tblTempUsageDetail_20' ) start [2025-01-24 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317330', 'tblTempUsageDetail_20' ) end [2025-01-24 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:51:23] Production.INFO: ==14721== Releasing lock... [2025-01-24 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:51:23] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:52:05 [end_date_ymd] => 2025-01-24 04:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:52:05' and `end` < '2025-01-24 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-24 04:52:20] Production.INFO: count ==225 [2025-01-24 04:52:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:52:05 - End Time 2025-01-24 04:52:05 [2025-01-24 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317335', 'tblTempUsageDetail_20' ) start [2025-01-24 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317335', 'tblTempUsageDetail_20' ) end [2025-01-24 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317335', 'tblTempVendorCDR_20' ) start [2025-01-24 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317335', 'tblTempVendorCDR_20' ) end [2025-01-24 04:52:20] Production.INFO: ProcessCDR(1,14317335,1,1,2) [2025-01-24 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317335', 'tblTempUsageDetail_20' ) start [2025-01-24 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317335', 'tblTempUsageDetail_20' ) end [2025-01-24 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:52:23] Production.INFO: ==14817== Releasing lock... [2025-01-24 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:52:23] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:53:05 [end_date_ymd] => 2025-01-24 04:53:05 [RateCDR] => 1 ) [2025-01-24 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:53:05' and `end` < '2025-01-24 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:53:18] Production.INFO: count ==222 [2025-01-24 04:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 01:53:05 - End Time 2025-01-24 04:53:05 [2025-01-24 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317340', 'tblTempUsageDetail_20' ) start [2025-01-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317340', 'tblTempUsageDetail_20' ) end [2025-01-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317340', 'tblTempVendorCDR_20' ) start [2025-01-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317340', 'tblTempVendorCDR_20' ) end [2025-01-24 04:53:18] Production.INFO: ProcessCDR(1,14317340,1,1,2) [2025-01-24 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317340', 'tblTempUsageDetail_20' ) start [2025-01-24 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317340', 'tblTempUsageDetail_20' ) end [2025-01-24 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:53:21] Production.INFO: ==14915== Releasing lock... [2025-01-24 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:53:21] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:54:05 [end_date_ymd] => 2025-01-24 04:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:54:05' and `end` < '2025-01-24 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-24 04:54:19] Production.INFO: count ==222 [2025-01-24 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:54:05 - End Time 2025-01-24 04:54:05 [2025-01-24 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317345', 'tblTempUsageDetail_20' ) start [2025-01-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317345', 'tblTempUsageDetail_20' ) end [2025-01-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317345', 'tblTempVendorCDR_20' ) start [2025-01-24 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317345', 'tblTempVendorCDR_20' ) end [2025-01-24 04:54:19] Production.INFO: ProcessCDR(1,14317345,1,1,2) [2025-01-24 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317345', 'tblTempUsageDetail_20' ) start [2025-01-24 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317345', 'tblTempUsageDetail_20' ) end [2025-01-24 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:54:22] Production.INFO: ==15009== Releasing lock... [2025-01-24 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:55:05 [end_date_ymd] => 2025-01-24 04:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:55:05' and `end` < '2025-01-24 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-24 04:55:19] Production.INFO: count ==221 [2025-01-24 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:55:05 - End Time 2025-01-24 04:55:05 [2025-01-24 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317350', 'tblTempUsageDetail_20' ) start [2025-01-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317350', 'tblTempUsageDetail_20' ) end [2025-01-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317350', 'tblTempVendorCDR_20' ) start [2025-01-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317350', 'tblTempVendorCDR_20' ) end [2025-01-24 04:55:19] Production.INFO: ProcessCDR(1,14317350,1,1,2) [2025-01-24 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317350', 'tblTempUsageDetail_20' ) start [2025-01-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317350', 'tblTempUsageDetail_20' ) end [2025-01-24 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:55:22] Production.INFO: ==15107== Releasing lock... [2025-01-24 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:55:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:56:05 [end_date_ymd] => 2025-01-24 04:56:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:56:05' and `end` < '2025-01-24 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-24 04:56:20] Production.INFO: count ==218 [2025-01-24 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:56:05 - End Time 2025-01-24 04:56:05 [2025-01-24 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317355', 'tblTempUsageDetail_20' ) start [2025-01-24 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317355', 'tblTempUsageDetail_20' ) end [2025-01-24 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317355', 'tblTempVendorCDR_20' ) start [2025-01-24 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317355', 'tblTempVendorCDR_20' ) end [2025-01-24 04:56:20] Production.INFO: ProcessCDR(1,14317355,1,1,2) [2025-01-24 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317355', 'tblTempUsageDetail_20' ) start [2025-01-24 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317355', 'tblTempUsageDetail_20' ) end [2025-01-24 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:56:23] Production.INFO: ==15204== Releasing lock... [2025-01-24 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:56:23] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:57:04 [end_date_ymd] => 2025-01-24 04:57:04 [RateCDR] => 1 ) [2025-01-24 04: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-24 01:57:04' and `end` < '2025-01-24 04: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-24 04:57:20] Production.INFO: count ==218 [2025-01-24 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-24 01:57:04 - End Time 2025-01-24 04:57:04 [2025-01-24 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317360', 'tblTempUsageDetail_20' ) start [2025-01-24 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317360', 'tblTempUsageDetail_20' ) end [2025-01-24 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317360', 'tblTempVendorCDR_20' ) start [2025-01-24 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317360', 'tblTempVendorCDR_20' ) end [2025-01-24 04:57:20] Production.INFO: ProcessCDR(1,14317360,1,1,2) [2025-01-24 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317360', 'tblTempUsageDetail_20' ) start [2025-01-24 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317360', 'tblTempUsageDetail_20' ) end [2025-01-24 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:57:23] Production.INFO: ==15301== Releasing lock... [2025-01-24 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:57:23] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:58:05 [end_date_ymd] => 2025-01-24 04:58:05 [RateCDR] => 1 ) [2025-01-24 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 01:58:05' and `end` < '2025-01-24 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 04:58:19] Production.INFO: count ==218 [2025-01-24 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:58:05 - End Time 2025-01-24 04:58:05 [2025-01-24 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317365', 'tblTempUsageDetail_20' ) start [2025-01-24 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317365', 'tblTempUsageDetail_20' ) end [2025-01-24 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317365', 'tblTempVendorCDR_20' ) start [2025-01-24 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317365', 'tblTempVendorCDR_20' ) end [2025-01-24 04:58:19] Production.INFO: ProcessCDR(1,14317365,1,1,2) [2025-01-24 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317365', 'tblTempUsageDetail_20' ) start [2025-01-24 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317365', 'tblTempUsageDetail_20' ) end [2025-01-24 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:58:22] Production.INFO: ==15396== Releasing lock... [2025-01-24 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:58:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 01:59:05 [end_date_ymd] => 2025-01-24 04:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 01:59:05' and `end` < '2025-01-24 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-24 04:59:19] Production.INFO: count ==218 [2025-01-24 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-24 01:59:05 - End Time 2025-01-24 04:59:05 [2025-01-24 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317370', 'tblTempUsageDetail_20' ) start [2025-01-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317370', 'tblTempUsageDetail_20' ) end [2025-01-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317370', 'tblTempVendorCDR_20' ) start [2025-01-24 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317370', 'tblTempVendorCDR_20' ) end [2025-01-24 04:59:19] Production.INFO: ProcessCDR(1,14317370,1,1,2) [2025-01-24 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317370', 'tblTempUsageDetail_20' ) start [2025-01-24 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317370', 'tblTempUsageDetail_20' ) end [2025-01-24 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 04:59:22] Production.INFO: ==15495== Releasing lock... [2025-01-24 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 04:59:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:00:06 [end_date_ymd] => 2025-01-24 05:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 02:00:06' and `end` < '2025-01-24 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-24 05:00:21] Production.INFO: count ==213 [2025-01-24 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-24 02:00:06 - End Time 2025-01-24 05:00:06 [2025-01-24 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317376', 'tblTempUsageDetail_20' ) start [2025-01-24 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317376', 'tblTempUsageDetail_20' ) end [2025-01-24 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317376', 'tblTempVendorCDR_20' ) start [2025-01-24 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317376', 'tblTempVendorCDR_20' ) end [2025-01-24 05:00:21] Production.INFO: ProcessCDR(1,14317376,1,1,2) [2025-01-24 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317376', 'tblTempUsageDetail_20' ) start [2025-01-24 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317376', 'tblTempUsageDetail_20' ) end [2025-01-24 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:00:24] Production.INFO: ==15595== Releasing lock... [2025-01-24 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:00:24] Production.INFO: 29 MB #Memory Used# [2025-01-24 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:01:05 [end_date_ymd] => 2025-01-24 05:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:01:05' and `end` < '2025-01-24 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-24 05:01:19] Production.INFO: count ==207 [2025-01-24 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:01:05 - End Time 2025-01-24 05:01:05 [2025-01-24 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317381', 'tblTempUsageDetail_20' ) start [2025-01-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317381', 'tblTempUsageDetail_20' ) end [2025-01-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317381', 'tblTempVendorCDR_20' ) start [2025-01-24 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317381', 'tblTempVendorCDR_20' ) end [2025-01-24 05:01:19] Production.INFO: ProcessCDR(1,14317381,1,1,2) [2025-01-24 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317381', 'tblTempUsageDetail_20' ) start [2025-01-24 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317381', 'tblTempUsageDetail_20' ) end [2025-01-24 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:01:22] Production.INFO: ==15709== Releasing lock... [2025-01-24 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:01:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:02:06 [end_date_ymd] => 2025-01-24 05:02:06 [RateCDR] => 1 ) [2025-01-24 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-24 02:02:06' and `end` < '2025-01-24 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-24 05:02:21] Production.INFO: count ==205 [2025-01-24 05:02:21] Production.ERROR: pbx CDR StartTime 2025-01-24 02:02:06 - End Time 2025-01-24 05:02:06 [2025-01-24 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317386', 'tblTempUsageDetail_20' ) start [2025-01-24 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317386', 'tblTempUsageDetail_20' ) end [2025-01-24 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317386', 'tblTempVendorCDR_20' ) start [2025-01-24 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317386', 'tblTempVendorCDR_20' ) end [2025-01-24 05:02:21] Production.INFO: ProcessCDR(1,14317386,1,1,2) [2025-01-24 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317386', 'tblTempUsageDetail_20' ) start [2025-01-24 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317386', 'tblTempUsageDetail_20' ) end [2025-01-24 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:02:24] Production.INFO: ==15844== Releasing lock... [2025-01-24 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:02:24] Production.INFO: 29 MB #Memory Used# [2025-01-24 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:03:04 [end_date_ymd] => 2025-01-24 05:03:04 [RateCDR] => 1 ) [2025-01-24 05:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:03:04' and `end` < '2025-01-24 05:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:03:20] Production.INFO: count ==203 [2025-01-24 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-24 02:03:04 - End Time 2025-01-24 05:03:04 [2025-01-24 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317391', 'tblTempUsageDetail_20' ) start [2025-01-24 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317391', 'tblTempUsageDetail_20' ) end [2025-01-24 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317391', 'tblTempVendorCDR_20' ) start [2025-01-24 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317391', 'tblTempVendorCDR_20' ) end [2025-01-24 05:03:20] Production.INFO: ProcessCDR(1,14317391,1,1,2) [2025-01-24 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317391', 'tblTempUsageDetail_20' ) start [2025-01-24 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317391', 'tblTempUsageDetail_20' ) end [2025-01-24 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:03:23] Production.INFO: ==15942== Releasing lock... [2025-01-24 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:04:06 [end_date_ymd] => 2025-01-24 05:04:06 [RateCDR] => 1 ) [2025-01-24 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:04:06' and `end` < '2025-01-24 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:04:19] Production.INFO: count ==201 [2025-01-24 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:04:06 - End Time 2025-01-24 05:04:06 [2025-01-24 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317396', 'tblTempUsageDetail_20' ) start [2025-01-24 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317396', 'tblTempUsageDetail_20' ) end [2025-01-24 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317396', 'tblTempVendorCDR_20' ) start [2025-01-24 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317396', 'tblTempVendorCDR_20' ) end [2025-01-24 05:04:19] Production.INFO: ProcessCDR(1,14317396,1,1,2) [2025-01-24 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317396', 'tblTempUsageDetail_20' ) start [2025-01-24 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317396', 'tblTempUsageDetail_20' ) end [2025-01-24 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:04:22] Production.INFO: ==16046== Releasing lock... [2025-01-24 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:05:06 [end_date_ymd] => 2025-01-24 05:05:06 [RateCDR] => 1 ) [2025-01-24 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:05:06' and `end` < '2025-01-24 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:05:18] Production.INFO: count ==201 [2025-01-24 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:05:06 - End Time 2025-01-24 05:05:06 [2025-01-24 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317401', 'tblTempUsageDetail_20' ) start [2025-01-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317401', 'tblTempUsageDetail_20' ) end [2025-01-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317401', 'tblTempVendorCDR_20' ) start [2025-01-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317401', 'tblTempVendorCDR_20' ) end [2025-01-24 05:05:18] Production.INFO: ProcessCDR(1,14317401,1,1,2) [2025-01-24 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317401', 'tblTempUsageDetail_20' ) start [2025-01-24 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317401', 'tblTempUsageDetail_20' ) end [2025-01-24 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:05:21] Production.INFO: ==16146== Releasing lock... [2025-01-24 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:06:05 [end_date_ymd] => 2025-01-24 05:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:06:05' and `end` < '2025-01-24 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-24 05:06:19] Production.INFO: count ==200 [2025-01-24 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:06:05 - End Time 2025-01-24 05:06:05 [2025-01-24 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317406', 'tblTempUsageDetail_20' ) start [2025-01-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317406', 'tblTempUsageDetail_20' ) end [2025-01-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317406', 'tblTempVendorCDR_20' ) start [2025-01-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317406', 'tblTempVendorCDR_20' ) end [2025-01-24 05:06:19] Production.INFO: ProcessCDR(1,14317406,1,1,2) [2025-01-24 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317406', 'tblTempUsageDetail_20' ) start [2025-01-24 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317406', 'tblTempUsageDetail_20' ) end [2025-01-24 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:06:22] Production.INFO: ==16247== Releasing lock... [2025-01-24 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:07:05 [end_date_ymd] => 2025-01-24 05:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:07:05' and `end` < '2025-01-24 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-24 05:07:18] Production.INFO: count ==196 [2025-01-24 05:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:07:05 - End Time 2025-01-24 05:07:05 [2025-01-24 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317411', 'tblTempUsageDetail_20' ) start [2025-01-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317411', 'tblTempUsageDetail_20' ) end [2025-01-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317411', 'tblTempVendorCDR_20' ) start [2025-01-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317411', 'tblTempVendorCDR_20' ) end [2025-01-24 05:07:18] Production.INFO: ProcessCDR(1,14317411,1,1,2) [2025-01-24 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317411', 'tblTempUsageDetail_20' ) start [2025-01-24 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317411', 'tblTempUsageDetail_20' ) end [2025-01-24 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:07:21] Production.INFO: ==16345== Releasing lock... [2025-01-24 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:08:06 [end_date_ymd] => 2025-01-24 05:08:06 [RateCDR] => 1 ) [2025-01-24 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:08:06' and `end` < '2025-01-24 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:08:18] Production.INFO: count ==196 [2025-01-24 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:08:06 - End Time 2025-01-24 05:08:06 [2025-01-24 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317416', 'tblTempUsageDetail_20' ) start [2025-01-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317416', 'tblTempUsageDetail_20' ) end [2025-01-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317416', 'tblTempVendorCDR_20' ) start [2025-01-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317416', 'tblTempVendorCDR_20' ) end [2025-01-24 05:08:18] Production.INFO: ProcessCDR(1,14317416,1,1,2) [2025-01-24 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317416', 'tblTempUsageDetail_20' ) start [2025-01-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317416', 'tblTempUsageDetail_20' ) end [2025-01-24 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:08:21] Production.INFO: ==16444== Releasing lock... [2025-01-24 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:09:05 [end_date_ymd] => 2025-01-24 05:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:09:05' and `end` < '2025-01-24 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-24 05:09:18] Production.INFO: count ==196 [2025-01-24 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:09:05 - End Time 2025-01-24 05:09:05 [2025-01-24 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317421', 'tblTempUsageDetail_20' ) start [2025-01-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317421', 'tblTempUsageDetail_20' ) end [2025-01-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317421', 'tblTempVendorCDR_20' ) start [2025-01-24 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317421', 'tblTempVendorCDR_20' ) end [2025-01-24 05:09:18] Production.INFO: ProcessCDR(1,14317421,1,1,2) [2025-01-24 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317421', 'tblTempUsageDetail_20' ) start [2025-01-24 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317421', 'tblTempUsageDetail_20' ) end [2025-01-24 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:09:21] Production.INFO: ==16543== Releasing lock... [2025-01-24 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:10:06 [end_date_ymd] => 2025-01-24 05:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 02:10:06' and `end` < '2025-01-24 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-24 05:10:19] Production.INFO: count ==183 [2025-01-24 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:10:06 - End Time 2025-01-24 05:10:06 [2025-01-24 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317426', 'tblTempUsageDetail_20' ) start [2025-01-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317426', 'tblTempUsageDetail_20' ) end [2025-01-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317426', 'tblTempVendorCDR_20' ) start [2025-01-24 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317426', 'tblTempVendorCDR_20' ) end [2025-01-24 05:10:19] Production.INFO: ProcessCDR(1,14317426,1,1,2) [2025-01-24 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317426', 'tblTempUsageDetail_20' ) start [2025-01-24 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317426', 'tblTempUsageDetail_20' ) end [2025-01-24 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:10:22] Production.INFO: ==16642== Releasing lock... [2025-01-24 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:11:05 [end_date_ymd] => 2025-01-24 05:11:05 [RateCDR] => 1 ) [2025-01-24 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:11:05' and `end` < '2025-01-24 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:11:18] Production.INFO: count ==176 [2025-01-24 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:11:05 - End Time 2025-01-24 05:11:05 [2025-01-24 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317432', 'tblTempUsageDetail_20' ) start [2025-01-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317432', 'tblTempUsageDetail_20' ) end [2025-01-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317432', 'tblTempVendorCDR_20' ) start [2025-01-24 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317432', 'tblTempVendorCDR_20' ) end [2025-01-24 05:11:18] Production.INFO: ProcessCDR(1,14317432,1,1,2) [2025-01-24 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317432', 'tblTempUsageDetail_20' ) start [2025-01-24 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317432', 'tblTempUsageDetail_20' ) end [2025-01-24 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:11:21] Production.INFO: ==16740== Releasing lock... [2025-01-24 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:12:06 [end_date_ymd] => 2025-01-24 05:12:06 [RateCDR] => 1 ) [2025-01-24 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:12:06' and `end` < '2025-01-24 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:12:18] Production.INFO: count ==175 [2025-01-24 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:12:06 - End Time 2025-01-24 05:12:06 [2025-01-24 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317437', 'tblTempUsageDetail_20' ) start [2025-01-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317437', 'tblTempUsageDetail_20' ) end [2025-01-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317437', 'tblTempVendorCDR_20' ) start [2025-01-24 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317437', 'tblTempVendorCDR_20' ) end [2025-01-24 05:12:18] Production.INFO: ProcessCDR(1,14317437,1,1,2) [2025-01-24 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317437', 'tblTempUsageDetail_20' ) start [2025-01-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317437', 'tblTempUsageDetail_20' ) end [2025-01-24 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:12:21] Production.INFO: ==16842== Releasing lock... [2025-01-24 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:13:05 [end_date_ymd] => 2025-01-24 05:13:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:13:05' and `end` < '2025-01-24 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-24 05:13:18] Production.INFO: count ==175 [2025-01-24 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:13:05 - End Time 2025-01-24 05:13:05 [2025-01-24 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317442', 'tblTempUsageDetail_20' ) start [2025-01-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317442', 'tblTempUsageDetail_20' ) end [2025-01-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317442', 'tblTempVendorCDR_20' ) start [2025-01-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317442', 'tblTempVendorCDR_20' ) end [2025-01-24 05:13:18] Production.INFO: ProcessCDR(1,14317442,1,1,2) [2025-01-24 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317442', 'tblTempUsageDetail_20' ) start [2025-01-24 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317442', 'tblTempUsageDetail_20' ) end [2025-01-24 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:13:21] Production.INFO: ==16936== Releasing lock... [2025-01-24 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:14:05 [end_date_ymd] => 2025-01-24 05:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:14:05' and `end` < '2025-01-24 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-24 05:14:18] Production.INFO: count ==172 [2025-01-24 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:14:05 - End Time 2025-01-24 05:14:05 [2025-01-24 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317447', 'tblTempUsageDetail_20' ) start [2025-01-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317447', 'tblTempUsageDetail_20' ) end [2025-01-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317447', 'tblTempVendorCDR_20' ) start [2025-01-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317447', 'tblTempVendorCDR_20' ) end [2025-01-24 05:14:18] Production.INFO: ProcessCDR(1,14317447,1,1,2) [2025-01-24 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317447', 'tblTempUsageDetail_20' ) start [2025-01-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317447', 'tblTempUsageDetail_20' ) end [2025-01-24 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:14:21] Production.INFO: ==17037== Releasing lock... [2025-01-24 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:15:05 [end_date_ymd] => 2025-01-24 05:15:05 [RateCDR] => 1 ) [2025-01-24 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:15:05' and `end` < '2025-01-24 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:15:18] Production.INFO: count ==171 [2025-01-24 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:15:05 - End Time 2025-01-24 05:15:05 [2025-01-24 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317452', 'tblTempUsageDetail_20' ) start [2025-01-24 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317452', 'tblTempUsageDetail_20' ) end [2025-01-24 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317452', 'tblTempVendorCDR_20' ) start [2025-01-24 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317452', 'tblTempVendorCDR_20' ) end [2025-01-24 05:15:18] Production.INFO: ProcessCDR(1,14317452,1,1,2) [2025-01-24 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317452', 'tblTempUsageDetail_20' ) start [2025-01-24 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317452', 'tblTempUsageDetail_20' ) end [2025-01-24 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:15:21] Production.INFO: ==17133== Releasing lock... [2025-01-24 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:16:06 [end_date_ymd] => 2025-01-24 05:16:06 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:16:06' and `end` < '2025-01-24 05: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-24 05:16:19] Production.INFO: count ==170 [2025-01-24 05:16:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:16:06 - End Time 2025-01-24 05:16:06 [2025-01-24 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317457', 'tblTempUsageDetail_20' ) start [2025-01-24 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317457', 'tblTempUsageDetail_20' ) end [2025-01-24 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317457', 'tblTempVendorCDR_20' ) start [2025-01-24 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317457', 'tblTempVendorCDR_20' ) end [2025-01-24 05:16:19] Production.INFO: ProcessCDR(1,14317457,1,1,2) [2025-01-24 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317457', 'tblTempUsageDetail_20' ) start [2025-01-24 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317457', 'tblTempUsageDetail_20' ) end [2025-01-24 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:16:22] Production.INFO: ==17233== Releasing lock... [2025-01-24 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:17:05 [end_date_ymd] => 2025-01-24 05:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:17:05' and `end` < '2025-01-24 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-24 05:17:18] Production.INFO: count ==170 [2025-01-24 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:17:05 - End Time 2025-01-24 05:17:05 [2025-01-24 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317462', 'tblTempUsageDetail_20' ) start [2025-01-24 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317462', 'tblTempUsageDetail_20' ) end [2025-01-24 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317462', 'tblTempVendorCDR_20' ) start [2025-01-24 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317462', 'tblTempVendorCDR_20' ) end [2025-01-24 05:17:18] Production.INFO: ProcessCDR(1,14317462,1,1,2) [2025-01-24 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317462', 'tblTempUsageDetail_20' ) start [2025-01-24 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317462', 'tblTempUsageDetail_20' ) end [2025-01-24 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:17:21] Production.INFO: ==17325== Releasing lock... [2025-01-24 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:18:06 [end_date_ymd] => 2025-01-24 05:18:06 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:18:06' and `end` < '2025-01-24 05: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-24 05:18:19] Production.INFO: count ==168 [2025-01-24 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:18:06 - End Time 2025-01-24 05:18:06 [2025-01-24 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317467', 'tblTempUsageDetail_20' ) start [2025-01-24 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317467', 'tblTempUsageDetail_20' ) end [2025-01-24 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317467', 'tblTempVendorCDR_20' ) start [2025-01-24 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317467', 'tblTempVendorCDR_20' ) end [2025-01-24 05:18:19] Production.INFO: ProcessCDR(1,14317467,1,1,2) [2025-01-24 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317467', 'tblTempUsageDetail_20' ) start [2025-01-24 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317467', 'tblTempUsageDetail_20' ) end [2025-01-24 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:18:22] Production.INFO: ==17465== Releasing lock... [2025-01-24 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:19:05 [end_date_ymd] => 2025-01-24 05:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:19:05' and `end` < '2025-01-24 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-24 05:19:18] Production.INFO: count ==168 [2025-01-24 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:19:05 - End Time 2025-01-24 05:19:05 [2025-01-24 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317472', 'tblTempUsageDetail_20' ) start [2025-01-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317472', 'tblTempUsageDetail_20' ) end [2025-01-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317472', 'tblTempVendorCDR_20' ) start [2025-01-24 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317472', 'tblTempVendorCDR_20' ) end [2025-01-24 05:19:18] Production.INFO: ProcessCDR(1,14317472,1,1,2) [2025-01-24 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317472', 'tblTempUsageDetail_20' ) start [2025-01-24 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317472', 'tblTempUsageDetail_20' ) end [2025-01-24 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:19:21] Production.INFO: ==17563== Releasing lock... [2025-01-24 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:20:07 [end_date_ymd] => 2025-01-24 05:20:07 [RateCDR] => 1 ) [2025-01-24 05:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:20:07' and `end` < '2025-01-24 05:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:20:19] Production.INFO: count ==154 [2025-01-24 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:20:07 - End Time 2025-01-24 05:20:07 [2025-01-24 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317478', 'tblTempUsageDetail_20' ) start [2025-01-24 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317478', 'tblTempUsageDetail_20' ) end [2025-01-24 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317478', 'tblTempVendorCDR_20' ) start [2025-01-24 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317478', 'tblTempVendorCDR_20' ) end [2025-01-24 05:20:19] Production.INFO: ProcessCDR(1,14317478,1,1,2) [2025-01-24 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317478', 'tblTempUsageDetail_20' ) start [2025-01-24 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317478', 'tblTempUsageDetail_20' ) end [2025-01-24 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:20:22] Production.INFO: ==17665== Releasing lock... [2025-01-24 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:21:05 [end_date_ymd] => 2025-01-24 05:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:21:05' and `end` < '2025-01-24 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-24 05:21:17] Production.INFO: count ==152 [2025-01-24 05:21:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:21:05 - End Time 2025-01-24 05:21:05 [2025-01-24 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317483', 'tblTempUsageDetail_20' ) start [2025-01-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317483', 'tblTempUsageDetail_20' ) end [2025-01-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317483', 'tblTempVendorCDR_20' ) start [2025-01-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317483', 'tblTempVendorCDR_20' ) end [2025-01-24 05:21:18] Production.INFO: ProcessCDR(1,14317483,1,1,2) [2025-01-24 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317483', 'tblTempUsageDetail_20' ) start [2025-01-24 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317483', 'tblTempUsageDetail_20' ) end [2025-01-24 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:21:21] Production.INFO: ==17764== Releasing lock... [2025-01-24 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:22:05 [end_date_ymd] => 2025-01-24 05:22:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:22:05' and `end` < '2025-01-24 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-24 05:22:18] Production.INFO: count ==152 [2025-01-24 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:22:05 - End Time 2025-01-24 05:22:05 [2025-01-24 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317488', 'tblTempUsageDetail_20' ) start [2025-01-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317488', 'tblTempUsageDetail_20' ) end [2025-01-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317488', 'tblTempVendorCDR_20' ) start [2025-01-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317488', 'tblTempVendorCDR_20' ) end [2025-01-24 05:22:18] Production.INFO: ProcessCDR(1,14317488,1,1,2) [2025-01-24 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317488', 'tblTempUsageDetail_20' ) start [2025-01-24 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317488', 'tblTempUsageDetail_20' ) end [2025-01-24 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:22:21] Production.INFO: ==17860== Releasing lock... [2025-01-24 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:23:06 [end_date_ymd] => 2025-01-24 05:23:06 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:23:06' and `end` < '2025-01-24 05: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-24 05:23:18] Production.INFO: count ==152 [2025-01-24 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:23:06 - End Time 2025-01-24 05:23:06 [2025-01-24 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317493', 'tblTempUsageDetail_20' ) start [2025-01-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317493', 'tblTempUsageDetail_20' ) end [2025-01-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317493', 'tblTempVendorCDR_20' ) start [2025-01-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317493', 'tblTempVendorCDR_20' ) end [2025-01-24 05:23:18] Production.INFO: ProcessCDR(1,14317493,1,1,2) [2025-01-24 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317493', 'tblTempUsageDetail_20' ) start [2025-01-24 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317493', 'tblTempUsageDetail_20' ) end [2025-01-24 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:23:21] Production.INFO: ==17958== Releasing lock... [2025-01-24 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:24:06 [end_date_ymd] => 2025-01-24 05:24:06 [RateCDR] => 1 ) [2025-01-24 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-24 02:24:06' and `end` < '2025-01-24 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-24 05:24:18] Production.INFO: count ==151 [2025-01-24 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:24:06 - End Time 2025-01-24 05:24:06 [2025-01-24 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317498', 'tblTempUsageDetail_20' ) start [2025-01-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317498', 'tblTempUsageDetail_20' ) end [2025-01-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317498', 'tblTempVendorCDR_20' ) start [2025-01-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317498', 'tblTempVendorCDR_20' ) end [2025-01-24 05:24:18] Production.INFO: ProcessCDR(1,14317498,1,1,2) [2025-01-24 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317498', 'tblTempUsageDetail_20' ) start [2025-01-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317498', 'tblTempUsageDetail_20' ) end [2025-01-24 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:24:22] Production.INFO: ==18064== Releasing lock... [2025-01-24 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:25:05 [end_date_ymd] => 2025-01-24 05:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:25:05' and `end` < '2025-01-24 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-24 05:25:18] Production.INFO: count ==151 [2025-01-24 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:25:05 - End Time 2025-01-24 05:25:05 [2025-01-24 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317503', 'tblTempUsageDetail_20' ) start [2025-01-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317503', 'tblTempUsageDetail_20' ) end [2025-01-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317503', 'tblTempVendorCDR_20' ) start [2025-01-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317503', 'tblTempVendorCDR_20' ) end [2025-01-24 05:25:18] Production.INFO: ProcessCDR(1,14317503,1,1,2) [2025-01-24 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317503', 'tblTempUsageDetail_20' ) start [2025-01-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317503', 'tblTempUsageDetail_20' ) end [2025-01-24 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:25:21] Production.INFO: ==18159== Releasing lock... [2025-01-24 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:26:05 [end_date_ymd] => 2025-01-24 05:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:26:05' and `end` < '2025-01-24 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-24 05:26:17] Production.INFO: count ==150 [2025-01-24 05:26:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:26:05 - End Time 2025-01-24 05:26:05 [2025-01-24 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317508', 'tblTempUsageDetail_20' ) start [2025-01-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317508', 'tblTempUsageDetail_20' ) end [2025-01-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317508', 'tblTempVendorCDR_20' ) start [2025-01-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317508', 'tblTempVendorCDR_20' ) end [2025-01-24 05:26:17] Production.INFO: ProcessCDR(1,14317508,1,1,2) [2025-01-24 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317508', 'tblTempUsageDetail_20' ) start [2025-01-24 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317508', 'tblTempUsageDetail_20' ) end [2025-01-24 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:26:20] Production.INFO: ==18259== Releasing lock... [2025-01-24 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:27:05 [end_date_ymd] => 2025-01-24 05:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:27:05' and `end` < '2025-01-24 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-24 05:27:19] Production.INFO: count ==150 [2025-01-24 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:27:05 - End Time 2025-01-24 05:27:05 [2025-01-24 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317513', 'tblTempUsageDetail_20' ) start [2025-01-24 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317513', 'tblTempUsageDetail_20' ) end [2025-01-24 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317513', 'tblTempVendorCDR_20' ) start [2025-01-24 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317513', 'tblTempVendorCDR_20' ) end [2025-01-24 05:27:19] Production.INFO: ProcessCDR(1,14317513,1,1,2) [2025-01-24 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317513', 'tblTempUsageDetail_20' ) start [2025-01-24 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317513', 'tblTempUsageDetail_20' ) end [2025-01-24 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:27:22] Production.INFO: ==18357== Releasing lock... [2025-01-24 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:28:06 [end_date_ymd] => 2025-01-24 05:28:06 [RateCDR] => 1 ) [2025-01-24 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:28:06' and `end` < '2025-01-24 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:28:18] Production.INFO: count ==150 [2025-01-24 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:28:06 - End Time 2025-01-24 05:28:06 [2025-01-24 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317518', 'tblTempUsageDetail_20' ) start [2025-01-24 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317518', 'tblTempUsageDetail_20' ) end [2025-01-24 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317518', 'tblTempVendorCDR_20' ) start [2025-01-24 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317518', 'tblTempVendorCDR_20' ) end [2025-01-24 05:28:18] Production.INFO: ProcessCDR(1,14317518,1,1,2) [2025-01-24 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317518', 'tblTempUsageDetail_20' ) start [2025-01-24 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317518', 'tblTempUsageDetail_20' ) end [2025-01-24 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:28:21] Production.INFO: ==18453== Releasing lock... [2025-01-24 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:29:05 [end_date_ymd] => 2025-01-24 05:29:05 [RateCDR] => 1 ) [2025-01-24 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:29:05' and `end` < '2025-01-24 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:29:18] Production.INFO: count ==150 [2025-01-24 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:29:05 - End Time 2025-01-24 05:29:05 [2025-01-24 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317523', 'tblTempUsageDetail_20' ) start [2025-01-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317523', 'tblTempUsageDetail_20' ) end [2025-01-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317523', 'tblTempVendorCDR_20' ) start [2025-01-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317523', 'tblTempVendorCDR_20' ) end [2025-01-24 05:29:18] Production.INFO: ProcessCDR(1,14317523,1,1,2) [2025-01-24 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317523', 'tblTempUsageDetail_20' ) start [2025-01-24 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317523', 'tblTempUsageDetail_20' ) end [2025-01-24 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:29:21] Production.INFO: ==18553== Releasing lock... [2025-01-24 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:30:06 [end_date_ymd] => 2025-01-24 05:30:06 [RateCDR] => 1 ) [2025-01-24 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:30:06' and `end` < '2025-01-24 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:30:19] Production.INFO: count ==144 [2025-01-24 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:30:06 - End Time 2025-01-24 05:30:06 [2025-01-24 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317529', 'tblTempUsageDetail_20' ) start [2025-01-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317529', 'tblTempUsageDetail_20' ) end [2025-01-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317529', 'tblTempVendorCDR_20' ) start [2025-01-24 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317529', 'tblTempVendorCDR_20' ) end [2025-01-24 05:30:19] Production.INFO: ProcessCDR(1,14317529,1,1,2) [2025-01-24 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317529', 'tblTempUsageDetail_20' ) start [2025-01-24 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317529', 'tblTempUsageDetail_20' ) end [2025-01-24 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:30:22] Production.INFO: ==18652== Releasing lock... [2025-01-24 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:31:05 [end_date_ymd] => 2025-01-24 05:31:05 [RateCDR] => 1 ) [2025-01-24 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:31:05' and `end` < '2025-01-24 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:31:17] Production.INFO: count ==137 [2025-01-24 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:31:05 - End Time 2025-01-24 05:31:05 [2025-01-24 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317534', 'tblTempUsageDetail_20' ) start [2025-01-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317534', 'tblTempUsageDetail_20' ) end [2025-01-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317534', 'tblTempVendorCDR_20' ) start [2025-01-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317534', 'tblTempVendorCDR_20' ) end [2025-01-24 05:31:17] Production.INFO: ProcessCDR(1,14317534,1,1,2) [2025-01-24 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317534', 'tblTempUsageDetail_20' ) start [2025-01-24 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317534', 'tblTempUsageDetail_20' ) end [2025-01-24 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:31:20] Production.INFO: ==18746== Releasing lock... [2025-01-24 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:31:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:32:06 [end_date_ymd] => 2025-01-24 05:32:06 [RateCDR] => 1 ) [2025-01-24 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:32:06' and `end` < '2025-01-24 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:32:18] Production.INFO: count ==137 [2025-01-24 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:32:06 - End Time 2025-01-24 05:32:06 [2025-01-24 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317539', 'tblTempUsageDetail_20' ) start [2025-01-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317539', 'tblTempUsageDetail_20' ) end [2025-01-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317539', 'tblTempVendorCDR_20' ) start [2025-01-24 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317539', 'tblTempVendorCDR_20' ) end [2025-01-24 05:32:18] Production.INFO: ProcessCDR(1,14317539,1,1,2) [2025-01-24 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317539', 'tblTempUsageDetail_20' ) start [2025-01-24 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317539', 'tblTempUsageDetail_20' ) end [2025-01-24 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:32:21] Production.INFO: ==18837== Releasing lock... [2025-01-24 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:33:05 [end_date_ymd] => 2025-01-24 05:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:33:05' and `end` < '2025-01-24 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-24 05:33:18] Production.INFO: count ==137 [2025-01-24 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:33:05 - End Time 2025-01-24 05:33:05 [2025-01-24 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317544', 'tblTempUsageDetail_20' ) start [2025-01-24 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317544', 'tblTempUsageDetail_20' ) end [2025-01-24 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317544', 'tblTempVendorCDR_20' ) start [2025-01-24 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317544', 'tblTempVendorCDR_20' ) end [2025-01-24 05:33:18] Production.INFO: ProcessCDR(1,14317544,1,1,2) [2025-01-24 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317544', 'tblTempUsageDetail_20' ) start [2025-01-24 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317544', 'tblTempUsageDetail_20' ) end [2025-01-24 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:33:21] Production.INFO: ==18964== Releasing lock... [2025-01-24 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:34:06 [end_date_ymd] => 2025-01-24 05:34:06 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:34:06' and `end` < '2025-01-24 05: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-24 05:34:18] Production.INFO: count ==137 [2025-01-24 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:34:06 - End Time 2025-01-24 05:34:06 [2025-01-24 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317549', 'tblTempUsageDetail_20' ) start [2025-01-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317549', 'tblTempUsageDetail_20' ) end [2025-01-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317549', 'tblTempVendorCDR_20' ) start [2025-01-24 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317549', 'tblTempVendorCDR_20' ) end [2025-01-24 05:34:18] Production.INFO: ProcessCDR(1,14317549,1,1,2) [2025-01-24 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317549', 'tblTempUsageDetail_20' ) start [2025-01-24 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317549', 'tblTempUsageDetail_20' ) end [2025-01-24 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:34:21] Production.INFO: ==19051== Releasing lock... [2025-01-24 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:35:05 [end_date_ymd] => 2025-01-24 05:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:35:05' and `end` < '2025-01-24 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-24 05:35:17] Production.INFO: count ==137 [2025-01-24 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:35:05 - End Time 2025-01-24 05:35:05 [2025-01-24 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317554', 'tblTempUsageDetail_20' ) start [2025-01-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317554', 'tblTempUsageDetail_20' ) end [2025-01-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317554', 'tblTempVendorCDR_20' ) start [2025-01-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317554', 'tblTempVendorCDR_20' ) end [2025-01-24 05:35:17] Production.INFO: ProcessCDR(1,14317554,1,1,2) [2025-01-24 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317554', 'tblTempUsageDetail_20' ) start [2025-01-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317554', 'tblTempUsageDetail_20' ) end [2025-01-24 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:35:21] Production.INFO: ==19137== Releasing lock... [2025-01-24 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:36:05 [end_date_ymd] => 2025-01-24 05:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:36:05' and `end` < '2025-01-24 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-24 05:36:18] Production.INFO: count ==137 [2025-01-24 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:36:05 - End Time 2025-01-24 05:36:05 [2025-01-24 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317559', 'tblTempUsageDetail_20' ) start [2025-01-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317559', 'tblTempUsageDetail_20' ) end [2025-01-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317559', 'tblTempVendorCDR_20' ) start [2025-01-24 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317559', 'tblTempVendorCDR_20' ) end [2025-01-24 05:36:18] Production.INFO: ProcessCDR(1,14317559,1,1,2) [2025-01-24 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317559', 'tblTempUsageDetail_20' ) start [2025-01-24 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317559', 'tblTempUsageDetail_20' ) end [2025-01-24 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:36:21] Production.INFO: ==19215== Releasing lock... [2025-01-24 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:37:05 [end_date_ymd] => 2025-01-24 05:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:37:05' and `end` < '2025-01-24 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-24 05:37:17] Production.INFO: count ==137 [2025-01-24 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:37:05 - End Time 2025-01-24 05:37:05 [2025-01-24 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317564', 'tblTempUsageDetail_20' ) start [2025-01-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317564', 'tblTempUsageDetail_20' ) end [2025-01-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317564', 'tblTempVendorCDR_20' ) start [2025-01-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317564', 'tblTempVendorCDR_20' ) end [2025-01-24 05:37:17] Production.INFO: ProcessCDR(1,14317564,1,1,2) [2025-01-24 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317564', 'tblTempUsageDetail_20' ) start [2025-01-24 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317564', 'tblTempUsageDetail_20' ) end [2025-01-24 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:37:20] Production.INFO: ==19291== Releasing lock... [2025-01-24 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:38:05 [end_date_ymd] => 2025-01-24 05:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:38:05' and `end` < '2025-01-24 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-24 05:38:18] Production.INFO: count ==137 [2025-01-24 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:38:05 - End Time 2025-01-24 05:38:05 [2025-01-24 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317569', 'tblTempUsageDetail_20' ) start [2025-01-24 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317569', 'tblTempUsageDetail_20' ) end [2025-01-24 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317569', 'tblTempVendorCDR_20' ) start [2025-01-24 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317569', 'tblTempVendorCDR_20' ) end [2025-01-24 05:38:18] Production.INFO: ProcessCDR(1,14317569,1,1,2) [2025-01-24 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317569', 'tblTempUsageDetail_20' ) start [2025-01-24 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317569', 'tblTempUsageDetail_20' ) end [2025-01-24 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:38:21] Production.INFO: ==19365== Releasing lock... [2025-01-24 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:39:04 [end_date_ymd] => 2025-01-24 05:39:04 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:39:04' and `end` < '2025-01-24 05: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-24 05:39:17] Production.INFO: count ==137 [2025-01-24 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:39:04 - End Time 2025-01-24 05:39:04 [2025-01-24 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317574', 'tblTempUsageDetail_20' ) start [2025-01-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317574', 'tblTempUsageDetail_20' ) end [2025-01-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317574', 'tblTempVendorCDR_20' ) start [2025-01-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317574', 'tblTempVendorCDR_20' ) end [2025-01-24 05:39:17] Production.INFO: ProcessCDR(1,14317574,1,1,2) [2025-01-24 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317574', 'tblTempUsageDetail_20' ) start [2025-01-24 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317574', 'tblTempUsageDetail_20' ) end [2025-01-24 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:39:20] Production.INFO: ==19436== Releasing lock... [2025-01-24 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:40:06 [end_date_ymd] => 2025-01-24 05:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 02:40:06' and `end` < '2025-01-24 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-24 05:40:19] Production.INFO: count ==134 [2025-01-24 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:40:06 - End Time 2025-01-24 05:40:06 [2025-01-24 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317580', 'tblTempUsageDetail_20' ) start [2025-01-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317580', 'tblTempUsageDetail_20' ) end [2025-01-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317580', 'tblTempVendorCDR_20' ) start [2025-01-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317580', 'tblTempVendorCDR_20' ) end [2025-01-24 05:40:19] Production.INFO: ProcessCDR(1,14317580,1,1,2) [2025-01-24 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317580', 'tblTempUsageDetail_20' ) start [2025-01-24 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317580', 'tblTempUsageDetail_20' ) end [2025-01-24 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:40:22] Production.INFO: ==19515== Releasing lock... [2025-01-24 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:41:04 [end_date_ymd] => 2025-01-24 05:41:04 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:41:04' and `end` < '2025-01-24 05: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-24 05:41:17] Production.INFO: count ==134 [2025-01-24 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:41:04 - End Time 2025-01-24 05:41:04 [2025-01-24 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317585', 'tblTempUsageDetail_20' ) start [2025-01-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317585', 'tblTempUsageDetail_20' ) end [2025-01-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317585', 'tblTempVendorCDR_20' ) start [2025-01-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317585', 'tblTempVendorCDR_20' ) end [2025-01-24 05:41:17] Production.INFO: ProcessCDR(1,14317585,1,1,2) [2025-01-24 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317585', 'tblTempUsageDetail_20' ) start [2025-01-24 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317585', 'tblTempUsageDetail_20' ) end [2025-01-24 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:41:20] Production.INFO: ==19589== Releasing lock... [2025-01-24 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:42:05 [end_date_ymd] => 2025-01-24 05:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:42:05' and `end` < '2025-01-24 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-24 05:42:18] Production.INFO: count ==134 [2025-01-24 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:42:05 - End Time 2025-01-24 05:42:05 [2025-01-24 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317590', 'tblTempUsageDetail_20' ) start [2025-01-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317590', 'tblTempUsageDetail_20' ) end [2025-01-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317590', 'tblTempVendorCDR_20' ) start [2025-01-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317590', 'tblTempVendorCDR_20' ) end [2025-01-24 05:42:18] Production.INFO: ProcessCDR(1,14317590,1,1,2) [2025-01-24 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317590', 'tblTempUsageDetail_20' ) start [2025-01-24 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317590', 'tblTempUsageDetail_20' ) end [2025-01-24 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:42:21] Production.INFO: ==19660== Releasing lock... [2025-01-24 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:43:05 [end_date_ymd] => 2025-01-24 05:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:43:05' and `end` < '2025-01-24 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-24 05:43:17] Production.INFO: count ==134 [2025-01-24 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:43:05 - End Time 2025-01-24 05:43:05 [2025-01-24 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317595', 'tblTempUsageDetail_20' ) start [2025-01-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317595', 'tblTempUsageDetail_20' ) end [2025-01-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317595', 'tblTempVendorCDR_20' ) start [2025-01-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317595', 'tblTempVendorCDR_20' ) end [2025-01-24 05:43:17] Production.INFO: ProcessCDR(1,14317595,1,1,2) [2025-01-24 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317595', 'tblTempUsageDetail_20' ) start [2025-01-24 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317595', 'tblTempUsageDetail_20' ) end [2025-01-24 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:43:20] Production.INFO: ==19738== Releasing lock... [2025-01-24 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:44:05 [end_date_ymd] => 2025-01-24 05:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:44:05' and `end` < '2025-01-24 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-24 05:44:17] Production.INFO: count ==133 [2025-01-24 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:44:05 - End Time 2025-01-24 05:44:05 [2025-01-24 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317600', 'tblTempUsageDetail_20' ) start [2025-01-24 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317600', 'tblTempUsageDetail_20' ) end [2025-01-24 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317600', 'tblTempVendorCDR_20' ) start [2025-01-24 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317600', 'tblTempVendorCDR_20' ) end [2025-01-24 05:44:17] Production.INFO: ProcessCDR(1,14317600,1,1,2) [2025-01-24 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317600', 'tblTempUsageDetail_20' ) start [2025-01-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317600', 'tblTempUsageDetail_20' ) end [2025-01-24 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:44:21] Production.INFO: ==19812== Releasing lock... [2025-01-24 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:45:05 [end_date_ymd] => 2025-01-24 05:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:45:05' and `end` < '2025-01-24 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-24 05:45:17] Production.INFO: count ==133 [2025-01-24 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:45:05 - End Time 2025-01-24 05:45:05 [2025-01-24 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317605', 'tblTempUsageDetail_20' ) start [2025-01-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317605', 'tblTempUsageDetail_20' ) end [2025-01-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317605', 'tblTempVendorCDR_20' ) start [2025-01-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317605', 'tblTempVendorCDR_20' ) end [2025-01-24 05:45:17] Production.INFO: ProcessCDR(1,14317605,1,1,2) [2025-01-24 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317605', 'tblTempUsageDetail_20' ) start [2025-01-24 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317605', 'tblTempUsageDetail_20' ) end [2025-01-24 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:45:20] Production.INFO: ==19887== Releasing lock... [2025-01-24 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:46:05 [end_date_ymd] => 2025-01-24 05:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:46:05' and `end` < '2025-01-24 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-24 05:46:18] Production.INFO: count ==130 [2025-01-24 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:46:05 - End Time 2025-01-24 05:46:05 [2025-01-24 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317610', 'tblTempUsageDetail_20' ) start [2025-01-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317610', 'tblTempUsageDetail_20' ) end [2025-01-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317610', 'tblTempVendorCDR_20' ) start [2025-01-24 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317610', 'tblTempVendorCDR_20' ) end [2025-01-24 05:46:18] Production.INFO: ProcessCDR(1,14317610,1,1,2) [2025-01-24 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317610', 'tblTempUsageDetail_20' ) start [2025-01-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317610', 'tblTempUsageDetail_20' ) end [2025-01-24 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:46:21] Production.INFO: ==19962== Releasing lock... [2025-01-24 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:47:05 [end_date_ymd] => 2025-01-24 05:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:47:05' and `end` < '2025-01-24 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-24 05:47:17] Production.INFO: count ==129 [2025-01-24 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:47:05 - End Time 2025-01-24 05:47:05 [2025-01-24 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317615', 'tblTempUsageDetail_20' ) start [2025-01-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317615', 'tblTempUsageDetail_20' ) end [2025-01-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317615', 'tblTempVendorCDR_20' ) start [2025-01-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317615', 'tblTempVendorCDR_20' ) end [2025-01-24 05:47:17] Production.INFO: ProcessCDR(1,14317615,1,1,2) [2025-01-24 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317615', 'tblTempUsageDetail_20' ) start [2025-01-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317615', 'tblTempUsageDetail_20' ) end [2025-01-24 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:47:20] Production.INFO: ==20035== Releasing lock... [2025-01-24 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:48:05 [end_date_ymd] => 2025-01-24 05:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:48:05' and `end` < '2025-01-24 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-24 05:48:18] Production.INFO: count ==128 [2025-01-24 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:48:05 - End Time 2025-01-24 05:48:05 [2025-01-24 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317620', 'tblTempUsageDetail_20' ) start [2025-01-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317620', 'tblTempUsageDetail_20' ) end [2025-01-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317620', 'tblTempVendorCDR_20' ) start [2025-01-24 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317620', 'tblTempVendorCDR_20' ) end [2025-01-24 05:48:18] Production.INFO: ProcessCDR(1,14317620,1,1,2) [2025-01-24 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317620', 'tblTempUsageDetail_20' ) start [2025-01-24 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317620', 'tblTempUsageDetail_20' ) end [2025-01-24 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:48:22] Production.INFO: ==20111== Releasing lock... [2025-01-24 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:49:05 [end_date_ymd] => 2025-01-24 05:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:49:05' and `end` < '2025-01-24 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-24 05:49:17] Production.INFO: count ==128 [2025-01-24 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:49:05 - End Time 2025-01-24 05:49:05 [2025-01-24 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317625', 'tblTempUsageDetail_20' ) start [2025-01-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317625', 'tblTempUsageDetail_20' ) end [2025-01-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317625', 'tblTempVendorCDR_20' ) start [2025-01-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317625', 'tblTempVendorCDR_20' ) end [2025-01-24 05:49:17] Production.INFO: ProcessCDR(1,14317625,1,1,2) [2025-01-24 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317625', 'tblTempUsageDetail_20' ) start [2025-01-24 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317625', 'tblTempUsageDetail_20' ) end [2025-01-24 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:49:20] Production.INFO: ==20221== Releasing lock... [2025-01-24 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:50:06 [end_date_ymd] => 2025-01-24 05:50:06 [RateCDR] => 1 ) [2025-01-24 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:50:06' and `end` < '2025-01-24 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:50:18] Production.INFO: count ==113 [2025-01-24 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:50:06 - End Time 2025-01-24 05:50:06 [2025-01-24 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317630', 'tblTempUsageDetail_20' ) start [2025-01-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317630', 'tblTempUsageDetail_20' ) end [2025-01-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317630', 'tblTempVendorCDR_20' ) start [2025-01-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317630', 'tblTempVendorCDR_20' ) end [2025-01-24 05:50:18] Production.INFO: ProcessCDR(1,14317630,1,1,2) [2025-01-24 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317630', 'tblTempUsageDetail_20' ) start [2025-01-24 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317630', 'tblTempUsageDetail_20' ) end [2025-01-24 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:50:21] Production.INFO: ==20298== Releasing lock... [2025-01-24 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:51:05 [end_date_ymd] => 2025-01-24 05:51:05 [RateCDR] => 1 ) [2025-01-24 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:51:05' and `end` < '2025-01-24 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-24 05:51:19] Production.INFO: count ==109 [2025-01-24 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:51:05 - End Time 2025-01-24 05:51:05 [2025-01-24 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317636', 'tblTempUsageDetail_20' ) start [2025-01-24 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317636', 'tblTempUsageDetail_20' ) end [2025-01-24 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317636', 'tblTempVendorCDR_20' ) start [2025-01-24 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317636', 'tblTempVendorCDR_20' ) end [2025-01-24 05:51:19] Production.INFO: ProcessCDR(1,14317636,1,1,2) [2025-01-24 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317636', 'tblTempUsageDetail_20' ) start [2025-01-24 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317636', 'tblTempUsageDetail_20' ) end [2025-01-24 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:51:22] Production.INFO: ==20372== Releasing lock... [2025-01-24 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:52:05 [end_date_ymd] => 2025-01-24 05:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:52:05' and `end` < '2025-01-24 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-24 05:52:17] Production.INFO: count ==109 [2025-01-24 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:52:05 - End Time 2025-01-24 05:52:05 [2025-01-24 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317641', 'tblTempUsageDetail_20' ) start [2025-01-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317641', 'tblTempUsageDetail_20' ) end [2025-01-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317641', 'tblTempVendorCDR_20' ) start [2025-01-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317641', 'tblTempVendorCDR_20' ) end [2025-01-24 05:52:17] Production.INFO: ProcessCDR(1,14317641,1,1,2) [2025-01-24 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317641', 'tblTempUsageDetail_20' ) start [2025-01-24 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317641', 'tblTempUsageDetail_20' ) end [2025-01-24 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:52:20] Production.INFO: ==20445== Releasing lock... [2025-01-24 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:53:05 [end_date_ymd] => 2025-01-24 05:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:53:05' and `end` < '2025-01-24 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-24 05:53:18] Production.INFO: count ==109 [2025-01-24 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:53:05 - End Time 2025-01-24 05:53:05 [2025-01-24 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317646', 'tblTempUsageDetail_20' ) start [2025-01-24 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317646', 'tblTempUsageDetail_20' ) end [2025-01-24 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317646', 'tblTempVendorCDR_20' ) start [2025-01-24 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317646', 'tblTempVendorCDR_20' ) end [2025-01-24 05:53:18] Production.INFO: ProcessCDR(1,14317646,1,1,2) [2025-01-24 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317646', 'tblTempUsageDetail_20' ) start [2025-01-24 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317646', 'tblTempUsageDetail_20' ) end [2025-01-24 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:53:21] Production.INFO: ==20520== Releasing lock... [2025-01-24 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:54:05 [end_date_ymd] => 2025-01-24 05:54:05 [RateCDR] => 1 ) [2025-01-24 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:54:05' and `end` < '2025-01-24 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:54:18] Production.INFO: count ==109 [2025-01-24 05:54:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:54:05 - End Time 2025-01-24 05:54:05 [2025-01-24 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317651', 'tblTempUsageDetail_20' ) start [2025-01-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317651', 'tblTempUsageDetail_20' ) end [2025-01-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317651', 'tblTempVendorCDR_20' ) start [2025-01-24 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317651', 'tblTempVendorCDR_20' ) end [2025-01-24 05:54:18] Production.INFO: ProcessCDR(1,14317651,1,1,2) [2025-01-24 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317651', 'tblTempUsageDetail_20' ) start [2025-01-24 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317651', 'tblTempUsageDetail_20' ) end [2025-01-24 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:54:21] Production.INFO: ==20592== Releasing lock... [2025-01-24 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:55:05 [end_date_ymd] => 2025-01-24 05:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:55:05' and `end` < '2025-01-24 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-24 05:55:19] Production.INFO: count ==109 [2025-01-24 05:55:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:55:05 - End Time 2025-01-24 05:55:05 [2025-01-24 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317656', 'tblTempUsageDetail_20' ) start [2025-01-24 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317656', 'tblTempUsageDetail_20' ) end [2025-01-24 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317656', 'tblTempVendorCDR_20' ) start [2025-01-24 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317656', 'tblTempVendorCDR_20' ) end [2025-01-24 05:55:19] Production.INFO: ProcessCDR(1,14317656,1,1,2) [2025-01-24 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317656', 'tblTempUsageDetail_20' ) start [2025-01-24 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317656', 'tblTempUsageDetail_20' ) end [2025-01-24 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:55:22] Production.INFO: ==20670== Releasing lock... [2025-01-24 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:56:05 [end_date_ymd] => 2025-01-24 05:56:05 [RateCDR] => 1 ) [2025-01-24 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 02:56:05' and `end` < '2025-01-24 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 05:56:17] Production.INFO: count ==109 [2025-01-24 05:56:17] Production.ERROR: pbx CDR StartTime 2025-01-24 02:56:05 - End Time 2025-01-24 05:56:05 [2025-01-24 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317661', 'tblTempUsageDetail_20' ) start [2025-01-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317661', 'tblTempUsageDetail_20' ) end [2025-01-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317661', 'tblTempVendorCDR_20' ) start [2025-01-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317661', 'tblTempVendorCDR_20' ) end [2025-01-24 05:56:17] Production.INFO: ProcessCDR(1,14317661,1,1,2) [2025-01-24 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317661', 'tblTempUsageDetail_20' ) start [2025-01-24 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317661', 'tblTempUsageDetail_20' ) end [2025-01-24 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:56:21] Production.INFO: ==20746== Releasing lock... [2025-01-24 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:57:06 [end_date_ymd] => 2025-01-24 05:57:06 [RateCDR] => 1 ) [2025-01-24 05: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-24 02:57:06' and `end` < '2025-01-24 05: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-24 05:57:18] Production.INFO: count ==109 [2025-01-24 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:57:06 - End Time 2025-01-24 05:57:06 [2025-01-24 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317666', 'tblTempUsageDetail_20' ) start [2025-01-24 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317666', 'tblTempUsageDetail_20' ) end [2025-01-24 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317666', 'tblTempVendorCDR_20' ) start [2025-01-24 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317666', 'tblTempVendorCDR_20' ) end [2025-01-24 05:57:18] Production.INFO: ProcessCDR(1,14317666,1,1,2) [2025-01-24 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317666', 'tblTempUsageDetail_20' ) start [2025-01-24 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317666', 'tblTempUsageDetail_20' ) end [2025-01-24 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:57:21] Production.INFO: ==20818== Releasing lock... [2025-01-24 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:58:05 [end_date_ymd] => 2025-01-24 05:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:58:05' and `end` < '2025-01-24 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-24 05:58:18] Production.INFO: count ==109 [2025-01-24 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 02:58:05 - End Time 2025-01-24 05:58:05 [2025-01-24 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317671', 'tblTempUsageDetail_20' ) start [2025-01-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317671', 'tblTempUsageDetail_20' ) end [2025-01-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317671', 'tblTempVendorCDR_20' ) start [2025-01-24 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317671', 'tblTempVendorCDR_20' ) end [2025-01-24 05:58:18] Production.INFO: ProcessCDR(1,14317671,1,1,2) [2025-01-24 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317671', 'tblTempUsageDetail_20' ) start [2025-01-24 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317671', 'tblTempUsageDetail_20' ) end [2025-01-24 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:58:21] Production.INFO: ==20888== Releasing lock... [2025-01-24 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 02:59:05 [end_date_ymd] => 2025-01-24 05:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 02:59:05' and `end` < '2025-01-24 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-24 05:59:19] Production.INFO: count ==109 [2025-01-24 05:59:19] Production.ERROR: pbx CDR StartTime 2025-01-24 02:59:05 - End Time 2025-01-24 05:59:05 [2025-01-24 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317676', 'tblTempUsageDetail_20' ) start [2025-01-24 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317676', 'tblTempUsageDetail_20' ) end [2025-01-24 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317676', 'tblTempVendorCDR_20' ) start [2025-01-24 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317676', 'tblTempVendorCDR_20' ) end [2025-01-24 05:59:19] Production.INFO: ProcessCDR(1,14317676,1,1,2) [2025-01-24 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317676', 'tblTempUsageDetail_20' ) start [2025-01-24 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317676', 'tblTempUsageDetail_20' ) end [2025-01-24 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 05:59:22] Production.INFO: ==20963== Releasing lock... [2025-01-24 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 05:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:00:06 [end_date_ymd] => 2025-01-24 06:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:00:06' and `end` < '2025-01-24 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-24 06:00:18] Production.INFO: count ==103 [2025-01-24 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:00:06 - End Time 2025-01-24 06:00:06 [2025-01-24 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317682', 'tblTempUsageDetail_20' ) start [2025-01-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317682', 'tblTempUsageDetail_20' ) end [2025-01-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317682', 'tblTempVendorCDR_20' ) start [2025-01-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317682', 'tblTempVendorCDR_20' ) end [2025-01-24 06:00:18] Production.INFO: ProcessCDR(1,14317682,1,1,2) [2025-01-24 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317682', 'tblTempUsageDetail_20' ) start [2025-01-24 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317682', 'tblTempUsageDetail_20' ) end [2025-01-24 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:00:22] Production.INFO: ==21038== Releasing lock... [2025-01-24 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:01:05 [end_date_ymd] => 2025-01-24 06:01:05 [RateCDR] => 1 ) [2025-01-24 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:01:05' and `end` < '2025-01-24 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-24 06:01:18] Production.INFO: count ==109 [2025-01-24 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:01:05 - End Time 2025-01-24 06:01:05 [2025-01-24 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317687', 'tblTempUsageDetail_20' ) start [2025-01-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317687', 'tblTempUsageDetail_20' ) end [2025-01-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317687', 'tblTempVendorCDR_20' ) start [2025-01-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317687', 'tblTempVendorCDR_20' ) end [2025-01-24 06:01:18] Production.INFO: ProcessCDR(1,14317687,1,1,2) [2025-01-24 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317687', 'tblTempUsageDetail_20' ) start [2025-01-24 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317687', 'tblTempUsageDetail_20' ) end [2025-01-24 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:01:22] Production.INFO: ==21131== Releasing lock... [2025-01-24 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:02:05 [end_date_ymd] => 2025-01-24 06:02:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:02:05' and `end` < '2025-01-24 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-24 06:02:18] Production.INFO: count ==108 [2025-01-24 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:02:05 - End Time 2025-01-24 06:02:05 [2025-01-24 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317692', 'tblTempUsageDetail_20' ) start [2025-01-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317692', 'tblTempUsageDetail_20' ) end [2025-01-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317692', 'tblTempVendorCDR_20' ) start [2025-01-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317692', 'tblTempVendorCDR_20' ) end [2025-01-24 06:02:18] Production.INFO: ProcessCDR(1,14317692,1,1,2) [2025-01-24 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317692', 'tblTempUsageDetail_20' ) start [2025-01-24 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317692', 'tblTempUsageDetail_20' ) end [2025-01-24 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:02:21] Production.INFO: ==21213== Releasing lock... [2025-01-24 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:03:05 [end_date_ymd] => 2025-01-24 06:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:03:05' and `end` < '2025-01-24 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-24 06:03:19] Production.INFO: count ==108 [2025-01-24 06:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:03:05 - End Time 2025-01-24 06:03:05 [2025-01-24 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317697', 'tblTempUsageDetail_20' ) start [2025-01-24 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317697', 'tblTempUsageDetail_20' ) end [2025-01-24 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317697', 'tblTempVendorCDR_20' ) start [2025-01-24 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317697', 'tblTempVendorCDR_20' ) end [2025-01-24 06:03:19] Production.INFO: ProcessCDR(1,14317697,1,1,2) [2025-01-24 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317697', 'tblTempUsageDetail_20' ) start [2025-01-24 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317697', 'tblTempUsageDetail_20' ) end [2025-01-24 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:03:22] Production.INFO: ==21290== Releasing lock... [2025-01-24 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:04:05 [end_date_ymd] => 2025-01-24 06:04:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:04:05' and `end` < '2025-01-24 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-24 06:04:18] Production.INFO: count ==108 [2025-01-24 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:04:05 - End Time 2025-01-24 06:04:05 [2025-01-24 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317702', 'tblTempUsageDetail_20' ) start [2025-01-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317702', 'tblTempUsageDetail_20' ) end [2025-01-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317702', 'tblTempVendorCDR_20' ) start [2025-01-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317702', 'tblTempVendorCDR_20' ) end [2025-01-24 06:04:18] Production.INFO: ProcessCDR(1,14317702,1,1,2) [2025-01-24 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317702', 'tblTempUsageDetail_20' ) start [2025-01-24 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317702', 'tblTempUsageDetail_20' ) end [2025-01-24 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:04:21] Production.INFO: ==21407== Releasing lock... [2025-01-24 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:05:05 [end_date_ymd] => 2025-01-24 06:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:05:05' and `end` < '2025-01-24 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-24 06:05:18] Production.INFO: count ==108 [2025-01-24 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:05:05 - End Time 2025-01-24 06:05:05 [2025-01-24 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317707', 'tblTempUsageDetail_20' ) start [2025-01-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317707', 'tblTempUsageDetail_20' ) end [2025-01-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317707', 'tblTempVendorCDR_20' ) start [2025-01-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317707', 'tblTempVendorCDR_20' ) end [2025-01-24 06:05:18] Production.INFO: ProcessCDR(1,14317707,1,1,2) [2025-01-24 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317707', 'tblTempUsageDetail_20' ) start [2025-01-24 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317707', 'tblTempUsageDetail_20' ) end [2025-01-24 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:05:21] Production.INFO: ==21482== Releasing lock... [2025-01-24 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:06:05 [end_date_ymd] => 2025-01-24 06:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:06:05' and `end` < '2025-01-24 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-24 06:06:17] Production.INFO: count ==108 [2025-01-24 06:06:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:06:05 - End Time 2025-01-24 06:06:05 [2025-01-24 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317712', 'tblTempUsageDetail_20' ) start [2025-01-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317712', 'tblTempUsageDetail_20' ) end [2025-01-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317712', 'tblTempVendorCDR_20' ) start [2025-01-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317712', 'tblTempVendorCDR_20' ) end [2025-01-24 06:06:17] Production.INFO: ProcessCDR(1,14317712,1,1,2) [2025-01-24 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317712', 'tblTempUsageDetail_20' ) start [2025-01-24 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317712', 'tblTempUsageDetail_20' ) end [2025-01-24 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:06:20] Production.INFO: ==21553== Releasing lock... [2025-01-24 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:07:05 [end_date_ymd] => 2025-01-24 06:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:07:05' and `end` < '2025-01-24 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-24 06:07:17] Production.INFO: count ==107 [2025-01-24 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:07:05 - End Time 2025-01-24 06:07:05 [2025-01-24 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317717', 'tblTempUsageDetail_20' ) start [2025-01-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317717', 'tblTempUsageDetail_20' ) end [2025-01-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317717', 'tblTempVendorCDR_20' ) start [2025-01-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317717', 'tblTempVendorCDR_20' ) end [2025-01-24 06:07:17] Production.INFO: ProcessCDR(1,14317717,1,1,2) [2025-01-24 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317717', 'tblTempUsageDetail_20' ) start [2025-01-24 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317717', 'tblTempUsageDetail_20' ) end [2025-01-24 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:07:20] Production.INFO: ==21624== Releasing lock... [2025-01-24 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:08:05 [end_date_ymd] => 2025-01-24 06:08:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:08:05' and `end` < '2025-01-24 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-24 06:08:19] Production.INFO: count ==106 [2025-01-24 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:08:05 - End Time 2025-01-24 06:08:05 [2025-01-24 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317722', 'tblTempUsageDetail_20' ) start [2025-01-24 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317722', 'tblTempUsageDetail_20' ) end [2025-01-24 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317722', 'tblTempVendorCDR_20' ) start [2025-01-24 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317722', 'tblTempVendorCDR_20' ) end [2025-01-24 06:08:19] Production.INFO: ProcessCDR(1,14317722,1,1,2) [2025-01-24 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317722', 'tblTempUsageDetail_20' ) start [2025-01-24 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317722', 'tblTempUsageDetail_20' ) end [2025-01-24 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:08:22] Production.INFO: ==21701== Releasing lock... [2025-01-24 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:09:05 [end_date_ymd] => 2025-01-24 06:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:09:05' and `end` < '2025-01-24 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-24 06:09:17] Production.INFO: count ==106 [2025-01-24 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:09:05 - End Time 2025-01-24 06:09:05 [2025-01-24 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317727', 'tblTempUsageDetail_20' ) start [2025-01-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317727', 'tblTempUsageDetail_20' ) end [2025-01-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317727', 'tblTempVendorCDR_20' ) start [2025-01-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317727', 'tblTempVendorCDR_20' ) end [2025-01-24 06:09:17] Production.INFO: ProcessCDR(1,14317727,1,1,2) [2025-01-24 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317727', 'tblTempUsageDetail_20' ) start [2025-01-24 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317727', 'tblTempUsageDetail_20' ) end [2025-01-24 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:09:20] Production.INFO: ==21780== Releasing lock... [2025-01-24 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:10:05 [end_date_ymd] => 2025-01-24 06:10:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:10:05' and `end` < '2025-01-24 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-24 06:10:18] Production.INFO: count ==104 [2025-01-24 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:10:05 - End Time 2025-01-24 06:10:05 [2025-01-24 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317732', 'tblTempUsageDetail_20' ) start [2025-01-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317732', 'tblTempUsageDetail_20' ) end [2025-01-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317732', 'tblTempVendorCDR_20' ) start [2025-01-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317732', 'tblTempVendorCDR_20' ) end [2025-01-24 06:10:18] Production.INFO: ProcessCDR(1,14317732,1,1,2) [2025-01-24 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317732', 'tblTempUsageDetail_20' ) start [2025-01-24 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317732', 'tblTempUsageDetail_20' ) end [2025-01-24 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:10:21] Production.INFO: ==21855== Releasing lock... [2025-01-24 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:11:05 [end_date_ymd] => 2025-01-24 06:11:05 [RateCDR] => 1 ) [2025-01-24 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:11:05' and `end` < '2025-01-24 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-24 06:11:18] Production.INFO: count ==102 [2025-01-24 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:11:05 - End Time 2025-01-24 06:11:05 [2025-01-24 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317738', 'tblTempUsageDetail_20' ) start [2025-01-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317738', 'tblTempUsageDetail_20' ) end [2025-01-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317738', 'tblTempVendorCDR_20' ) start [2025-01-24 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317738', 'tblTempVendorCDR_20' ) end [2025-01-24 06:11:18] Production.INFO: ProcessCDR(1,14317738,1,1,2) [2025-01-24 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317738', 'tblTempUsageDetail_20' ) start [2025-01-24 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317738', 'tblTempUsageDetail_20' ) end [2025-01-24 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:11:21] Production.INFO: ==21937== Releasing lock... [2025-01-24 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:12:05 [end_date_ymd] => 2025-01-24 06:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:12:05' and `end` < '2025-01-24 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-24 06:12:18] Production.INFO: count ==102 [2025-01-24 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:12:05 - End Time 2025-01-24 06:12:05 [2025-01-24 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317742', 'tblTempUsageDetail_20' ) start [2025-01-24 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317742', 'tblTempUsageDetail_20' ) end [2025-01-24 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317742', 'tblTempVendorCDR_20' ) start [2025-01-24 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317742', 'tblTempVendorCDR_20' ) end [2025-01-24 06:12:18] Production.INFO: ProcessCDR(1,14317742,1,1,2) [2025-01-24 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317742', 'tblTempUsageDetail_20' ) start [2025-01-24 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317742', 'tblTempUsageDetail_20' ) end [2025-01-24 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:12:21] Production.INFO: ==22008== Releasing lock... [2025-01-24 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:13:04 [end_date_ymd] => 2025-01-24 06:13:04 [RateCDR] => 1 ) [2025-01-24 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-24 03:13:04' and `end` < '2025-01-24 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:13:17] Production.INFO: count ==102 [2025-01-24 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:13:04 - End Time 2025-01-24 06:13:04 [2025-01-24 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317748', 'tblTempUsageDetail_20' ) start [2025-01-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317748', 'tblTempUsageDetail_20' ) end [2025-01-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317748', 'tblTempVendorCDR_20' ) start [2025-01-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317748', 'tblTempVendorCDR_20' ) end [2025-01-24 06:13:17] Production.INFO: ProcessCDR(1,14317748,1,1,2) [2025-01-24 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317748', 'tblTempUsageDetail_20' ) start [2025-01-24 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317748', 'tblTempUsageDetail_20' ) end [2025-01-24 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:13:20] Production.INFO: ==22079== Releasing lock... [2025-01-24 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:13:20] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:14:05 [end_date_ymd] => 2025-01-24 06:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:14:05' and `end` < '2025-01-24 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-24 06:14:17] Production.INFO: count ==102 [2025-01-24 06:14:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:14:05 - End Time 2025-01-24 06:14:05 [2025-01-24 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317753', 'tblTempUsageDetail_20' ) start [2025-01-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317753', 'tblTempUsageDetail_20' ) end [2025-01-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317753', 'tblTempVendorCDR_20' ) start [2025-01-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317753', 'tblTempVendorCDR_20' ) end [2025-01-24 06:14:17] Production.INFO: ProcessCDR(1,14317753,1,1,2) [2025-01-24 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317753', 'tblTempUsageDetail_20' ) start [2025-01-24 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317753', 'tblTempUsageDetail_20' ) end [2025-01-24 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:14:20] Production.INFO: ==22177== Releasing lock... [2025-01-24 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:14:20] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:15:05 [end_date_ymd] => 2025-01-24 06:15:05 [RateCDR] => 1 ) [2025-01-24 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:15:05' and `end` < '2025-01-24 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:15:17] Production.INFO: count ==102 [2025-01-24 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:15:05 - End Time 2025-01-24 06:15:05 [2025-01-24 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317758', 'tblTempUsageDetail_20' ) start [2025-01-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317758', 'tblTempUsageDetail_20' ) end [2025-01-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317758', 'tblTempVendorCDR_20' ) start [2025-01-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317758', 'tblTempVendorCDR_20' ) end [2025-01-24 06:15:17] Production.INFO: ProcessCDR(1,14317758,1,1,2) [2025-01-24 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317758', 'tblTempUsageDetail_20' ) start [2025-01-24 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317758', 'tblTempUsageDetail_20' ) end [2025-01-24 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:15:20] Production.INFO: ==22321== Releasing lock... [2025-01-24 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:15:20] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:16:05 [end_date_ymd] => 2025-01-24 06:16:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:16:05' and `end` < '2025-01-24 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-24 06:16:18] Production.INFO: count ==102 [2025-01-24 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:16:05 - End Time 2025-01-24 06:16:05 [2025-01-24 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317763', 'tblTempUsageDetail_20' ) start [2025-01-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317763', 'tblTempUsageDetail_20' ) end [2025-01-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317763', 'tblTempVendorCDR_20' ) start [2025-01-24 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317763', 'tblTempVendorCDR_20' ) end [2025-01-24 06:16:18] Production.INFO: ProcessCDR(1,14317763,1,1,2) [2025-01-24 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317763', 'tblTempUsageDetail_20' ) start [2025-01-24 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317763', 'tblTempUsageDetail_20' ) end [2025-01-24 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:16:21] Production.INFO: ==22471== Releasing lock... [2025-01-24 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:17:05 [end_date_ymd] => 2025-01-24 06:17:05 [RateCDR] => 1 ) [2025-01-24 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:17:05' and `end` < '2025-01-24 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:17:17] Production.INFO: count ==102 [2025-01-24 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:17:05 - End Time 2025-01-24 06:17:05 [2025-01-24 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317768', 'tblTempUsageDetail_20' ) start [2025-01-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317768', 'tblTempUsageDetail_20' ) end [2025-01-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317768', 'tblTempVendorCDR_20' ) start [2025-01-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317768', 'tblTempVendorCDR_20' ) end [2025-01-24 06:17:17] Production.INFO: ProcessCDR(1,14317768,1,1,2) [2025-01-24 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317768', 'tblTempUsageDetail_20' ) start [2025-01-24 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317768', 'tblTempUsageDetail_20' ) end [2025-01-24 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:17:20] Production.INFO: ==22589== Releasing lock... [2025-01-24 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:17:20] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:18:05 [end_date_ymd] => 2025-01-24 06:18:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:18:05' and `end` < '2025-01-24 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-24 06:18:18] Production.INFO: count ==102 [2025-01-24 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:18:05 - End Time 2025-01-24 06:18:05 [2025-01-24 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317773', 'tblTempUsageDetail_20' ) start [2025-01-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317773', 'tblTempUsageDetail_20' ) end [2025-01-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317773', 'tblTempVendorCDR_20' ) start [2025-01-24 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317773', 'tblTempVendorCDR_20' ) end [2025-01-24 06:18:18] Production.INFO: ProcessCDR(1,14317773,1,1,2) [2025-01-24 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317773', 'tblTempUsageDetail_20' ) start [2025-01-24 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317773', 'tblTempUsageDetail_20' ) end [2025-01-24 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:18:21] Production.INFO: ==22713== Releasing lock... [2025-01-24 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:19:05 [end_date_ymd] => 2025-01-24 06:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:19:05' and `end` < '2025-01-24 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-24 06:19:17] Production.INFO: count ==102 [2025-01-24 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:19:05 - End Time 2025-01-24 06:19:05 [2025-01-24 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317778', 'tblTempUsageDetail_20' ) start [2025-01-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317778', 'tblTempUsageDetail_20' ) end [2025-01-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317778', 'tblTempVendorCDR_20' ) start [2025-01-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317778', 'tblTempVendorCDR_20' ) end [2025-01-24 06:19:17] Production.INFO: ProcessCDR(1,14317778,1,1,2) [2025-01-24 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317778', 'tblTempUsageDetail_20' ) start [2025-01-24 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317778', 'tblTempUsageDetail_20' ) end [2025-01-24 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:19:20] Production.INFO: ==22874== Releasing lock... [2025-01-24 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:19:20] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:20:06 [end_date_ymd] => 2025-01-24 06:20:06 [RateCDR] => 1 ) [2025-01-24 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:20:06' and `end` < '2025-01-24 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:20:19] Production.INFO: count ==102 [2025-01-24 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:20:06 - End Time 2025-01-24 06:20:06 [2025-01-24 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317783', 'tblTempUsageDetail_20' ) start [2025-01-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317783', 'tblTempUsageDetail_20' ) end [2025-01-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317783', 'tblTempVendorCDR_20' ) start [2025-01-24 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317783', 'tblTempVendorCDR_20' ) end [2025-01-24 06:20:19] Production.INFO: ProcessCDR(1,14317783,1,1,2) [2025-01-24 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317783', 'tblTempUsageDetail_20' ) start [2025-01-24 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317783', 'tblTempUsageDetail_20' ) end [2025-01-24 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:20:22] Production.INFO: ==22998== Releasing lock... [2025-01-24 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:21:05 [end_date_ymd] => 2025-01-24 06:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:21:05' and `end` < '2025-01-24 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-24 06:21:18] Production.INFO: count ==102 [2025-01-24 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:21:05 - End Time 2025-01-24 06:21:05 [2025-01-24 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317789', 'tblTempUsageDetail_20' ) start [2025-01-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317789', 'tblTempUsageDetail_20' ) end [2025-01-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317789', 'tblTempVendorCDR_20' ) start [2025-01-24 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317789', 'tblTempVendorCDR_20' ) end [2025-01-24 06:21:18] Production.INFO: ProcessCDR(1,14317789,1,1,2) [2025-01-24 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317789', 'tblTempUsageDetail_20' ) start [2025-01-24 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317789', 'tblTempUsageDetail_20' ) end [2025-01-24 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:21:21] Production.INFO: ==23124== Releasing lock... [2025-01-24 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:22:06 [end_date_ymd] => 2025-01-24 06:22:06 [RateCDR] => 1 ) [2025-01-24 06: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-24 03:22:06' and `end` < '2025-01-24 06: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-24 06:22:19] Production.INFO: count ==102 [2025-01-24 06:22:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:22:06 - End Time 2025-01-24 06:22:06 [2025-01-24 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317794', 'tblTempUsageDetail_20' ) start [2025-01-24 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317794', 'tblTempUsageDetail_20' ) end [2025-01-24 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317794', 'tblTempVendorCDR_20' ) start [2025-01-24 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317794', 'tblTempVendorCDR_20' ) end [2025-01-24 06:22:19] Production.INFO: ProcessCDR(1,14317794,1,1,2) [2025-01-24 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317794', 'tblTempUsageDetail_20' ) start [2025-01-24 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317794', 'tblTempUsageDetail_20' ) end [2025-01-24 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:22:22] Production.INFO: ==23257== Releasing lock... [2025-01-24 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:23:05 [end_date_ymd] => 2025-01-24 06:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:23:05' and `end` < '2025-01-24 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-24 06:23:18] Production.INFO: count ==101 [2025-01-24 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:23:05 - End Time 2025-01-24 06:23:05 [2025-01-24 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317799', 'tblTempUsageDetail_20' ) start [2025-01-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317799', 'tblTempUsageDetail_20' ) end [2025-01-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317799', 'tblTempVendorCDR_20' ) start [2025-01-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317799', 'tblTempVendorCDR_20' ) end [2025-01-24 06:23:18] Production.INFO: ProcessCDR(1,14317799,1,1,2) [2025-01-24 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317799', 'tblTempUsageDetail_20' ) start [2025-01-24 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317799', 'tblTempUsageDetail_20' ) end [2025-01-24 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:23:21] Production.INFO: ==23382== Releasing lock... [2025-01-24 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:24:06 [end_date_ymd] => 2025-01-24 06:24:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:24:06' and `end` < '2025-01-24 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-24 06:24:18] Production.INFO: count ==101 [2025-01-24 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:24:06 - End Time 2025-01-24 06:24:06 [2025-01-24 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317804', 'tblTempUsageDetail_20' ) start [2025-01-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317804', 'tblTempUsageDetail_20' ) end [2025-01-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317804', 'tblTempVendorCDR_20' ) start [2025-01-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317804', 'tblTempVendorCDR_20' ) end [2025-01-24 06:24:18] Production.INFO: ProcessCDR(1,14317804,1,1,2) [2025-01-24 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317804', 'tblTempUsageDetail_20' ) start [2025-01-24 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317804', 'tblTempUsageDetail_20' ) end [2025-01-24 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:24:21] Production.INFO: ==23498== Releasing lock... [2025-01-24 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:25:05 [end_date_ymd] => 2025-01-24 06:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:25:05' and `end` < '2025-01-24 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-24 06:25:17] Production.INFO: count ==101 [2025-01-24 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:25:05 - End Time 2025-01-24 06:25:05 [2025-01-24 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317809', 'tblTempUsageDetail_20' ) start [2025-01-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317809', 'tblTempUsageDetail_20' ) end [2025-01-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317809', 'tblTempVendorCDR_20' ) start [2025-01-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317809', 'tblTempVendorCDR_20' ) end [2025-01-24 06:25:17] Production.INFO: ProcessCDR(1,14317809,1,1,2) [2025-01-24 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317809', 'tblTempUsageDetail_20' ) start [2025-01-24 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317809', 'tblTempUsageDetail_20' ) end [2025-01-24 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:25:21] Production.INFO: ==23620== Releasing lock... [2025-01-24 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:26:05 [end_date_ymd] => 2025-01-24 06:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:26:05' and `end` < '2025-01-24 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-24 06:26:18] Production.INFO: count ==101 [2025-01-24 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:26:05 - End Time 2025-01-24 06:26:05 [2025-01-24 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317814', 'tblTempUsageDetail_20' ) start [2025-01-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317814', 'tblTempUsageDetail_20' ) end [2025-01-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317814', 'tblTempVendorCDR_20' ) start [2025-01-24 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317814', 'tblTempVendorCDR_20' ) end [2025-01-24 06:26:18] Production.INFO: ProcessCDR(1,14317814,1,1,2) [2025-01-24 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317814', 'tblTempUsageDetail_20' ) start [2025-01-24 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317814', 'tblTempUsageDetail_20' ) end [2025-01-24 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:26:21] Production.INFO: ==23738== Releasing lock... [2025-01-24 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:27:05 [end_date_ymd] => 2025-01-24 06:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:27:05' and `end` < '2025-01-24 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-24 06:27:19] Production.INFO: count ==101 [2025-01-24 06:27:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:27:05 - End Time 2025-01-24 06:27:05 [2025-01-24 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317819', 'tblTempUsageDetail_20' ) start [2025-01-24 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317819', 'tblTempUsageDetail_20' ) end [2025-01-24 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317819', 'tblTempVendorCDR_20' ) start [2025-01-24 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317819', 'tblTempVendorCDR_20' ) end [2025-01-24 06:27:19] Production.INFO: ProcessCDR(1,14317819,1,1,2) [2025-01-24 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317819', 'tblTempUsageDetail_20' ) start [2025-01-24 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317819', 'tblTempUsageDetail_20' ) end [2025-01-24 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:27:22] Production.INFO: ==23868== Releasing lock... [2025-01-24 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:28:05 [end_date_ymd] => 2025-01-24 06:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:28:05' and `end` < '2025-01-24 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-24 06:28:17] Production.INFO: count ==101 [2025-01-24 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:28:05 - End Time 2025-01-24 06:28:05 [2025-01-24 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317824', 'tblTempUsageDetail_20' ) start [2025-01-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317824', 'tblTempUsageDetail_20' ) end [2025-01-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317824', 'tblTempVendorCDR_20' ) start [2025-01-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317824', 'tblTempVendorCDR_20' ) end [2025-01-24 06:28:17] Production.INFO: ProcessCDR(1,14317824,1,1,2) [2025-01-24 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317824', 'tblTempUsageDetail_20' ) start [2025-01-24 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317824', 'tblTempUsageDetail_20' ) end [2025-01-24 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:28:20] Production.INFO: ==24000== Releasing lock... [2025-01-24 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:28:20] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:29:05 [end_date_ymd] => 2025-01-24 06:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:29:05' and `end` < '2025-01-24 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-24 06:29:18] Production.INFO: count ==101 [2025-01-24 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:29:05 - End Time 2025-01-24 06:29:05 [2025-01-24 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317829', 'tblTempUsageDetail_20' ) start [2025-01-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317829', 'tblTempUsageDetail_20' ) end [2025-01-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317829', 'tblTempVendorCDR_20' ) start [2025-01-24 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317829', 'tblTempVendorCDR_20' ) end [2025-01-24 06:29:18] Production.INFO: ProcessCDR(1,14317829,1,1,2) [2025-01-24 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317829', 'tblTempUsageDetail_20' ) start [2025-01-24 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317829', 'tblTempUsageDetail_20' ) end [2025-01-24 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:29:21] Production.INFO: ==24122== Releasing lock... [2025-01-24 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:30:06 [end_date_ymd] => 2025-01-24 06:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:30:06' and `end` < '2025-01-24 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-24 06:30:19] Production.INFO: count ==103 [2025-01-24 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:30:06 - End Time 2025-01-24 06:30:06 [2025-01-24 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317835', 'tblTempUsageDetail_20' ) start [2025-01-24 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317835', 'tblTempUsageDetail_20' ) end [2025-01-24 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317835', 'tblTempVendorCDR_20' ) start [2025-01-24 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317835', 'tblTempVendorCDR_20' ) end [2025-01-24 06:30:19] Production.INFO: ProcessCDR(1,14317835,1,1,2) [2025-01-24 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317835', 'tblTempUsageDetail_20' ) start [2025-01-24 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317835', 'tblTempUsageDetail_20' ) end [2025-01-24 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:30:22] Production.INFO: ==24248== Releasing lock... [2025-01-24 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:31:05 [end_date_ymd] => 2025-01-24 06:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:31:05' and `end` < '2025-01-24 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-24 06:31:18] Production.INFO: count ==104 [2025-01-24 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:31:05 - End Time 2025-01-24 06:31:05 [2025-01-24 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317840', 'tblTempUsageDetail_20' ) start [2025-01-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317840', 'tblTempUsageDetail_20' ) end [2025-01-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317840', 'tblTempVendorCDR_20' ) start [2025-01-24 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317840', 'tblTempVendorCDR_20' ) end [2025-01-24 06:31:18] Production.INFO: ProcessCDR(1,14317840,1,1,2) [2025-01-24 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317840', 'tblTempUsageDetail_20' ) start [2025-01-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317840', 'tblTempUsageDetail_20' ) end [2025-01-24 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:31:21] Production.INFO: ==24371== Releasing lock... [2025-01-24 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:32:06 [end_date_ymd] => 2025-01-24 06:32:06 [RateCDR] => 1 ) [2025-01-24 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:32:06' and `end` < '2025-01-24 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:32:18] Production.INFO: count ==104 [2025-01-24 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:32:06 - End Time 2025-01-24 06:32:06 [2025-01-24 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317845', 'tblTempUsageDetail_20' ) start [2025-01-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317845', 'tblTempUsageDetail_20' ) end [2025-01-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317845', 'tblTempVendorCDR_20' ) start [2025-01-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317845', 'tblTempVendorCDR_20' ) end [2025-01-24 06:32:18] Production.INFO: ProcessCDR(1,14317845,1,1,2) [2025-01-24 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317845', 'tblTempUsageDetail_20' ) start [2025-01-24 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317845', 'tblTempUsageDetail_20' ) end [2025-01-24 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:32:21] Production.INFO: ==24473== Releasing lock... [2025-01-24 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:33:05 [end_date_ymd] => 2025-01-24 06:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:33:05' and `end` < '2025-01-24 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-24 06:33:18] Production.INFO: count ==104 [2025-01-24 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:33:05 - End Time 2025-01-24 06:33:05 [2025-01-24 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317850', 'tblTempUsageDetail_20' ) start [2025-01-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317850', 'tblTempUsageDetail_20' ) end [2025-01-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317850', 'tblTempVendorCDR_20' ) start [2025-01-24 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317850', 'tblTempVendorCDR_20' ) end [2025-01-24 06:33:18] Production.INFO: ProcessCDR(1,14317850,1,1,2) [2025-01-24 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317850', 'tblTempUsageDetail_20' ) start [2025-01-24 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317850', 'tblTempUsageDetail_20' ) end [2025-01-24 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:33:21] Production.INFO: ==24551== Releasing lock... [2025-01-24 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:34:05 [end_date_ymd] => 2025-01-24 06:34:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:34:05' and `end` < '2025-01-24 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-24 06:34:18] Production.INFO: count ==104 [2025-01-24 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:34:05 - End Time 2025-01-24 06:34:05 [2025-01-24 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317855', 'tblTempUsageDetail_20' ) start [2025-01-24 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317855', 'tblTempUsageDetail_20' ) end [2025-01-24 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317855', 'tblTempVendorCDR_20' ) start [2025-01-24 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317855', 'tblTempVendorCDR_20' ) end [2025-01-24 06:34:18] Production.INFO: ProcessCDR(1,14317855,1,1,2) [2025-01-24 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317855', 'tblTempUsageDetail_20' ) start [2025-01-24 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317855', 'tblTempUsageDetail_20' ) end [2025-01-24 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:34:21] Production.INFO: ==24636== Releasing lock... [2025-01-24 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:35:05 [end_date_ymd] => 2025-01-24 06:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:35:05' and `end` < '2025-01-24 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-24 06:35:17] Production.INFO: count ==104 [2025-01-24 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:35:05 - End Time 2025-01-24 06:35:05 [2025-01-24 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317860', 'tblTempUsageDetail_20' ) start [2025-01-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317860', 'tblTempUsageDetail_20' ) end [2025-01-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317860', 'tblTempVendorCDR_20' ) start [2025-01-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317860', 'tblTempVendorCDR_20' ) end [2025-01-24 06:35:17] Production.INFO: ProcessCDR(1,14317860,1,1,2) [2025-01-24 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317860', 'tblTempUsageDetail_20' ) start [2025-01-24 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317860', 'tblTempUsageDetail_20' ) end [2025-01-24 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:35:20] Production.INFO: ==24749== Releasing lock... [2025-01-24 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:36:05 [end_date_ymd] => 2025-01-24 06:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:36:05' and `end` < '2025-01-24 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-24 06:36:17] Production.INFO: count ==104 [2025-01-24 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:36:05 - End Time 2025-01-24 06:36:05 [2025-01-24 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317865', 'tblTempUsageDetail_20' ) start [2025-01-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317865', 'tblTempUsageDetail_20' ) end [2025-01-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317865', 'tblTempVendorCDR_20' ) start [2025-01-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317865', 'tblTempVendorCDR_20' ) end [2025-01-24 06:36:18] Production.INFO: ProcessCDR(1,14317865,1,1,2) [2025-01-24 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317865', 'tblTempUsageDetail_20' ) start [2025-01-24 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317865', 'tblTempUsageDetail_20' ) end [2025-01-24 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:36:20] Production.INFO: ==24832== Releasing lock... [2025-01-24 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:36:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:37:05 [end_date_ymd] => 2025-01-24 06:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:37:05' and `end` < '2025-01-24 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-24 06:37:17] Production.INFO: count ==106 [2025-01-24 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:37:05 - End Time 2025-01-24 06:37:05 [2025-01-24 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317870', 'tblTempUsageDetail_20' ) start [2025-01-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317870', 'tblTempUsageDetail_20' ) end [2025-01-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317870', 'tblTempVendorCDR_20' ) start [2025-01-24 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317870', 'tblTempVendorCDR_20' ) end [2025-01-24 06:37:17] Production.INFO: ProcessCDR(1,14317870,1,1,2) [2025-01-24 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317870', 'tblTempUsageDetail_20' ) start [2025-01-24 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317870', 'tblTempUsageDetail_20' ) end [2025-01-24 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:37:21] Production.INFO: ==24912== Releasing lock... [2025-01-24 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:38:06 [end_date_ymd] => 2025-01-24 06:38:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:38:06' and `end` < '2025-01-24 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-24 06:38:19] Production.INFO: count ==106 [2025-01-24 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:38:06 - End Time 2025-01-24 06:38:06 [2025-01-24 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317875', 'tblTempUsageDetail_20' ) start [2025-01-24 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317875', 'tblTempUsageDetail_20' ) end [2025-01-24 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317875', 'tblTempVendorCDR_20' ) start [2025-01-24 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317875', 'tblTempVendorCDR_20' ) end [2025-01-24 06:38:19] Production.INFO: ProcessCDR(1,14317875,1,1,2) [2025-01-24 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317875', 'tblTempUsageDetail_20' ) start [2025-01-24 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317875', 'tblTempUsageDetail_20' ) end [2025-01-24 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:38:22] Production.INFO: ==24993== Releasing lock... [2025-01-24 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:39:04 [end_date_ymd] => 2025-01-24 06:39:04 [RateCDR] => 1 ) [2025-01-24 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:39:04' and `end` < '2025-01-24 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:39:17] Production.INFO: count ==106 [2025-01-24 06:39:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:39:04 - End Time 2025-01-24 06:39:04 [2025-01-24 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317880', 'tblTempUsageDetail_20' ) start [2025-01-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317880', 'tblTempUsageDetail_20' ) end [2025-01-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317880', 'tblTempVendorCDR_20' ) start [2025-01-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317880', 'tblTempVendorCDR_20' ) end [2025-01-24 06:39:17] Production.INFO: ProcessCDR(1,14317880,1,1,2) [2025-01-24 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317880', 'tblTempUsageDetail_20' ) start [2025-01-24 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317880', 'tblTempUsageDetail_20' ) end [2025-01-24 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:39:20] Production.INFO: ==25074== Releasing lock... [2025-01-24 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:40:06 [end_date_ymd] => 2025-01-24 06:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:40:06' and `end` < '2025-01-24 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-24 06:40:19] Production.INFO: count ==108 [2025-01-24 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:40:06 - End Time 2025-01-24 06:40:06 [2025-01-24 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317886', 'tblTempUsageDetail_20' ) start [2025-01-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317886', 'tblTempUsageDetail_20' ) end [2025-01-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317886', 'tblTempVendorCDR_20' ) start [2025-01-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317886', 'tblTempVendorCDR_20' ) end [2025-01-24 06:40:19] Production.INFO: ProcessCDR(1,14317886,1,1,2) [2025-01-24 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317886', 'tblTempUsageDetail_20' ) start [2025-01-24 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317886', 'tblTempUsageDetail_20' ) end [2025-01-24 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:40:22] Production.INFO: ==25157== Releasing lock... [2025-01-24 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:41:05 [end_date_ymd] => 2025-01-24 06:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:41:05' and `end` < '2025-01-24 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-24 06:41:17] Production.INFO: count ==108 [2025-01-24 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:41:05 - End Time 2025-01-24 06:41:05 [2025-01-24 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317891', 'tblTempUsageDetail_20' ) start [2025-01-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317891', 'tblTempUsageDetail_20' ) end [2025-01-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317891', 'tblTempVendorCDR_20' ) start [2025-01-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317891', 'tblTempVendorCDR_20' ) end [2025-01-24 06:41:17] Production.INFO: ProcessCDR(1,14317891,1,1,2) [2025-01-24 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317891', 'tblTempUsageDetail_20' ) start [2025-01-24 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317891', 'tblTempUsageDetail_20' ) end [2025-01-24 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:41:20] Production.INFO: ==25248== Releasing lock... [2025-01-24 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:42:05 [end_date_ymd] => 2025-01-24 06:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:42:05' and `end` < '2025-01-24 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-24 06:42:19] Production.INFO: count ==108 [2025-01-24 06:42:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:42:05 - End Time 2025-01-24 06:42:05 [2025-01-24 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317896', 'tblTempUsageDetail_20' ) start [2025-01-24 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317896', 'tblTempUsageDetail_20' ) end [2025-01-24 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317896', 'tblTempVendorCDR_20' ) start [2025-01-24 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317896', 'tblTempVendorCDR_20' ) end [2025-01-24 06:42:19] Production.INFO: ProcessCDR(1,14317896,1,1,2) [2025-01-24 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317896', 'tblTempUsageDetail_20' ) start [2025-01-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317896', 'tblTempUsageDetail_20' ) end [2025-01-24 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:42:21] Production.INFO: ==25326== Releasing lock... [2025-01-24 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:43:05 [end_date_ymd] => 2025-01-24 06:43:05 [RateCDR] => 1 ) [2025-01-24 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:43:05' and `end` < '2025-01-24 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:43:18] Production.INFO: count ==108 [2025-01-24 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:43:05 - End Time 2025-01-24 06:43:05 [2025-01-24 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317901', 'tblTempUsageDetail_20' ) start [2025-01-24 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317901', 'tblTempUsageDetail_20' ) end [2025-01-24 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317901', 'tblTempVendorCDR_20' ) start [2025-01-24 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317901', 'tblTempVendorCDR_20' ) end [2025-01-24 06:43:18] Production.INFO: ProcessCDR(1,14317901,1,1,2) [2025-01-24 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317901', 'tblTempUsageDetail_20' ) start [2025-01-24 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317901', 'tblTempUsageDetail_20' ) end [2025-01-24 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:43:21] Production.INFO: ==25408== Releasing lock... [2025-01-24 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:44:05 [end_date_ymd] => 2025-01-24 06:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:44:05' and `end` < '2025-01-24 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-24 06:44:17] Production.INFO: count ==108 [2025-01-24 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:44:05 - End Time 2025-01-24 06:44:05 [2025-01-24 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317905', 'tblTempUsageDetail_20' ) start [2025-01-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317905', 'tblTempUsageDetail_20' ) end [2025-01-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317905', 'tblTempVendorCDR_20' ) start [2025-01-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317905', 'tblTempVendorCDR_20' ) end [2025-01-24 06:44:17] Production.INFO: ProcessCDR(1,14317905,1,1,2) [2025-01-24 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317905', 'tblTempUsageDetail_20' ) start [2025-01-24 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317905', 'tblTempUsageDetail_20' ) end [2025-01-24 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:44:20] Production.INFO: ==25485== Releasing lock... [2025-01-24 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:45:06 [end_date_ymd] => 2025-01-24 06:45:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:45:06' and `end` < '2025-01-24 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-24 06:45:18] Production.INFO: count ==108 [2025-01-24 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:45:06 - End Time 2025-01-24 06:45:06 [2025-01-24 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317911', 'tblTempUsageDetail_20' ) start [2025-01-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317911', 'tblTempUsageDetail_20' ) end [2025-01-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317911', 'tblTempVendorCDR_20' ) start [2025-01-24 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317911', 'tblTempVendorCDR_20' ) end [2025-01-24 06:45:18] Production.INFO: ProcessCDR(1,14317911,1,1,2) [2025-01-24 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317911', 'tblTempUsageDetail_20' ) start [2025-01-24 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317911', 'tblTempUsageDetail_20' ) end [2025-01-24 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:45:21] Production.INFO: ==25568== Releasing lock... [2025-01-24 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:46:05 [end_date_ymd] => 2025-01-24 06:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:46:05' and `end` < '2025-01-24 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-24 06:46:17] Production.INFO: count ==108 [2025-01-24 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:46:05 - End Time 2025-01-24 06:46:05 [2025-01-24 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317916', 'tblTempUsageDetail_20' ) start [2025-01-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317916', 'tblTempUsageDetail_20' ) end [2025-01-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317916', 'tblTempVendorCDR_20' ) start [2025-01-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317916', 'tblTempVendorCDR_20' ) end [2025-01-24 06:46:17] Production.INFO: ProcessCDR(1,14317916,1,1,2) [2025-01-24 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317916', 'tblTempUsageDetail_20' ) start [2025-01-24 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317916', 'tblTempUsageDetail_20' ) end [2025-01-24 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:46:20] Production.INFO: ==25648== Releasing lock... [2025-01-24 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:47:05 [end_date_ymd] => 2025-01-24 06:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:47:05' and `end` < '2025-01-24 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-24 06:47:18] Production.INFO: count ==108 [2025-01-24 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:47:05 - End Time 2025-01-24 06:47:05 [2025-01-24 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317921', 'tblTempUsageDetail_20' ) start [2025-01-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317921', 'tblTempUsageDetail_20' ) end [2025-01-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317921', 'tblTempVendorCDR_20' ) start [2025-01-24 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317921', 'tblTempVendorCDR_20' ) end [2025-01-24 06:47:18] Production.INFO: ProcessCDR(1,14317921,1,1,2) [2025-01-24 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317921', 'tblTempUsageDetail_20' ) start [2025-01-24 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317921', 'tblTempUsageDetail_20' ) end [2025-01-24 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:47:21] Production.INFO: ==25726== Releasing lock... [2025-01-24 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:48:05 [end_date_ymd] => 2025-01-24 06:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:48:05' and `end` < '2025-01-24 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-24 06:48:18] Production.INFO: count ==108 [2025-01-24 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:48:05 - End Time 2025-01-24 06:48:05 [2025-01-24 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317926', 'tblTempUsageDetail_20' ) start [2025-01-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317926', 'tblTempUsageDetail_20' ) end [2025-01-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317926', 'tblTempVendorCDR_20' ) start [2025-01-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317926', 'tblTempVendorCDR_20' ) end [2025-01-24 06:48:18] Production.INFO: ProcessCDR(1,14317926,1,1,2) [2025-01-24 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317926', 'tblTempUsageDetail_20' ) start [2025-01-24 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317926', 'tblTempUsageDetail_20' ) end [2025-01-24 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:48:21] Production.INFO: ==25806== Releasing lock... [2025-01-24 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:49:05 [end_date_ymd] => 2025-01-24 06:49:05 [RateCDR] => 1 ) [2025-01-24 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:49:05' and `end` < '2025-01-24 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:49:17] Production.INFO: count ==108 [2025-01-24 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:49:05 - End Time 2025-01-24 06:49:05 [2025-01-24 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317931', 'tblTempUsageDetail_20' ) start [2025-01-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317931', 'tblTempUsageDetail_20' ) end [2025-01-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317931', 'tblTempVendorCDR_20' ) start [2025-01-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317931', 'tblTempVendorCDR_20' ) end [2025-01-24 06:49:17] Production.INFO: ProcessCDR(1,14317931,1,1,2) [2025-01-24 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317931', 'tblTempUsageDetail_20' ) start [2025-01-24 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317931', 'tblTempUsageDetail_20' ) end [2025-01-24 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:49:20] Production.INFO: ==25887== Releasing lock... [2025-01-24 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:50:06 [end_date_ymd] => 2025-01-24 06:50:06 [RateCDR] => 1 ) [2025-01-24 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:50:06' and `end` < '2025-01-24 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:50:19] Production.INFO: count ==108 [2025-01-24 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:50:06 - End Time 2025-01-24 06:50:06 [2025-01-24 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317936', 'tblTempUsageDetail_20' ) start [2025-01-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317936', 'tblTempUsageDetail_20' ) end [2025-01-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317936', 'tblTempVendorCDR_20' ) start [2025-01-24 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317936', 'tblTempVendorCDR_20' ) end [2025-01-24 06:50:19] Production.INFO: ProcessCDR(1,14317936,1,1,2) [2025-01-24 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317936', 'tblTempUsageDetail_20' ) start [2025-01-24 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317936', 'tblTempUsageDetail_20' ) end [2025-01-24 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:50:22] Production.INFO: ==26004== Releasing lock... [2025-01-24 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:51:06 [end_date_ymd] => 2025-01-24 06:51:06 [RateCDR] => 1 ) [2025-01-24 06: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-24 03:51:06' and `end` < '2025-01-24 06: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-24 06:51:18] Production.INFO: count ==108 [2025-01-24 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:51:06 - End Time 2025-01-24 06:51:06 [2025-01-24 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317942', 'tblTempUsageDetail_20' ) start [2025-01-24 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317942', 'tblTempUsageDetail_20' ) end [2025-01-24 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317942', 'tblTempVendorCDR_20' ) start [2025-01-24 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317942', 'tblTempVendorCDR_20' ) end [2025-01-24 06:51:18] Production.INFO: ProcessCDR(1,14317942,1,1,2) [2025-01-24 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317942', 'tblTempUsageDetail_20' ) start [2025-01-24 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317942', 'tblTempUsageDetail_20' ) end [2025-01-24 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:51:21] Production.INFO: ==26088== Releasing lock... [2025-01-24 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:52:05 [end_date_ymd] => 2025-01-24 06:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:52:05' and `end` < '2025-01-24 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-24 06:52:17] Production.INFO: count ==108 [2025-01-24 06:52:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:52:05 - End Time 2025-01-24 06:52:05 [2025-01-24 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317947', 'tblTempUsageDetail_20' ) start [2025-01-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317947', 'tblTempUsageDetail_20' ) end [2025-01-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317947', 'tblTempVendorCDR_20' ) start [2025-01-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317947', 'tblTempVendorCDR_20' ) end [2025-01-24 06:52:17] Production.INFO: ProcessCDR(1,14317947,1,1,2) [2025-01-24 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317947', 'tblTempUsageDetail_20' ) start [2025-01-24 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317947', 'tblTempUsageDetail_20' ) end [2025-01-24 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:52:20] Production.INFO: ==26166== Releasing lock... [2025-01-24 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:53:05 [end_date_ymd] => 2025-01-24 06:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:53:05' and `end` < '2025-01-24 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-24 06:53:19] Production.INFO: count ==108 [2025-01-24 06:53:19] Production.ERROR: pbx CDR StartTime 2025-01-24 03:53:05 - End Time 2025-01-24 06:53:05 [2025-01-24 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317952', 'tblTempUsageDetail_20' ) start [2025-01-24 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317952', 'tblTempUsageDetail_20' ) end [2025-01-24 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317952', 'tblTempVendorCDR_20' ) start [2025-01-24 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317952', 'tblTempVendorCDR_20' ) end [2025-01-24 06:53:19] Production.INFO: ProcessCDR(1,14317952,1,1,2) [2025-01-24 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317952', 'tblTempUsageDetail_20' ) start [2025-01-24 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317952', 'tblTempUsageDetail_20' ) end [2025-01-24 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:53:22] Production.INFO: ==26246== Releasing lock... [2025-01-24 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:54:05 [end_date_ymd] => 2025-01-24 06:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:54:05' and `end` < '2025-01-24 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-24 06:54:17] Production.INFO: count ==108 [2025-01-24 06:54:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:54:05 - End Time 2025-01-24 06:54:05 [2025-01-24 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317957', 'tblTempUsageDetail_20' ) start [2025-01-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317957', 'tblTempUsageDetail_20' ) end [2025-01-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317957', 'tblTempVendorCDR_20' ) start [2025-01-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317957', 'tblTempVendorCDR_20' ) end [2025-01-24 06:54:17] Production.INFO: ProcessCDR(1,14317957,1,1,2) [2025-01-24 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317957', 'tblTempUsageDetail_20' ) start [2025-01-24 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317957', 'tblTempUsageDetail_20' ) end [2025-01-24 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:54:20] Production.INFO: ==26324== Releasing lock... [2025-01-24 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:55:05 [end_date_ymd] => 2025-01-24 06:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:55:05' and `end` < '2025-01-24 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-24 06:55:18] Production.INFO: count ==108 [2025-01-24 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:55:05 - End Time 2025-01-24 06:55:05 [2025-01-24 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317962', 'tblTempUsageDetail_20' ) start [2025-01-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317962', 'tblTempUsageDetail_20' ) end [2025-01-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317962', 'tblTempVendorCDR_20' ) start [2025-01-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317962', 'tblTempVendorCDR_20' ) end [2025-01-24 06:55:18] Production.INFO: ProcessCDR(1,14317962,1,1,2) [2025-01-24 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317962', 'tblTempUsageDetail_20' ) start [2025-01-24 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317962', 'tblTempUsageDetail_20' ) end [2025-01-24 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:55:21] Production.INFO: ==26401== Releasing lock... [2025-01-24 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:56:05 [end_date_ymd] => 2025-01-24 06:56:05 [RateCDR] => 1 ) [2025-01-24 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 03:56:05' and `end` < '2025-01-24 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:56:17] Production.INFO: count ==107 [2025-01-24 06:56:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:56:05 - End Time 2025-01-24 06:56:05 [2025-01-24 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317967', 'tblTempUsageDetail_20' ) start [2025-01-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317967', 'tblTempUsageDetail_20' ) end [2025-01-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317967', 'tblTempVendorCDR_20' ) start [2025-01-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317967', 'tblTempVendorCDR_20' ) end [2025-01-24 06:56:17] Production.INFO: ProcessCDR(1,14317967,1,1,2) [2025-01-24 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317967', 'tblTempUsageDetail_20' ) start [2025-01-24 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317967', 'tblTempUsageDetail_20' ) end [2025-01-24 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:56:20] Production.INFO: ==26481== Releasing lock... [2025-01-24 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:57:06 [end_date_ymd] => 2025-01-24 06:57:06 [RateCDR] => 1 ) [2025-01-24 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-24 03:57:06' and `end` < '2025-01-24 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-24 06:57:18] Production.INFO: count ==107 [2025-01-24 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:57:06 - End Time 2025-01-24 06:57:06 [2025-01-24 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317972', 'tblTempUsageDetail_20' ) start [2025-01-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317972', 'tblTempUsageDetail_20' ) end [2025-01-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317972', 'tblTempVendorCDR_20' ) start [2025-01-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317972', 'tblTempVendorCDR_20' ) end [2025-01-24 06:57:18] Production.INFO: ProcessCDR(1,14317972,1,1,2) [2025-01-24 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317972', 'tblTempUsageDetail_20' ) start [2025-01-24 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317972', 'tblTempUsageDetail_20' ) end [2025-01-24 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:57:21] Production.INFO: ==26563== Releasing lock... [2025-01-24 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:58:05 [end_date_ymd] => 2025-01-24 06:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:58:05' and `end` < '2025-01-24 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 06:58:17] Production.INFO: count ==107 [2025-01-24 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-24 03:58:05 - End Time 2025-01-24 06:58:05 [2025-01-24 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317977', 'tblTempUsageDetail_20' ) start [2025-01-24 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317977', 'tblTempUsageDetail_20' ) end [2025-01-24 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317977', 'tblTempVendorCDR_20' ) start [2025-01-24 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317977', 'tblTempVendorCDR_20' ) end [2025-01-24 06:58:17] Production.INFO: ProcessCDR(1,14317977,1,1,2) [2025-01-24 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317977', 'tblTempUsageDetail_20' ) start [2025-01-24 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317977', 'tblTempUsageDetail_20' ) end [2025-01-24 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:58:20] Production.INFO: ==26641== Releasing lock... [2025-01-24 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 03:59:05 [end_date_ymd] => 2025-01-24 06:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 03:59:05' and `end` < '2025-01-24 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-24 06:59:18] Production.INFO: count ==107 [2025-01-24 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 03:59:05 - End Time 2025-01-24 06:59:05 [2025-01-24 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317982', 'tblTempUsageDetail_20' ) start [2025-01-24 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317982', 'tblTempUsageDetail_20' ) end [2025-01-24 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317982', 'tblTempVendorCDR_20' ) start [2025-01-24 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317982', 'tblTempVendorCDR_20' ) end [2025-01-24 06:59:18] Production.INFO: ProcessCDR(1,14317982,1,1,2) [2025-01-24 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317982', 'tblTempUsageDetail_20' ) start [2025-01-24 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317982', 'tblTempUsageDetail_20' ) end [2025-01-24 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 06:59:21] Production.INFO: ==26725== Releasing lock... [2025-01-24 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:00:05 [end_date_ymd] => 2025-01-24 07:00:05 [RateCDR] => 1 ) [2025-01-24 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:00:05' and `end` < '2025-01-24 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:00:18] Production.INFO: count ==107 [2025-01-24 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:00:05 - End Time 2025-01-24 07:00:05 [2025-01-24 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317987', 'tblTempUsageDetail_20' ) start [2025-01-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317987', 'tblTempUsageDetail_20' ) end [2025-01-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317987', 'tblTempVendorCDR_20' ) start [2025-01-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317987', 'tblTempVendorCDR_20' ) end [2025-01-24 07:00:18] Production.INFO: ProcessCDR(1,14317987,1,1,2) [2025-01-24 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317987', 'tblTempUsageDetail_20' ) start [2025-01-24 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317987', 'tblTempUsageDetail_20' ) end [2025-01-24 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:00:21] Production.INFO: ==26809== Releasing lock... [2025-01-24 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:01:06 [end_date_ymd] => 2025-01-24 07:01:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:01:06' and `end` < '2025-01-24 07: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-24 07:01:23] Production.INFO: count ==107 [2025-01-24 07:01:23] Production.ERROR: pbx CDR StartTime 2025-01-24 04:01:06 - End Time 2025-01-24 07:01:06 [2025-01-24 07:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317993', 'tblTempUsageDetail_20' ) start [2025-01-24 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317993', 'tblTempUsageDetail_20' ) end [2025-01-24 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317993', 'tblTempVendorCDR_20' ) start [2025-01-24 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317993', 'tblTempVendorCDR_20' ) end [2025-01-24 07:01:23] Production.INFO: ProcessCDR(1,14317993,1,1,2) [2025-01-24 07:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317993', 'tblTempUsageDetail_20' ) start [2025-01-24 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317993', 'tblTempUsageDetail_20' ) end [2025-01-24 07:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:01:26] Production.INFO: ==26983== Releasing lock... [2025-01-24 07:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:01:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:02:05 [end_date_ymd] => 2025-01-24 07:02:05 [RateCDR] => 1 ) [2025-01-24 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:02:05' and `end` < '2025-01-24 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:02:19] Production.INFO: count ==107 [2025-01-24 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:02:05 - End Time 2025-01-24 07:02:05 [2025-01-24 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317998', 'tblTempUsageDetail_20' ) start [2025-01-24 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14317998', 'tblTempUsageDetail_20' ) end [2025-01-24 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317998', 'tblTempVendorCDR_20' ) start [2025-01-24 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14317998', 'tblTempVendorCDR_20' ) end [2025-01-24 07:02:19] Production.INFO: ProcessCDR(1,14317998,1,1,2) [2025-01-24 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14317998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14317998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14317998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14317998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317998', 'tblTempUsageDetail_20' ) start [2025-01-24 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14317998', 'tblTempUsageDetail_20' ) end [2025-01-24 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:02:23] Production.INFO: ==27058== Releasing lock... [2025-01-24 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:03:06 [end_date_ymd] => 2025-01-24 07:03:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:03:06' and `end` < '2025-01-24 07: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-24 07:03:20] Production.INFO: count ==106 [2025-01-24 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:03:06 - End Time 2025-01-24 07:03:06 [2025-01-24 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318003', 'tblTempUsageDetail_20' ) start [2025-01-24 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318003', 'tblTempUsageDetail_20' ) end [2025-01-24 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318003', 'tblTempVendorCDR_20' ) start [2025-01-24 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318003', 'tblTempVendorCDR_20' ) end [2025-01-24 07:03:20] Production.INFO: ProcessCDR(1,14318003,1,1,2) [2025-01-24 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318003', 'tblTempUsageDetail_20' ) start [2025-01-24 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318003', 'tblTempUsageDetail_20' ) end [2025-01-24 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:03:24] Production.INFO: ==27136== Releasing lock... [2025-01-24 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:03:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:04:05 [end_date_ymd] => 2025-01-24 07:04:05 [RateCDR] => 1 ) [2025-01-24 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:04:05' and `end` < '2025-01-24 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:04:20] Production.INFO: count ==104 [2025-01-24 07:04:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:04:05 - End Time 2025-01-24 07:04:05 [2025-01-24 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318008', 'tblTempUsageDetail_20' ) start [2025-01-24 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318008', 'tblTempUsageDetail_20' ) end [2025-01-24 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318008', 'tblTempVendorCDR_20' ) start [2025-01-24 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318008', 'tblTempVendorCDR_20' ) end [2025-01-24 07:04:20] Production.INFO: ProcessCDR(1,14318008,1,1,2) [2025-01-24 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318008', 'tblTempUsageDetail_20' ) start [2025-01-24 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318008', 'tblTempUsageDetail_20' ) end [2025-01-24 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:04:24] Production.INFO: ==27217== Releasing lock... [2025-01-24 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:04:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:05:06 [end_date_ymd] => 2025-01-24 07:05:06 [RateCDR] => 1 ) [2025-01-24 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:05:06' and `end` < '2025-01-24 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:05:20] Production.INFO: count ==104 [2025-01-24 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:05:06 - End Time 2025-01-24 07:05:06 [2025-01-24 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318013', 'tblTempUsageDetail_20' ) start [2025-01-24 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318013', 'tblTempUsageDetail_20' ) end [2025-01-24 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318013', 'tblTempVendorCDR_20' ) start [2025-01-24 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318013', 'tblTempVendorCDR_20' ) end [2025-01-24 07:05:21] Production.INFO: ProcessCDR(1,14318013,1,1,2) [2025-01-24 07:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318013', 'tblTempUsageDetail_20' ) start [2025-01-24 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318013', 'tblTempUsageDetail_20' ) end [2025-01-24 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:05:24] Production.INFO: ==27373== Releasing lock... [2025-01-24 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:05:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:06:06 [end_date_ymd] => 2025-01-24 07:06:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:06:06' and `end` < '2025-01-24 07: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-24 07:06:20] Production.INFO: count ==104 [2025-01-24 07:06:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:06:06 - End Time 2025-01-24 07:06:06 [2025-01-24 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318018', 'tblTempUsageDetail_20' ) start [2025-01-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318018', 'tblTempUsageDetail_20' ) end [2025-01-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318018', 'tblTempVendorCDR_20' ) start [2025-01-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318018', 'tblTempVendorCDR_20' ) end [2025-01-24 07:06:20] Production.INFO: ProcessCDR(1,14318018,1,1,2) [2025-01-24 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318018', 'tblTempUsageDetail_20' ) start [2025-01-24 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318018', 'tblTempUsageDetail_20' ) end [2025-01-24 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:06:23] Production.INFO: ==27491== Releasing lock... [2025-01-24 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:06:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:07:05 [end_date_ymd] => 2025-01-24 07:07:05 [RateCDR] => 1 ) [2025-01-24 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:07:05' and `end` < '2025-01-24 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-24 07:07:19] Production.INFO: count ==104 [2025-01-24 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:07:05 - End Time 2025-01-24 07:07:05 [2025-01-24 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318023', 'tblTempUsageDetail_20' ) start [2025-01-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318023', 'tblTempUsageDetail_20' ) end [2025-01-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318023', 'tblTempVendorCDR_20' ) start [2025-01-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318023', 'tblTempVendorCDR_20' ) end [2025-01-24 07:07:19] Production.INFO: ProcessCDR(1,14318023,1,1,2) [2025-01-24 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318023', 'tblTempUsageDetail_20' ) start [2025-01-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318023', 'tblTempUsageDetail_20' ) end [2025-01-24 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:07:22] Production.INFO: ==27566== Releasing lock... [2025-01-24 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:08:06 [end_date_ymd] => 2025-01-24 07:08:06 [RateCDR] => 1 ) [2025-01-24 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:08:06' and `end` < '2025-01-24 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:08:21] Production.INFO: count ==104 [2025-01-24 07:08:21] Production.ERROR: pbx CDR StartTime 2025-01-24 04:08:06 - End Time 2025-01-24 07:08:06 [2025-01-24 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318028', 'tblTempUsageDetail_20' ) start [2025-01-24 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318028', 'tblTempUsageDetail_20' ) end [2025-01-24 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318028', 'tblTempVendorCDR_20' ) start [2025-01-24 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318028', 'tblTempVendorCDR_20' ) end [2025-01-24 07:08:21] Production.INFO: ProcessCDR(1,14318028,1,1,2) [2025-01-24 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318028', 'tblTempUsageDetail_20' ) start [2025-01-24 07:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318028', 'tblTempUsageDetail_20' ) end [2025-01-24 07:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:08:25] Production.INFO: ==27727== Releasing lock... [2025-01-24 07:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:08:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:09:05 [end_date_ymd] => 2025-01-24 07:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:09:05' and `end` < '2025-01-24 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-24 07:09:22] Production.INFO: count ==104 [2025-01-24 07:09:22] Production.ERROR: pbx CDR StartTime 2025-01-24 04:09:05 - End Time 2025-01-24 07:09:05 [2025-01-24 07:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318033', 'tblTempUsageDetail_20' ) start [2025-01-24 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318033', 'tblTempUsageDetail_20' ) end [2025-01-24 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318033', 'tblTempVendorCDR_20' ) start [2025-01-24 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318033', 'tblTempVendorCDR_20' ) end [2025-01-24 07:09:22] Production.INFO: ProcessCDR(1,14318033,1,1,2) [2025-01-24 07:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318033', 'tblTempUsageDetail_20' ) start [2025-01-24 07:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318033', 'tblTempUsageDetail_20' ) end [2025-01-24 07:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:09:26] Production.INFO: ==27807== Releasing lock... [2025-01-24 07:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:09:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:10:07 [end_date_ymd] => 2025-01-24 07:10:07 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:10:07' and `end` < '2025-01-24 07: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-24 07:10:21] Production.INFO: count ==104 [2025-01-24 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-24 04:10:07 - End Time 2025-01-24 07:10:07 [2025-01-24 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318039', 'tblTempUsageDetail_20' ) start [2025-01-24 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318039', 'tblTempUsageDetail_20' ) end [2025-01-24 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318039', 'tblTempVendorCDR_20' ) start [2025-01-24 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318039', 'tblTempVendorCDR_20' ) end [2025-01-24 07:10:21] Production.INFO: ProcessCDR(1,14318039,1,1,2) [2025-01-24 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318039', 'tblTempUsageDetail_20' ) start [2025-01-24 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318039', 'tblTempUsageDetail_20' ) end [2025-01-24 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:10:25] Production.INFO: ==27888== Releasing lock... [2025-01-24 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:10:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:11:05 [end_date_ymd] => 2025-01-24 07:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:11:05' and `end` < '2025-01-24 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-24 07:11:19] Production.INFO: count ==104 [2025-01-24 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:11:05 - End Time 2025-01-24 07:11:05 [2025-01-24 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318044', 'tblTempUsageDetail_20' ) start [2025-01-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318044', 'tblTempUsageDetail_20' ) end [2025-01-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318044', 'tblTempVendorCDR_20' ) start [2025-01-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318044', 'tblTempVendorCDR_20' ) end [2025-01-24 07:11:19] Production.INFO: ProcessCDR(1,14318044,1,1,2) [2025-01-24 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318044', 'tblTempUsageDetail_20' ) start [2025-01-24 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318044', 'tblTempUsageDetail_20' ) end [2025-01-24 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:11:22] Production.INFO: ==27965== Releasing lock... [2025-01-24 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:12:05 [end_date_ymd] => 2025-01-24 07:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:12:05' and `end` < '2025-01-24 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-24 07:12:19] Production.INFO: count ==104 [2025-01-24 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:12:05 - End Time 2025-01-24 07:12:05 [2025-01-24 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318049', 'tblTempUsageDetail_20' ) start [2025-01-24 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318049', 'tblTempUsageDetail_20' ) end [2025-01-24 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318049', 'tblTempVendorCDR_20' ) start [2025-01-24 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318049', 'tblTempVendorCDR_20' ) end [2025-01-24 07:12:19] Production.INFO: ProcessCDR(1,14318049,1,1,2) [2025-01-24 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318049', 'tblTempUsageDetail_20' ) start [2025-01-24 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318049', 'tblTempUsageDetail_20' ) end [2025-01-24 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:12:23] Production.INFO: ==28116== Releasing lock... [2025-01-24 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:12:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:13:05 [end_date_ymd] => 2025-01-24 07:13:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:13:05' and `end` < '2025-01-24 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-24 07:13:19] Production.INFO: count ==104 [2025-01-24 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:13:05 - End Time 2025-01-24 07:13:05 [2025-01-24 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318054', 'tblTempUsageDetail_20' ) start [2025-01-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318054', 'tblTempUsageDetail_20' ) end [2025-01-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318054', 'tblTempVendorCDR_20' ) start [2025-01-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318054', 'tblTempVendorCDR_20' ) end [2025-01-24 07:13:19] Production.INFO: ProcessCDR(1,14318054,1,1,2) [2025-01-24 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318054', 'tblTempUsageDetail_20' ) start [2025-01-24 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318054', 'tblTempUsageDetail_20' ) end [2025-01-24 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:13:23] Production.INFO: ==28190== Releasing lock... [2025-01-24 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:14:06 [end_date_ymd] => 2025-01-24 07:14:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:14:06' and `end` < '2025-01-24 07: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-24 07:14:19] Production.INFO: count ==104 [2025-01-24 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:14:06 - End Time 2025-01-24 07:14:06 [2025-01-24 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318059', 'tblTempUsageDetail_20' ) start [2025-01-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318059', 'tblTempUsageDetail_20' ) end [2025-01-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318059', 'tblTempVendorCDR_20' ) start [2025-01-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318059', 'tblTempVendorCDR_20' ) end [2025-01-24 07:14:19] Production.INFO: ProcessCDR(1,14318059,1,1,2) [2025-01-24 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318059', 'tblTempUsageDetail_20' ) start [2025-01-24 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318059', 'tblTempUsageDetail_20' ) end [2025-01-24 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:14:23] Production.INFO: ==28271== Releasing lock... [2025-01-24 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:15:05 [end_date_ymd] => 2025-01-24 07:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:15:05' and `end` < '2025-01-24 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-24 07:15:19] Production.INFO: count ==104 [2025-01-24 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:15:05 - End Time 2025-01-24 07:15:05 [2025-01-24 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318064', 'tblTempUsageDetail_20' ) start [2025-01-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318064', 'tblTempUsageDetail_20' ) end [2025-01-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318064', 'tblTempVendorCDR_20' ) start [2025-01-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318064', 'tblTempVendorCDR_20' ) end [2025-01-24 07:15:19] Production.INFO: ProcessCDR(1,14318064,1,1,2) [2025-01-24 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318064', 'tblTempUsageDetail_20' ) start [2025-01-24 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318064', 'tblTempUsageDetail_20' ) end [2025-01-24 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:15:22] Production.INFO: ==28418== Releasing lock... [2025-01-24 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:16:06 [end_date_ymd] => 2025-01-24 07:16:06 [RateCDR] => 1 ) [2025-01-24 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:16:06' and `end` < '2025-01-24 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:16:20] Production.INFO: count ==106 [2025-01-24 07:16:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:16:06 - End Time 2025-01-24 07:16:06 [2025-01-24 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318069', 'tblTempUsageDetail_20' ) start [2025-01-24 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318069', 'tblTempUsageDetail_20' ) end [2025-01-24 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318069', 'tblTempVendorCDR_20' ) start [2025-01-24 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318069', 'tblTempVendorCDR_20' ) end [2025-01-24 07:16:20] Production.INFO: ProcessCDR(1,14318069,1,1,2) [2025-01-24 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318069', 'tblTempUsageDetail_20' ) start [2025-01-24 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318069', 'tblTempUsageDetail_20' ) end [2025-01-24 07:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:16:25] Production.INFO: ==28496== Releasing lock... [2025-01-24 07:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:16:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:17:06 [end_date_ymd] => 2025-01-24 07:17:06 [RateCDR] => 1 ) [2025-01-24 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:17:06' and `end` < '2025-01-24 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:17:19] Production.INFO: count ==106 [2025-01-24 07:17:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:17:06 - End Time 2025-01-24 07:17:06 [2025-01-24 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318074', 'tblTempUsageDetail_20' ) start [2025-01-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318074', 'tblTempUsageDetail_20' ) end [2025-01-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318074', 'tblTempVendorCDR_20' ) start [2025-01-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318074', 'tblTempVendorCDR_20' ) end [2025-01-24 07:17:19] Production.INFO: ProcessCDR(1,14318074,1,1,2) [2025-01-24 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318074', 'tblTempUsageDetail_20' ) start [2025-01-24 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318074', 'tblTempUsageDetail_20' ) end [2025-01-24 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:17:22] Production.INFO: ==28565== Releasing lock... [2025-01-24 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:18:06 [end_date_ymd] => 2025-01-24 07:18:06 [RateCDR] => 1 ) [2025-01-24 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:18:06' and `end` < '2025-01-24 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:18:19] Production.INFO: count ==106 [2025-01-24 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:18:06 - End Time 2025-01-24 07:18:06 [2025-01-24 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318079', 'tblTempUsageDetail_20' ) start [2025-01-24 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318079', 'tblTempUsageDetail_20' ) end [2025-01-24 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318079', 'tblTempVendorCDR_20' ) start [2025-01-24 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318079', 'tblTempVendorCDR_20' ) end [2025-01-24 07:18:19] Production.INFO: ProcessCDR(1,14318079,1,1,2) [2025-01-24 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318079', 'tblTempUsageDetail_20' ) start [2025-01-24 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318079', 'tblTempUsageDetail_20' ) end [2025-01-24 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:18:23] Production.INFO: ==28638== Releasing lock... [2025-01-24 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:19:05 [end_date_ymd] => 2025-01-24 07:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:19:05' and `end` < '2025-01-24 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-24 07:19:18] Production.INFO: count ==106 [2025-01-24 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:19:05 - End Time 2025-01-24 07:19:05 [2025-01-24 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318084', 'tblTempUsageDetail_20' ) start [2025-01-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318084', 'tblTempUsageDetail_20' ) end [2025-01-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318084', 'tblTempVendorCDR_20' ) start [2025-01-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318084', 'tblTempVendorCDR_20' ) end [2025-01-24 07:19:18] Production.INFO: ProcessCDR(1,14318084,1,1,2) [2025-01-24 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318084', 'tblTempUsageDetail_20' ) start [2025-01-24 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318084', 'tblTempUsageDetail_20' ) end [2025-01-24 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:19:21] Production.INFO: ==28713== Releasing lock... [2025-01-24 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:20:07 [end_date_ymd] => 2025-01-24 07:20:07 [RateCDR] => 1 ) [2025-01-24 07:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:20:07' and `end` < '2025-01-24 07:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:20:20] Production.INFO: count ==98 [2025-01-24 07:20:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:20:07 - End Time 2025-01-24 07:20:07 [2025-01-24 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318090', 'tblTempUsageDetail_20' ) start [2025-01-24 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318090', 'tblTempUsageDetail_20' ) end [2025-01-24 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318090', 'tblTempVendorCDR_20' ) start [2025-01-24 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318090', 'tblTempVendorCDR_20' ) end [2025-01-24 07:20:20] Production.INFO: ProcessCDR(1,14318090,1,1,2) [2025-01-24 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318090', 'tblTempUsageDetail_20' ) start [2025-01-24 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318090', 'tblTempUsageDetail_20' ) end [2025-01-24 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:20:24] Production.INFO: ==28790== Releasing lock... [2025-01-24 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:20:24] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:21:05 [end_date_ymd] => 2025-01-24 07:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:21:05' and `end` < '2025-01-24 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-24 07:21:19] Production.INFO: count ==98 [2025-01-24 07:21:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:21:05 - End Time 2025-01-24 07:21:05 [2025-01-24 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318095', 'tblTempUsageDetail_20' ) start [2025-01-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318095', 'tblTempUsageDetail_20' ) end [2025-01-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318095', 'tblTempVendorCDR_20' ) start [2025-01-24 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318095', 'tblTempVendorCDR_20' ) end [2025-01-24 07:21:19] Production.INFO: ProcessCDR(1,14318095,1,1,2) [2025-01-24 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318095', 'tblTempUsageDetail_20' ) start [2025-01-24 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318095', 'tblTempUsageDetail_20' ) end [2025-01-24 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:21:23] Production.INFO: ==28906== Releasing lock... [2025-01-24 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:21:23] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:22:06 [end_date_ymd] => 2025-01-24 07:22:06 [RateCDR] => 1 ) [2025-01-24 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-24 04:22:06' and `end` < '2025-01-24 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-24 07:22:19] Production.INFO: count ==98 [2025-01-24 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:22:06 - End Time 2025-01-24 07:22:06 [2025-01-24 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318100', 'tblTempUsageDetail_20' ) start [2025-01-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318100', 'tblTempUsageDetail_20' ) end [2025-01-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318100', 'tblTempVendorCDR_20' ) start [2025-01-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318100', 'tblTempVendorCDR_20' ) end [2025-01-24 07:22:19] Production.INFO: ProcessCDR(1,14318100,1,1,2) [2025-01-24 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318100', 'tblTempUsageDetail_20' ) start [2025-01-24 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318100', 'tblTempUsageDetail_20' ) end [2025-01-24 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:22:22] Production.INFO: ==28977== Releasing lock... [2025-01-24 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:23:06 [end_date_ymd] => 2025-01-24 07:23:06 [RateCDR] => 1 ) [2025-01-24 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:23:06' and `end` < '2025-01-24 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:23:20] Production.INFO: count ==98 [2025-01-24 07:23:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:23:06 - End Time 2025-01-24 07:23:06 [2025-01-24 07:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318105', 'tblTempUsageDetail_20' ) start [2025-01-24 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318105', 'tblTempUsageDetail_20' ) end [2025-01-24 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318105', 'tblTempVendorCDR_20' ) start [2025-01-24 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318105', 'tblTempVendorCDR_20' ) end [2025-01-24 07:23:20] Production.INFO: ProcessCDR(1,14318105,1,1,2) [2025-01-24 07:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318105', 'tblTempUsageDetail_20' ) start [2025-01-24 07:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318105', 'tblTempUsageDetail_20' ) end [2025-01-24 07:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:23:24] Production.INFO: ==29053== Releasing lock... [2025-01-24 07:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:23:24] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:24:05 [end_date_ymd] => 2025-01-24 07:24:05 [RateCDR] => 1 ) [2025-01-24 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:24:05' and `end` < '2025-01-24 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:24:18] Production.INFO: count ==98 [2025-01-24 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:24:05 - End Time 2025-01-24 07:24:05 [2025-01-24 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318110', 'tblTempUsageDetail_20' ) start [2025-01-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318110', 'tblTempUsageDetail_20' ) end [2025-01-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318110', 'tblTempVendorCDR_20' ) start [2025-01-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318110', 'tblTempVendorCDR_20' ) end [2025-01-24 07:24:18] Production.INFO: ProcessCDR(1,14318110,1,1,2) [2025-01-24 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318110', 'tblTempUsageDetail_20' ) start [2025-01-24 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318110', 'tblTempUsageDetail_20' ) end [2025-01-24 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:24:22] Production.INFO: ==29125== Releasing lock... [2025-01-24 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:25:05 [end_date_ymd] => 2025-01-24 07:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:25:05' and `end` < '2025-01-24 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-24 07:25:18] Production.INFO: count ==98 [2025-01-24 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:25:05 - End Time 2025-01-24 07:25:05 [2025-01-24 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318115', 'tblTempUsageDetail_20' ) start [2025-01-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318115', 'tblTempUsageDetail_20' ) end [2025-01-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318115', 'tblTempVendorCDR_20' ) start [2025-01-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318115', 'tblTempVendorCDR_20' ) end [2025-01-24 07:25:18] Production.INFO: ProcessCDR(1,14318115,1,1,2) [2025-01-24 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318115', 'tblTempUsageDetail_20' ) start [2025-01-24 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318115', 'tblTempUsageDetail_20' ) end [2025-01-24 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:25:21] Production.INFO: ==29198== Releasing lock... [2025-01-24 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:26:05 [end_date_ymd] => 2025-01-24 07:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:26:05' and `end` < '2025-01-24 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-24 07:26:17] Production.INFO: count ==98 [2025-01-24 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-24 04:26:05 - End Time 2025-01-24 07:26:05 [2025-01-24 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318120', 'tblTempUsageDetail_20' ) start [2025-01-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318120', 'tblTempUsageDetail_20' ) end [2025-01-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318120', 'tblTempVendorCDR_20' ) start [2025-01-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318120', 'tblTempVendorCDR_20' ) end [2025-01-24 07:26:17] Production.INFO: ProcessCDR(1,14318120,1,1,2) [2025-01-24 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318120', 'tblTempUsageDetail_20' ) start [2025-01-24 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318120', 'tblTempUsageDetail_20' ) end [2025-01-24 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:26:21] Production.INFO: ==29268== Releasing lock... [2025-01-24 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:27:06 [end_date_ymd] => 2025-01-24 07:27:06 [RateCDR] => 1 ) [2025-01-24 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:27:06' and `end` < '2025-01-24 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:27:20] Production.INFO: count ==99 [2025-01-24 07:27:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:27:06 - End Time 2025-01-24 07:27:06 [2025-01-24 07:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318125', 'tblTempUsageDetail_20' ) start [2025-01-24 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318125', 'tblTempUsageDetail_20' ) end [2025-01-24 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318125', 'tblTempVendorCDR_20' ) start [2025-01-24 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318125', 'tblTempVendorCDR_20' ) end [2025-01-24 07:27:20] Production.INFO: ProcessCDR(1,14318125,1,1,2) [2025-01-24 07:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318125', 'tblTempUsageDetail_20' ) start [2025-01-24 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318125', 'tblTempUsageDetail_20' ) end [2025-01-24 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:27:23] Production.INFO: ==29340== Releasing lock... [2025-01-24 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:27:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:28:05 [end_date_ymd] => 2025-01-24 07:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:28:05' and `end` < '2025-01-24 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-24 07:28:17] Production.INFO: count ==99 [2025-01-24 07:28:17] Production.ERROR: pbx CDR StartTime 2025-01-24 04:28:05 - End Time 2025-01-24 07:28:05 [2025-01-24 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318130', 'tblTempUsageDetail_20' ) start [2025-01-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318130', 'tblTempUsageDetail_20' ) end [2025-01-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318130', 'tblTempVendorCDR_20' ) start [2025-01-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318130', 'tblTempVendorCDR_20' ) end [2025-01-24 07:28:17] Production.INFO: ProcessCDR(1,14318130,1,1,2) [2025-01-24 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318130', 'tblTempUsageDetail_20' ) start [2025-01-24 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318130', 'tblTempUsageDetail_20' ) end [2025-01-24 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:28:21] Production.INFO: ==29412== Releasing lock... [2025-01-24 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:29:05 [end_date_ymd] => 2025-01-24 07:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:29:05' and `end` < '2025-01-24 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-24 07:29:18] Production.INFO: count ==99 [2025-01-24 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:29:05 - End Time 2025-01-24 07:29:05 [2025-01-24 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318135', 'tblTempUsageDetail_20' ) start [2025-01-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318135', 'tblTempUsageDetail_20' ) end [2025-01-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318135', 'tblTempVendorCDR_20' ) start [2025-01-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318135', 'tblTempVendorCDR_20' ) end [2025-01-24 07:29:18] Production.INFO: ProcessCDR(1,14318135,1,1,2) [2025-01-24 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318135', 'tblTempUsageDetail_20' ) start [2025-01-24 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318135', 'tblTempUsageDetail_20' ) end [2025-01-24 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:29:21] Production.INFO: ==29487== Releasing lock... [2025-01-24 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:30:06 [end_date_ymd] => 2025-01-24 07:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 04:30:06' and `end` < '2025-01-24 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-24 07:30:19] Production.INFO: count ==96 [2025-01-24 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:30:06 - End Time 2025-01-24 07:30:06 [2025-01-24 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318140', 'tblTempUsageDetail_20' ) start [2025-01-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318140', 'tblTempUsageDetail_20' ) end [2025-01-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318140', 'tblTempVendorCDR_20' ) start [2025-01-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318140', 'tblTempVendorCDR_20' ) end [2025-01-24 07:30:19] Production.INFO: ProcessCDR(1,14318140,1,1,2) [2025-01-24 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318140', 'tblTempUsageDetail_20' ) start [2025-01-24 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318140', 'tblTempUsageDetail_20' ) end [2025-01-24 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:30:22] Production.INFO: ==29565== Releasing lock... [2025-01-24 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:31:05 [end_date_ymd] => 2025-01-24 07:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:31:05' and `end` < '2025-01-24 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-24 07:31:18] Production.INFO: count ==96 [2025-01-24 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:31:05 - End Time 2025-01-24 07:31:05 [2025-01-24 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318146', 'tblTempUsageDetail_20' ) start [2025-01-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318146', 'tblTempUsageDetail_20' ) end [2025-01-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318146', 'tblTempVendorCDR_20' ) start [2025-01-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318146', 'tblTempVendorCDR_20' ) end [2025-01-24 07:31:18] Production.INFO: ProcessCDR(1,14318146,1,1,2) [2025-01-24 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318146', 'tblTempUsageDetail_20' ) start [2025-01-24 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318146', 'tblTempUsageDetail_20' ) end [2025-01-24 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:31:21] Production.INFO: ==29642== Releasing lock... [2025-01-24 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:32:05 [end_date_ymd] => 2025-01-24 07:32:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:32:05' and `end` < '2025-01-24 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-24 07:32:18] Production.INFO: count ==96 [2025-01-24 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:32:05 - End Time 2025-01-24 07:32:05 [2025-01-24 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318151', 'tblTempUsageDetail_20' ) start [2025-01-24 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318151', 'tblTempUsageDetail_20' ) end [2025-01-24 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318151', 'tblTempVendorCDR_20' ) start [2025-01-24 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318151', 'tblTempVendorCDR_20' ) end [2025-01-24 07:32:18] Production.INFO: ProcessCDR(1,14318151,1,1,2) [2025-01-24 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318151', 'tblTempUsageDetail_20' ) start [2025-01-24 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318151', 'tblTempUsageDetail_20' ) end [2025-01-24 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:32:21] Production.INFO: ==29711== Releasing lock... [2025-01-24 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:33:05 [end_date_ymd] => 2025-01-24 07:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:33:05' and `end` < '2025-01-24 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-24 07:33:19] Production.INFO: count ==97 [2025-01-24 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:33:05 - End Time 2025-01-24 07:33:05 [2025-01-24 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318156', 'tblTempUsageDetail_20' ) start [2025-01-24 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318156', 'tblTempUsageDetail_20' ) end [2025-01-24 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318156', 'tblTempVendorCDR_20' ) start [2025-01-24 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318156', 'tblTempVendorCDR_20' ) end [2025-01-24 07:33:19] Production.INFO: ProcessCDR(1,14318156,1,1,2) [2025-01-24 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318156', 'tblTempUsageDetail_20' ) start [2025-01-24 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318156', 'tblTempUsageDetail_20' ) end [2025-01-24 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:33:23] Production.INFO: ==29783== Releasing lock... [2025-01-24 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:33:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:34:06 [end_date_ymd] => 2025-01-24 07:34:06 [RateCDR] => 1 ) [2025-01-24 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:34:06' and `end` < '2025-01-24 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:34:18] Production.INFO: count ==97 [2025-01-24 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:34:06 - End Time 2025-01-24 07:34:06 [2025-01-24 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318161', 'tblTempUsageDetail_20' ) start [2025-01-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318161', 'tblTempUsageDetail_20' ) end [2025-01-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318161', 'tblTempVendorCDR_20' ) start [2025-01-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318161', 'tblTempVendorCDR_20' ) end [2025-01-24 07:34:18] Production.INFO: ProcessCDR(1,14318161,1,1,2) [2025-01-24 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318161', 'tblTempUsageDetail_20' ) start [2025-01-24 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318161', 'tblTempUsageDetail_20' ) end [2025-01-24 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:34:22] Production.INFO: ==29873== Releasing lock... [2025-01-24 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:35:07 [end_date_ymd] => 2025-01-24 07:35:07 [RateCDR] => 1 ) [2025-01-24 07:35:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:35:07' and `end` < '2025-01-24 07:35:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:35:19] Production.INFO: count ==97 [2025-01-24 07:35:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:35:07 - End Time 2025-01-24 07:35:07 [2025-01-24 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318166', 'tblTempUsageDetail_20' ) start [2025-01-24 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318166', 'tblTempUsageDetail_20' ) end [2025-01-24 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318166', 'tblTempVendorCDR_20' ) start [2025-01-24 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318166', 'tblTempVendorCDR_20' ) end [2025-01-24 07:35:19] Production.INFO: ProcessCDR(1,14318166,1,1,2) [2025-01-24 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318166', 'tblTempUsageDetail_20' ) start [2025-01-24 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318166', 'tblTempUsageDetail_20' ) end [2025-01-24 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:35:22] Production.INFO: ==29946== Releasing lock... [2025-01-24 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:35:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:36:05 [end_date_ymd] => 2025-01-24 07:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:36:05' and `end` < '2025-01-24 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-24 07:36:18] Production.INFO: count ==97 [2025-01-24 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:36:05 - End Time 2025-01-24 07:36:05 [2025-01-24 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318171', 'tblTempUsageDetail_20' ) start [2025-01-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318171', 'tblTempUsageDetail_20' ) end [2025-01-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318171', 'tblTempVendorCDR_20' ) start [2025-01-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318171', 'tblTempVendorCDR_20' ) end [2025-01-24 07:36:18] Production.INFO: ProcessCDR(1,14318171,1,1,2) [2025-01-24 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318171', 'tblTempUsageDetail_20' ) start [2025-01-24 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318171', 'tblTempUsageDetail_20' ) end [2025-01-24 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:36:21] Production.INFO: ==30016== Releasing lock... [2025-01-24 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:37:06 [end_date_ymd] => 2025-01-24 07:37:06 [RateCDR] => 1 ) [2025-01-24 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:37:06' and `end` < '2025-01-24 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:37:18] Production.INFO: count ==97 [2025-01-24 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:37:06 - End Time 2025-01-24 07:37:06 [2025-01-24 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318176', 'tblTempUsageDetail_20' ) start [2025-01-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318176', 'tblTempUsageDetail_20' ) end [2025-01-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318176', 'tblTempVendorCDR_20' ) start [2025-01-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318176', 'tblTempVendorCDR_20' ) end [2025-01-24 07:37:18] Production.INFO: ProcessCDR(1,14318176,1,1,2) [2025-01-24 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318176', 'tblTempUsageDetail_20' ) start [2025-01-24 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318176', 'tblTempUsageDetail_20' ) end [2025-01-24 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:37:21] Production.INFO: ==30125== Releasing lock... [2025-01-24 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:38:05 [end_date_ymd] => 2025-01-24 07:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:38:05' and `end` < '2025-01-24 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-24 07:38:18] Production.INFO: count ==97 [2025-01-24 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:38:05 - End Time 2025-01-24 07:38:05 [2025-01-24 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318181', 'tblTempUsageDetail_20' ) start [2025-01-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318181', 'tblTempUsageDetail_20' ) end [2025-01-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318181', 'tblTempVendorCDR_20' ) start [2025-01-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318181', 'tblTempVendorCDR_20' ) end [2025-01-24 07:38:18] Production.INFO: ProcessCDR(1,14318181,1,1,2) [2025-01-24 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318181', 'tblTempUsageDetail_20' ) start [2025-01-24 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318181', 'tblTempUsageDetail_20' ) end [2025-01-24 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:38:21] Production.INFO: ==30201== Releasing lock... [2025-01-24 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:39:05 [end_date_ymd] => 2025-01-24 07:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:39:05' and `end` < '2025-01-24 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-24 07:39:18] Production.INFO: count ==97 [2025-01-24 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:39:05 - End Time 2025-01-24 07:39:05 [2025-01-24 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318186', 'tblTempUsageDetail_20' ) start [2025-01-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318186', 'tblTempUsageDetail_20' ) end [2025-01-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318186', 'tblTempVendorCDR_20' ) start [2025-01-24 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318186', 'tblTempVendorCDR_20' ) end [2025-01-24 07:39:18] Production.INFO: ProcessCDR(1,14318186,1,1,2) [2025-01-24 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318186', 'tblTempUsageDetail_20' ) start [2025-01-24 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318186', 'tblTempUsageDetail_20' ) end [2025-01-24 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:39:21] Production.INFO: ==30277== Releasing lock... [2025-01-24 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:40:06 [end_date_ymd] => 2025-01-24 07:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 04:40:06' and `end` < '2025-01-24 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-24 07:40:19] Production.INFO: count ==97 [2025-01-24 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:40:06 - End Time 2025-01-24 07:40:06 [2025-01-24 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318192', 'tblTempUsageDetail_20' ) start [2025-01-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318192', 'tblTempUsageDetail_20' ) end [2025-01-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318192', 'tblTempVendorCDR_20' ) start [2025-01-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318192', 'tblTempVendorCDR_20' ) end [2025-01-24 07:40:19] Production.INFO: ProcessCDR(1,14318192,1,1,2) [2025-01-24 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318192', 'tblTempUsageDetail_20' ) start [2025-01-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318192', 'tblTempUsageDetail_20' ) end [2025-01-24 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:40:22] Production.INFO: ==30351== Releasing lock... [2025-01-24 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:41:05 [end_date_ymd] => 2025-01-24 07:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:41:05' and `end` < '2025-01-24 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-24 07:41:18] Production.INFO: count ==97 [2025-01-24 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:41:05 - End Time 2025-01-24 07:41:05 [2025-01-24 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318197', 'tblTempUsageDetail_20' ) start [2025-01-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318197', 'tblTempUsageDetail_20' ) end [2025-01-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318197', 'tblTempVendorCDR_20' ) start [2025-01-24 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318197', 'tblTempVendorCDR_20' ) end [2025-01-24 07:41:18] Production.INFO: ProcessCDR(1,14318197,1,1,2) [2025-01-24 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318197', 'tblTempUsageDetail_20' ) start [2025-01-24 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318197', 'tblTempUsageDetail_20' ) end [2025-01-24 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:41:22] Production.INFO: ==30425== Releasing lock... [2025-01-24 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:42:05 [end_date_ymd] => 2025-01-24 07:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:42:05' and `end` < '2025-01-24 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-24 07:42:17] Production.INFO: count ==97 [2025-01-24 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-24 04:42:05 - End Time 2025-01-24 07:42:05 [2025-01-24 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318202', 'tblTempUsageDetail_20' ) start [2025-01-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318202', 'tblTempUsageDetail_20' ) end [2025-01-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318202', 'tblTempVendorCDR_20' ) start [2025-01-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318202', 'tblTempVendorCDR_20' ) end [2025-01-24 07:42:17] Production.INFO: ProcessCDR(1,14318202,1,1,2) [2025-01-24 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318202', 'tblTempUsageDetail_20' ) start [2025-01-24 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318202', 'tblTempUsageDetail_20' ) end [2025-01-24 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:42:21] Production.INFO: ==30499== Releasing lock... [2025-01-24 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:43:05 [end_date_ymd] => 2025-01-24 07:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:43:05' and `end` < '2025-01-24 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-24 07:43:18] Production.INFO: count ==97 [2025-01-24 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:43:05 - End Time 2025-01-24 07:43:05 [2025-01-24 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318206', 'tblTempUsageDetail_20' ) start [2025-01-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318206', 'tblTempUsageDetail_20' ) end [2025-01-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318206', 'tblTempVendorCDR_20' ) start [2025-01-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318206', 'tblTempVendorCDR_20' ) end [2025-01-24 07:43:18] Production.INFO: ProcessCDR(1,14318206,1,1,2) [2025-01-24 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318206', 'tblTempUsageDetail_20' ) start [2025-01-24 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318206', 'tblTempUsageDetail_20' ) end [2025-01-24 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:43:22] Production.INFO: ==30570== Releasing lock... [2025-01-24 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-24 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:44:05 [end_date_ymd] => 2025-01-24 07:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:44:05' and `end` < '2025-01-24 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-24 07:44:18] Production.INFO: count ==99 [2025-01-24 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:44:05 - End Time 2025-01-24 07:44:05 [2025-01-24 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318212', 'tblTempUsageDetail_20' ) start [2025-01-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318212', 'tblTempUsageDetail_20' ) end [2025-01-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318212', 'tblTempVendorCDR_20' ) start [2025-01-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318212', 'tblTempVendorCDR_20' ) end [2025-01-24 07:44:18] Production.INFO: ProcessCDR(1,14318212,1,1,2) [2025-01-24 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318212', 'tblTempUsageDetail_20' ) start [2025-01-24 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318212', 'tblTempUsageDetail_20' ) end [2025-01-24 07:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:44:23] Production.INFO: ==30641== Releasing lock... [2025-01-24 07:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:44:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:45:06 [end_date_ymd] => 2025-01-24 07:45:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:45:06' and `end` < '2025-01-24 07: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-24 07:45:18] Production.INFO: count ==99 [2025-01-24 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:45:06 - End Time 2025-01-24 07:45:06 [2025-01-24 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318217', 'tblTempUsageDetail_20' ) start [2025-01-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318217', 'tblTempUsageDetail_20' ) end [2025-01-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318217', 'tblTempVendorCDR_20' ) start [2025-01-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318217', 'tblTempVendorCDR_20' ) end [2025-01-24 07:45:18] Production.INFO: ProcessCDR(1,14318217,1,1,2) [2025-01-24 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318217', 'tblTempUsageDetail_20' ) start [2025-01-24 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318217', 'tblTempUsageDetail_20' ) end [2025-01-24 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:45:22] Production.INFO: ==30716== Releasing lock... [2025-01-24 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:46:06 [end_date_ymd] => 2025-01-24 07:46:06 [RateCDR] => 1 ) [2025-01-24 07:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:46:06' and `end` < '2025-01-24 07:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:46:18] Production.INFO: count ==99 [2025-01-24 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:46:06 - End Time 2025-01-24 07:46:06 [2025-01-24 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318222', 'tblTempUsageDetail_20' ) start [2025-01-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318222', 'tblTempUsageDetail_20' ) end [2025-01-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318222', 'tblTempVendorCDR_20' ) start [2025-01-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318222', 'tblTempVendorCDR_20' ) end [2025-01-24 07:46:18] Production.INFO: ProcessCDR(1,14318222,1,1,2) [2025-01-24 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318222', 'tblTempUsageDetail_20' ) start [2025-01-24 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318222', 'tblTempUsageDetail_20' ) end [2025-01-24 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:46:22] Production.INFO: ==30793== Releasing lock... [2025-01-24 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:47:06 [end_date_ymd] => 2025-01-24 07:47:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:47:06' and `end` < '2025-01-24 07: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-24 07:47:20] Production.INFO: count ==99 [2025-01-24 07:47:20] Production.ERROR: pbx CDR StartTime 2025-01-24 04:47:06 - End Time 2025-01-24 07:47:06 [2025-01-24 07:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318227', 'tblTempUsageDetail_20' ) start [2025-01-24 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318227', 'tblTempUsageDetail_20' ) end [2025-01-24 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318227', 'tblTempVendorCDR_20' ) start [2025-01-24 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318227', 'tblTempVendorCDR_20' ) end [2025-01-24 07:47:20] Production.INFO: ProcessCDR(1,14318227,1,1,2) [2025-01-24 07:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318227', 'tblTempUsageDetail_20' ) start [2025-01-24 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318227', 'tblTempUsageDetail_20' ) end [2025-01-24 07:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:47:23] Production.INFO: ==30869== Releasing lock... [2025-01-24 07:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:47:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:48:06 [end_date_ymd] => 2025-01-24 07:48:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:48:06' and `end` < '2025-01-24 07: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-24 07:48:19] Production.INFO: count ==99 [2025-01-24 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:48:06 - End Time 2025-01-24 07:48:06 [2025-01-24 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318232', 'tblTempUsageDetail_20' ) start [2025-01-24 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318232', 'tblTempUsageDetail_20' ) end [2025-01-24 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318232', 'tblTempVendorCDR_20' ) start [2025-01-24 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318232', 'tblTempVendorCDR_20' ) end [2025-01-24 07:48:19] Production.INFO: ProcessCDR(1,14318232,1,1,2) [2025-01-24 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318232', 'tblTempUsageDetail_20' ) start [2025-01-24 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318232', 'tblTempUsageDetail_20' ) end [2025-01-24 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:48:23] Production.INFO: ==30941== Releasing lock... [2025-01-24 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:48:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:49:05 [end_date_ymd] => 2025-01-24 07:49:05 [RateCDR] => 1 ) [2025-01-24 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:49:05' and `end` < '2025-01-24 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:49:18] Production.INFO: count ==99 [2025-01-24 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:49:05 - End Time 2025-01-24 07:49:05 [2025-01-24 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318237', 'tblTempUsageDetail_20' ) start [2025-01-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318237', 'tblTempUsageDetail_20' ) end [2025-01-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318237', 'tblTempVendorCDR_20' ) start [2025-01-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318237', 'tblTempVendorCDR_20' ) end [2025-01-24 07:49:18] Production.INFO: ProcessCDR(1,14318237,1,1,2) [2025-01-24 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318237', 'tblTempUsageDetail_20' ) start [2025-01-24 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318237', 'tblTempUsageDetail_20' ) end [2025-01-24 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:49:21] Production.INFO: ==31012== Releasing lock... [2025-01-24 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:50:06 [end_date_ymd] => 2025-01-24 07:50:06 [RateCDR] => 1 ) [2025-01-24 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:50:06' and `end` < '2025-01-24 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:50:19] Production.INFO: count ==109 [2025-01-24 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:50:06 - End Time 2025-01-24 07:50:06 [2025-01-24 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318242', 'tblTempUsageDetail_20' ) start [2025-01-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318242', 'tblTempUsageDetail_20' ) end [2025-01-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318242', 'tblTempVendorCDR_20' ) start [2025-01-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318242', 'tblTempVendorCDR_20' ) end [2025-01-24 07:50:19] Production.INFO: ProcessCDR(1,14318242,1,1,2) [2025-01-24 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318242', 'tblTempUsageDetail_20' ) start [2025-01-24 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318242', 'tblTempUsageDetail_20' ) end [2025-01-24 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:50:23] Production.INFO: ==31084== Releasing lock... [2025-01-24 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:51:05 [end_date_ymd] => 2025-01-24 07:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:51:05' and `end` < '2025-01-24 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-24 07:51:19] Production.INFO: count ==111 [2025-01-24 07:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:51:05 - End Time 2025-01-24 07:51:05 [2025-01-24 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318248', 'tblTempUsageDetail_20' ) start [2025-01-24 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318248', 'tblTempUsageDetail_20' ) end [2025-01-24 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318248', 'tblTempVendorCDR_20' ) start [2025-01-24 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318248', 'tblTempVendorCDR_20' ) end [2025-01-24 07:51:19] Production.INFO: ProcessCDR(1,14318248,1,1,2) [2025-01-24 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318248', 'tblTempUsageDetail_20' ) start [2025-01-24 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318248', 'tblTempUsageDetail_20' ) end [2025-01-24 07:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:51:23] Production.INFO: ==31158== Releasing lock... [2025-01-24 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:51:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:52:05 [end_date_ymd] => 2025-01-24 07:52:05 [RateCDR] => 1 ) [2025-01-24 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:52:05' and `end` < '2025-01-24 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:52:18] Production.INFO: count ==113 [2025-01-24 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:52:05 - End Time 2025-01-24 07:52:05 [2025-01-24 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318253', 'tblTempUsageDetail_20' ) start [2025-01-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318253', 'tblTempUsageDetail_20' ) end [2025-01-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318253', 'tblTempVendorCDR_20' ) start [2025-01-24 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318253', 'tblTempVendorCDR_20' ) end [2025-01-24 07:52:18] Production.INFO: ProcessCDR(1,14318253,1,1,2) [2025-01-24 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318253', 'tblTempUsageDetail_20' ) start [2025-01-24 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318253', 'tblTempUsageDetail_20' ) end [2025-01-24 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:52:22] Production.INFO: ==31267== Releasing lock... [2025-01-24 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:53:05 [end_date_ymd] => 2025-01-24 07:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:53:05' and `end` < '2025-01-24 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-24 07:53:19] Production.INFO: count ==113 [2025-01-24 07:53:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:53:05 - End Time 2025-01-24 07:53:05 [2025-01-24 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318258', 'tblTempUsageDetail_20' ) start [2025-01-24 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318258', 'tblTempUsageDetail_20' ) end [2025-01-24 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318258', 'tblTempVendorCDR_20' ) start [2025-01-24 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318258', 'tblTempVendorCDR_20' ) end [2025-01-24 07:53:19] Production.INFO: ProcessCDR(1,14318258,1,1,2) [2025-01-24 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318258', 'tblTempUsageDetail_20' ) start [2025-01-24 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318258', 'tblTempUsageDetail_20' ) end [2025-01-24 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:53:22] Production.INFO: ==31341== Releasing lock... [2025-01-24 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:54:06 [end_date_ymd] => 2025-01-24 07:54:06 [RateCDR] => 1 ) [2025-01-24 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 04:54:06' and `end` < '2025-01-24 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 07:54:19] Production.INFO: count ==113 [2025-01-24 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:54:06 - End Time 2025-01-24 07:54:06 [2025-01-24 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318263', 'tblTempUsageDetail_20' ) start [2025-01-24 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318263', 'tblTempUsageDetail_20' ) end [2025-01-24 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318263', 'tblTempVendorCDR_20' ) start [2025-01-24 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318263', 'tblTempVendorCDR_20' ) end [2025-01-24 07:54:19] Production.INFO: ProcessCDR(1,14318263,1,1,2) [2025-01-24 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318263', 'tblTempUsageDetail_20' ) start [2025-01-24 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318263', 'tblTempUsageDetail_20' ) end [2025-01-24 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:54:22] Production.INFO: ==31412== Releasing lock... [2025-01-24 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:55:05 [end_date_ymd] => 2025-01-24 07:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:55:05' and `end` < '2025-01-24 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-24 07:55:17] Production.INFO: count ==113 [2025-01-24 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-24 04:55:05 - End Time 2025-01-24 07:55:05 [2025-01-24 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318268', 'tblTempUsageDetail_20' ) start [2025-01-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318268', 'tblTempUsageDetail_20' ) end [2025-01-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318268', 'tblTempVendorCDR_20' ) start [2025-01-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318268', 'tblTempVendorCDR_20' ) end [2025-01-24 07:55:17] Production.INFO: ProcessCDR(1,14318268,1,1,2) [2025-01-24 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318268', 'tblTempUsageDetail_20' ) start [2025-01-24 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318268', 'tblTempUsageDetail_20' ) end [2025-01-24 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:55:21] Production.INFO: ==31482== Releasing lock... [2025-01-24 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:56:06 [end_date_ymd] => 2025-01-24 07:56:06 [RateCDR] => 1 ) [2025-01-24 07: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-24 04:56:06' and `end` < '2025-01-24 07: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-24 07:56:19] Production.INFO: count ==113 [2025-01-24 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:56:06 - End Time 2025-01-24 07:56:06 [2025-01-24 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318273', 'tblTempUsageDetail_20' ) start [2025-01-24 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318273', 'tblTempUsageDetail_20' ) end [2025-01-24 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318273', 'tblTempVendorCDR_20' ) start [2025-01-24 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318273', 'tblTempVendorCDR_20' ) end [2025-01-24 07:56:19] Production.INFO: ProcessCDR(1,14318273,1,1,2) [2025-01-24 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318273', 'tblTempUsageDetail_20' ) start [2025-01-24 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318273', 'tblTempUsageDetail_20' ) end [2025-01-24 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:56:22] Production.INFO: ==31554== Releasing lock... [2025-01-24 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:57:05 [end_date_ymd] => 2025-01-24 07:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:57:05' and `end` < '2025-01-24 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-24 07:57:19] Production.INFO: count ==116 [2025-01-24 07:57:19] Production.ERROR: pbx CDR StartTime 2025-01-24 04:57:05 - End Time 2025-01-24 07:57:05 [2025-01-24 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318278', 'tblTempUsageDetail_20' ) start [2025-01-24 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318278', 'tblTempUsageDetail_20' ) end [2025-01-24 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318278', 'tblTempVendorCDR_20' ) start [2025-01-24 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318278', 'tblTempVendorCDR_20' ) end [2025-01-24 07:57:19] Production.INFO: ProcessCDR(1,14318278,1,1,2) [2025-01-24 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318278', 'tblTempUsageDetail_20' ) start [2025-01-24 07:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318278', 'tblTempUsageDetail_20' ) end [2025-01-24 07:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:57:24] Production.INFO: ==31626== Releasing lock... [2025-01-24 07:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:57:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:58:06 [end_date_ymd] => 2025-01-24 07:58:06 [RateCDR] => 1 ) [2025-01-24 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-24 04:58:06' and `end` < '2025-01-24 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-24 07:58:18] Production.INFO: count ==118 [2025-01-24 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:58:06 - End Time 2025-01-24 07:58:06 [2025-01-24 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318283', 'tblTempUsageDetail_20' ) start [2025-01-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318283', 'tblTempUsageDetail_20' ) end [2025-01-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318283', 'tblTempVendorCDR_20' ) start [2025-01-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318283', 'tblTempVendorCDR_20' ) end [2025-01-24 07:58:18] Production.INFO: ProcessCDR(1,14318283,1,1,2) [2025-01-24 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318283', 'tblTempUsageDetail_20' ) start [2025-01-24 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318283', 'tblTempUsageDetail_20' ) end [2025-01-24 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:58:21] Production.INFO: ==31696== Releasing lock... [2025-01-24 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 04:59:05 [end_date_ymd] => 2025-01-24 07:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 04:59:05' and `end` < '2025-01-24 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-24 07:59:18] Production.INFO: count ==120 [2025-01-24 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 04:59:05 - End Time 2025-01-24 07:59:05 [2025-01-24 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318288', 'tblTempUsageDetail_20' ) start [2025-01-24 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318288', 'tblTempUsageDetail_20' ) end [2025-01-24 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318288', 'tblTempVendorCDR_20' ) start [2025-01-24 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318288', 'tblTempVendorCDR_20' ) end [2025-01-24 07:59:18] Production.INFO: ProcessCDR(1,14318288,1,1,2) [2025-01-24 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318288', 'tblTempUsageDetail_20' ) start [2025-01-24 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318288', 'tblTempUsageDetail_20' ) end [2025-01-24 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 07:59:23] Production.INFO: ==31770== Releasing lock... [2025-01-24 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 07:59:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:00:06 [end_date_ymd] => 2025-01-24 08:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:00:06' and `end` < '2025-01-24 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-24 08:00:19] Production.INFO: count ==126 [2025-01-24 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:00:06 - End Time 2025-01-24 08:00:06 [2025-01-24 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318294', 'tblTempUsageDetail_20' ) start [2025-01-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318294', 'tblTempUsageDetail_20' ) end [2025-01-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318294', 'tblTempVendorCDR_20' ) start [2025-01-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318294', 'tblTempVendorCDR_20' ) end [2025-01-24 08:00:19] Production.INFO: ProcessCDR(1,14318294,1,1,2) [2025-01-24 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318294', 'tblTempUsageDetail_20' ) start [2025-01-24 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318294', 'tblTempUsageDetail_20' ) end [2025-01-24 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:00:22] Production.INFO: ==31844== Releasing lock... [2025-01-24 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:01:05 [end_date_ymd] => 2025-01-24 08:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:01:05' and `end` < '2025-01-24 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-24 08:01:18] Production.INFO: count ==128 [2025-01-24 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:01:05 - End Time 2025-01-24 08:01:05 [2025-01-24 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318299', 'tblTempUsageDetail_20' ) start [2025-01-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318299', 'tblTempUsageDetail_20' ) end [2025-01-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318299', 'tblTempVendorCDR_20' ) start [2025-01-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318299', 'tblTempVendorCDR_20' ) end [2025-01-24 08:01:18] Production.INFO: ProcessCDR(1,14318299,1,1,2) [2025-01-24 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318299', 'tblTempUsageDetail_20' ) start [2025-01-24 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318299', 'tblTempUsageDetail_20' ) end [2025-01-24 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:01:21] Production.INFO: ==31931== Releasing lock... [2025-01-24 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-24 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:02:06 [end_date_ymd] => 2025-01-24 08:02:06 [RateCDR] => 1 ) [2025-01-24 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:02:06' and `end` < '2025-01-24 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:02:18] Production.INFO: count ==132 [2025-01-24 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:02:06 - End Time 2025-01-24 08:02:06 [2025-01-24 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318304', 'tblTempUsageDetail_20' ) start [2025-01-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318304', 'tblTempUsageDetail_20' ) end [2025-01-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318304', 'tblTempVendorCDR_20' ) start [2025-01-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318304', 'tblTempVendorCDR_20' ) end [2025-01-24 08:02:18] Production.INFO: ProcessCDR(1,14318304,1,1,2) [2025-01-24 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318304', 'tblTempUsageDetail_20' ) start [2025-01-24 08:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318304', 'tblTempUsageDetail_20' ) end [2025-01-24 08:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:02:24] Production.INFO: ==32007== Releasing lock... [2025-01-24 08:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:02:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:03:05 [end_date_ymd] => 2025-01-24 08:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:03:05' and `end` < '2025-01-24 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-24 08:03:19] Production.INFO: count ==136 [2025-01-24 08:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:03:05 - End Time 2025-01-24 08:03:05 [2025-01-24 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318309', 'tblTempUsageDetail_20' ) start [2025-01-24 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318309', 'tblTempUsageDetail_20' ) end [2025-01-24 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318309', 'tblTempVendorCDR_20' ) start [2025-01-24 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318309', 'tblTempVendorCDR_20' ) end [2025-01-24 08:03:19] Production.INFO: ProcessCDR(1,14318309,1,1,2) [2025-01-24 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318309', 'tblTempUsageDetail_20' ) start [2025-01-24 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318309', 'tblTempUsageDetail_20' ) end [2025-01-24 08:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:03:24] Production.INFO: ==32079== Releasing lock... [2025-01-24 08:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:03:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:04:06 [end_date_ymd] => 2025-01-24 08:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:04:06' and `end` < '2025-01-24 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-24 08:04:18] Production.INFO: count ==136 [2025-01-24 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:04:06 - End Time 2025-01-24 08:04:06 [2025-01-24 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318314', 'tblTempUsageDetail_20' ) start [2025-01-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318314', 'tblTempUsageDetail_20' ) end [2025-01-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318314', 'tblTempVendorCDR_20' ) start [2025-01-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318314', 'tblTempVendorCDR_20' ) end [2025-01-24 08:04:18] Production.INFO: ProcessCDR(1,14318314,1,1,2) [2025-01-24 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318314', 'tblTempUsageDetail_20' ) start [2025-01-24 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318314', 'tblTempUsageDetail_20' ) end [2025-01-24 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:04:22] Production.INFO: ==32150== Releasing lock... [2025-01-24 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:05:05 [end_date_ymd] => 2025-01-24 08:05:05 [RateCDR] => 1 ) [2025-01-24 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:05:05' and `end` < '2025-01-24 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:05:18] Production.INFO: count ==136 [2025-01-24 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:05:05 - End Time 2025-01-24 08:05:05 [2025-01-24 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318319', 'tblTempUsageDetail_20' ) start [2025-01-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318319', 'tblTempUsageDetail_20' ) end [2025-01-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318319', 'tblTempVendorCDR_20' ) start [2025-01-24 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318319', 'tblTempVendorCDR_20' ) end [2025-01-24 08:05:18] Production.INFO: ProcessCDR(1,14318319,1,1,2) [2025-01-24 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318319', 'tblTempUsageDetail_20' ) start [2025-01-24 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318319', 'tblTempUsageDetail_20' ) end [2025-01-24 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:05:21] Production.INFO: ==32219== Releasing lock... [2025-01-24 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:06:06 [end_date_ymd] => 2025-01-24 08:06:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:06:06' and `end` < '2025-01-24 08: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-24 08:06:19] Production.INFO: count ==136 [2025-01-24 08:06:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:06:06 - End Time 2025-01-24 08:06:06 [2025-01-24 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318324', 'tblTempUsageDetail_20' ) start [2025-01-24 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318324', 'tblTempUsageDetail_20' ) end [2025-01-24 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318324', 'tblTempVendorCDR_20' ) start [2025-01-24 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318324', 'tblTempVendorCDR_20' ) end [2025-01-24 08:06:19] Production.INFO: ProcessCDR(1,14318324,1,1,2) [2025-01-24 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318324', 'tblTempUsageDetail_20' ) start [2025-01-24 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318324', 'tblTempUsageDetail_20' ) end [2025-01-24 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:06:22] Production.INFO: ==32289== Releasing lock... [2025-01-24 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:07:06 [end_date_ymd] => 2025-01-24 08:07:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:07:06' and `end` < '2025-01-24 08: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-24 08:07:18] Production.INFO: count ==138 [2025-01-24 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:07:06 - End Time 2025-01-24 08:07:06 [2025-01-24 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318329', 'tblTempUsageDetail_20' ) start [2025-01-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318329', 'tblTempUsageDetail_20' ) end [2025-01-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318329', 'tblTempVendorCDR_20' ) start [2025-01-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318329', 'tblTempVendorCDR_20' ) end [2025-01-24 08:07:18] Production.INFO: ProcessCDR(1,14318329,1,1,2) [2025-01-24 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318329', 'tblTempUsageDetail_20' ) start [2025-01-24 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318329', 'tblTempUsageDetail_20' ) end [2025-01-24 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:07:22] Production.INFO: ==32359== Releasing lock... [2025-01-24 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:08:05 [end_date_ymd] => 2025-01-24 08:08:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:08:05' and `end` < '2025-01-24 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-24 08:08:19] Production.INFO: count ==142 [2025-01-24 08:08:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:08:05 - End Time 2025-01-24 08:08:05 [2025-01-24 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318334', 'tblTempUsageDetail_20' ) start [2025-01-24 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318334', 'tblTempUsageDetail_20' ) end [2025-01-24 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318334', 'tblTempVendorCDR_20' ) start [2025-01-24 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318334', 'tblTempVendorCDR_20' ) end [2025-01-24 08:08:19] Production.INFO: ProcessCDR(1,14318334,1,1,2) [2025-01-24 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318334', 'tblTempUsageDetail_20' ) start [2025-01-24 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318334', 'tblTempUsageDetail_20' ) end [2025-01-24 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:08:23] Production.INFO: ==32469== Releasing lock... [2025-01-24 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:08:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:09:06 [end_date_ymd] => 2025-01-24 08:09:06 [RateCDR] => 1 ) [2025-01-24 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:09:06' and `end` < '2025-01-24 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:09:19] Production.INFO: count ==142 [2025-01-24 08:09:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:09:06 - End Time 2025-01-24 08:09:06 [2025-01-24 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318339', 'tblTempUsageDetail_20' ) start [2025-01-24 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318339', 'tblTempUsageDetail_20' ) end [2025-01-24 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318339', 'tblTempVendorCDR_20' ) start [2025-01-24 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318339', 'tblTempVendorCDR_20' ) end [2025-01-24 08:09:19] Production.INFO: ProcessCDR(1,14318339,1,1,2) [2025-01-24 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318339', 'tblTempUsageDetail_20' ) start [2025-01-24 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318339', 'tblTempUsageDetail_20' ) end [2025-01-24 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:09:23] Production.INFO: ==32544== Releasing lock... [2025-01-24 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:09:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:10:06 [end_date_ymd] => 2025-01-24 08:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:10:06' and `end` < '2025-01-24 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-24 08:10:19] Production.INFO: count ==163 [2025-01-24 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:10:06 - End Time 2025-01-24 08:10:06 [2025-01-24 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318345', 'tblTempUsageDetail_20' ) start [2025-01-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318345', 'tblTempUsageDetail_20' ) end [2025-01-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318345', 'tblTempVendorCDR_20' ) start [2025-01-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318345', 'tblTempVendorCDR_20' ) end [2025-01-24 08:10:19] Production.INFO: ProcessCDR(1,14318345,1,1,2) [2025-01-24 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318345', 'tblTempUsageDetail_20' ) start [2025-01-24 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318345', 'tblTempUsageDetail_20' ) end [2025-01-24 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:10:23] Production.INFO: ==32615== Releasing lock... [2025-01-24 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-24 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:11:06 [end_date_ymd] => 2025-01-24 08:11:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:11:06' and `end` < '2025-01-24 08: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-24 08:11:18] Production.INFO: count ==175 [2025-01-24 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:11:06 - End Time 2025-01-24 08:11:06 [2025-01-24 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318350', 'tblTempUsageDetail_20' ) start [2025-01-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318350', 'tblTempUsageDetail_20' ) end [2025-01-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318350', 'tblTempVendorCDR_20' ) start [2025-01-24 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318350', 'tblTempVendorCDR_20' ) end [2025-01-24 08:11:18] Production.INFO: ProcessCDR(1,14318350,1,1,2) [2025-01-24 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318350', 'tblTempUsageDetail_20' ) start [2025-01-24 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318350', 'tblTempUsageDetail_20' ) end [2025-01-24 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:11:23] Production.INFO: ==32689== Releasing lock... [2025-01-24 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:11:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:12:06 [end_date_ymd] => 2025-01-24 08:12:06 [RateCDR] => 1 ) [2025-01-24 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:12:06' and `end` < '2025-01-24 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:12:18] Production.INFO: count ==180 [2025-01-24 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:12:06 - End Time 2025-01-24 08:12:06 [2025-01-24 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318355', 'tblTempUsageDetail_20' ) start [2025-01-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318355', 'tblTempUsageDetail_20' ) end [2025-01-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318355', 'tblTempVendorCDR_20' ) start [2025-01-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318355', 'tblTempVendorCDR_20' ) end [2025-01-24 08:12:18] Production.INFO: ProcessCDR(1,14318355,1,1,2) [2025-01-24 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318355', 'tblTempUsageDetail_20' ) start [2025-01-24 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318355', 'tblTempUsageDetail_20' ) end [2025-01-24 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:12:22] Production.INFO: ==32760== Releasing lock... [2025-01-24 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-24 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:13:06 [end_date_ymd] => 2025-01-24 08:13:06 [RateCDR] => 1 ) [2025-01-24 08:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:13:06' and `end` < '2025-01-24 08:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:13:19] Production.INFO: count ==187 [2025-01-24 08:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:13:06 - End Time 2025-01-24 08:13:06 [2025-01-24 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318360', 'tblTempUsageDetail_20' ) start [2025-01-24 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318360', 'tblTempUsageDetail_20' ) end [2025-01-24 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318360', 'tblTempVendorCDR_20' ) start [2025-01-24 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318360', 'tblTempVendorCDR_20' ) end [2025-01-24 08:13:19] Production.INFO: ProcessCDR(1,14318360,1,1,2) [2025-01-24 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318360', 'tblTempUsageDetail_20' ) start [2025-01-24 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318360', 'tblTempUsageDetail_20' ) end [2025-01-24 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:13:23] Production.INFO: ==382== Releasing lock... [2025-01-24 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:13:23] Production.INFO: 29 MB #Memory Used# [2025-01-24 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:14:05 [end_date_ymd] => 2025-01-24 08:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:14:05' and `end` < '2025-01-24 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-24 08:14:20] Production.INFO: count ==188 [2025-01-24 08:14:20] Production.ERROR: pbx CDR StartTime 2025-01-24 05:14:05 - End Time 2025-01-24 08:14:05 [2025-01-24 08:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318365', 'tblTempUsageDetail_20' ) start [2025-01-24 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318365', 'tblTempUsageDetail_20' ) end [2025-01-24 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318365', 'tblTempVendorCDR_20' ) start [2025-01-24 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318365', 'tblTempVendorCDR_20' ) end [2025-01-24 08:14:20] Production.INFO: ProcessCDR(1,14318365,1,1,2) [2025-01-24 08:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318365', 'tblTempUsageDetail_20' ) start [2025-01-24 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318365', 'tblTempUsageDetail_20' ) end [2025-01-24 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:14:24] Production.INFO: ==450== Releasing lock... [2025-01-24 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:14:24] Production.INFO: 29 MB #Memory Used# [2025-01-24 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:15:06 [end_date_ymd] => 2025-01-24 08:15:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:15:06' and `end` < '2025-01-24 08: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-24 08:15:18] Production.INFO: count ==196 [2025-01-24 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:15:06 - End Time 2025-01-24 08:15:06 [2025-01-24 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318370', 'tblTempUsageDetail_20' ) start [2025-01-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318370', 'tblTempUsageDetail_20' ) end [2025-01-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318370', 'tblTempVendorCDR_20' ) start [2025-01-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318370', 'tblTempVendorCDR_20' ) end [2025-01-24 08:15:18] Production.INFO: ProcessCDR(1,14318370,1,1,2) [2025-01-24 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318370', 'tblTempUsageDetail_20' ) start [2025-01-24 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318370', 'tblTempUsageDetail_20' ) end [2025-01-24 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:15:22] Production.INFO: ==525== Releasing lock... [2025-01-24 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:15:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:16:06 [end_date_ymd] => 2025-01-24 08:16:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:16:06' and `end` < '2025-01-24 08: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-24 08:16:18] Production.INFO: count ==196 [2025-01-24 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:16:06 - End Time 2025-01-24 08:16:06 [2025-01-24 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318375', 'tblTempUsageDetail_20' ) start [2025-01-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318375', 'tblTempUsageDetail_20' ) end [2025-01-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318375', 'tblTempVendorCDR_20' ) start [2025-01-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318375', 'tblTempVendorCDR_20' ) end [2025-01-24 08:16:18] Production.INFO: ProcessCDR(1,14318375,1,1,2) [2025-01-24 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318375', 'tblTempUsageDetail_20' ) start [2025-01-24 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318375', 'tblTempUsageDetail_20' ) end [2025-01-24 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:16:22] Production.INFO: ==599== Releasing lock... [2025-01-24 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:17:05 [end_date_ymd] => 2025-01-24 08:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:17:05' and `end` < '2025-01-24 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-24 08:17:19] Production.INFO: count ==196 [2025-01-24 08:17:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:17:05 - End Time 2025-01-24 08:17:05 [2025-01-24 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318380', 'tblTempUsageDetail_20' ) start [2025-01-24 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318380', 'tblTempUsageDetail_20' ) end [2025-01-24 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318380', 'tblTempVendorCDR_20' ) start [2025-01-24 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318380', 'tblTempVendorCDR_20' ) end [2025-01-24 08:17:19] Production.INFO: ProcessCDR(1,14318380,1,1,2) [2025-01-24 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318380', 'tblTempUsageDetail_20' ) start [2025-01-24 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318380', 'tblTempUsageDetail_20' ) end [2025-01-24 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:17:22] Production.INFO: ==696== Releasing lock... [2025-01-24 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-24 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:18:06 [end_date_ymd] => 2025-01-24 08:18:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:18:06' and `end` < '2025-01-24 08: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-24 08:18:20] Production.INFO: count ==206 [2025-01-24 08:18:20] Production.ERROR: pbx CDR StartTime 2025-01-24 05:18:06 - End Time 2025-01-24 08:18:06 [2025-01-24 08:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318385', 'tblTempUsageDetail_20' ) start [2025-01-24 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318385', 'tblTempUsageDetail_20' ) end [2025-01-24 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318385', 'tblTempVendorCDR_20' ) start [2025-01-24 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318385', 'tblTempVendorCDR_20' ) end [2025-01-24 08:18:20] Production.INFO: ProcessCDR(1,14318385,1,1,2) [2025-01-24 08:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318385', 'tblTempUsageDetail_20' ) start [2025-01-24 08:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318385', 'tblTempUsageDetail_20' ) end [2025-01-24 08:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:18:26] Production.INFO: ==795== Releasing lock... [2025-01-24 08:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:18:26] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:19:05 [end_date_ymd] => 2025-01-24 08:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:19:05' and `end` < '2025-01-24 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-24 08:19:18] Production.INFO: count ==212 [2025-01-24 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:19:05 - End Time 2025-01-24 08:19:05 [2025-01-24 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318390', 'tblTempUsageDetail_20' ) start [2025-01-24 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318390', 'tblTempUsageDetail_20' ) end [2025-01-24 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318390', 'tblTempVendorCDR_20' ) start [2025-01-24 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318390', 'tblTempVendorCDR_20' ) end [2025-01-24 08:19:18] Production.INFO: ProcessCDR(1,14318390,1,1,2) [2025-01-24 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318390', 'tblTempUsageDetail_20' ) start [2025-01-24 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318390', 'tblTempUsageDetail_20' ) end [2025-01-24 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:19:23] Production.INFO: ==869== Releasing lock... [2025-01-24 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:19:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:20:06 [end_date_ymd] => 2025-01-24 08:20:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:20:06' and `end` < '2025-01-24 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-24 08:20:18] Production.INFO: count ==226 [2025-01-24 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:20:06 - End Time 2025-01-24 08:20:06 [2025-01-24 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318395', 'tblTempUsageDetail_20' ) start [2025-01-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318395', 'tblTempUsageDetail_20' ) end [2025-01-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318395', 'tblTempVendorCDR_20' ) start [2025-01-24 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318395', 'tblTempVendorCDR_20' ) end [2025-01-24 08:20:19] Production.INFO: ProcessCDR(1,14318395,1,1,2) [2025-01-24 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318395', 'tblTempUsageDetail_20' ) start [2025-01-24 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318395', 'tblTempUsageDetail_20' ) end [2025-01-24 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:20:22] Production.INFO: ==942== Releasing lock... [2025-01-24 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-24 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:21:05 [end_date_ymd] => 2025-01-24 08:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:21:05' and `end` < '2025-01-24 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-24 08:21:19] Production.INFO: count ==244 [2025-01-24 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:21:05 - End Time 2025-01-24 08:21:05 [2025-01-24 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318401', 'tblTempUsageDetail_20' ) start [2025-01-24 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318401', 'tblTempUsageDetail_20' ) end [2025-01-24 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318401', 'tblTempVendorCDR_20' ) start [2025-01-24 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318401', 'tblTempVendorCDR_20' ) end [2025-01-24 08:21:19] Production.INFO: ProcessCDR(1,14318401,1,1,2) [2025-01-24 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318401', 'tblTempUsageDetail_20' ) start [2025-01-24 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318401', 'tblTempUsageDetail_20' ) end [2025-01-24 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:21:22] Production.INFO: ==1014== Releasing lock... [2025-01-24 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:22:06 [end_date_ymd] => 2025-01-24 08:22:06 [RateCDR] => 1 ) [2025-01-24 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:22:06' and `end` < '2025-01-24 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:22:18] Production.INFO: count ==245 [2025-01-24 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:22:06 - End Time 2025-01-24 08:22:06 [2025-01-24 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318406', 'tblTempUsageDetail_20' ) start [2025-01-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318406', 'tblTempUsageDetail_20' ) end [2025-01-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318406', 'tblTempVendorCDR_20' ) start [2025-01-24 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318406', 'tblTempVendorCDR_20' ) end [2025-01-24 08:22:18] Production.INFO: ProcessCDR(1,14318406,1,1,2) [2025-01-24 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318406', 'tblTempUsageDetail_20' ) start [2025-01-24 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318406', 'tblTempUsageDetail_20' ) end [2025-01-24 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:22:22] Production.INFO: ==1087== Releasing lock... [2025-01-24 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:23:05 [end_date_ymd] => 2025-01-24 08:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:23:05' and `end` < '2025-01-24 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-24 08:23:18] Production.INFO: count ==248 [2025-01-24 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:23:05 - End Time 2025-01-24 08:23:05 [2025-01-24 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318411', 'tblTempUsageDetail_20' ) start [2025-01-24 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318411', 'tblTempUsageDetail_20' ) end [2025-01-24 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318411', 'tblTempVendorCDR_20' ) start [2025-01-24 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318411', 'tblTempVendorCDR_20' ) end [2025-01-24 08:23:18] Production.INFO: ProcessCDR(1,14318411,1,1,2) [2025-01-24 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318411', 'tblTempUsageDetail_20' ) start [2025-01-24 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318411', 'tblTempUsageDetail_20' ) end [2025-01-24 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:23:21] Production.INFO: ==1205== Releasing lock... [2025-01-24 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:24:06 [end_date_ymd] => 2025-01-24 08:24:06 [RateCDR] => 1 ) [2025-01-24 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:24:06' and `end` < '2025-01-24 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:24:19] Production.INFO: count ==248 [2025-01-24 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:24:06 - End Time 2025-01-24 08:24:06 [2025-01-24 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318416', 'tblTempUsageDetail_20' ) start [2025-01-24 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318416', 'tblTempUsageDetail_20' ) end [2025-01-24 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318416', 'tblTempVendorCDR_20' ) start [2025-01-24 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318416', 'tblTempVendorCDR_20' ) end [2025-01-24 08:24:19] Production.INFO: ProcessCDR(1,14318416,1,1,2) [2025-01-24 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318416', 'tblTempUsageDetail_20' ) start [2025-01-24 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318416', 'tblTempUsageDetail_20' ) end [2025-01-24 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:24:23] Production.INFO: ==1288== Releasing lock... [2025-01-24 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:24:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:25:06 [end_date_ymd] => 2025-01-24 08:25:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:25:06' and `end` < '2025-01-24 08: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-24 08:25:18] Production.INFO: count ==248 [2025-01-24 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:25:06 - End Time 2025-01-24 08:25:06 [2025-01-24 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318421', 'tblTempUsageDetail_20' ) start [2025-01-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318421', 'tblTempUsageDetail_20' ) end [2025-01-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318421', 'tblTempVendorCDR_20' ) start [2025-01-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318421', 'tblTempVendorCDR_20' ) end [2025-01-24 08:25:18] Production.INFO: ProcessCDR(1,14318421,1,1,2) [2025-01-24 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318421', 'tblTempUsageDetail_20' ) start [2025-01-24 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318421', 'tblTempUsageDetail_20' ) end [2025-01-24 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:25:22] Production.INFO: ==1360== Releasing lock... [2025-01-24 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:26:06 [end_date_ymd] => 2025-01-24 08:26:06 [RateCDR] => 1 ) [2025-01-24 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:26:06' and `end` < '2025-01-24 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:26:18] Production.INFO: count ==248 [2025-01-24 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:26:06 - End Time 2025-01-24 08:26:06 [2025-01-24 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318426', 'tblTempUsageDetail_20' ) start [2025-01-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318426', 'tblTempUsageDetail_20' ) end [2025-01-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318426', 'tblTempVendorCDR_20' ) start [2025-01-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318426', 'tblTempVendorCDR_20' ) end [2025-01-24 08:26:18] Production.INFO: ProcessCDR(1,14318426,1,1,2) [2025-01-24 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318426', 'tblTempUsageDetail_20' ) start [2025-01-24 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318426', 'tblTempUsageDetail_20' ) end [2025-01-24 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:26:22] Production.INFO: ==1433== Releasing lock... [2025-01-24 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:27:05 [end_date_ymd] => 2025-01-24 08:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:27:05' and `end` < '2025-01-24 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-24 08:27:18] Production.INFO: count ==254 [2025-01-24 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:27:05 - End Time 2025-01-24 08:27:05 [2025-01-24 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318431', 'tblTempUsageDetail_20' ) start [2025-01-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318431', 'tblTempUsageDetail_20' ) end [2025-01-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318431', 'tblTempVendorCDR_20' ) start [2025-01-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318431', 'tblTempVendorCDR_20' ) end [2025-01-24 08:27:18] Production.INFO: ProcessCDR(1,14318431,1,1,2) [2025-01-24 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318431', 'tblTempUsageDetail_20' ) start [2025-01-24 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318431', 'tblTempUsageDetail_20' ) end [2025-01-24 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:27:23] Production.INFO: ==1520== Releasing lock... [2025-01-24 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:27:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:28:06 [end_date_ymd] => 2025-01-24 08:28:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:28:06' and `end` < '2025-01-24 08: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-24 08:28:18] Production.INFO: count ==265 [2025-01-24 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:28:06 - End Time 2025-01-24 08:28:06 [2025-01-24 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318436', 'tblTempUsageDetail_20' ) start [2025-01-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318436', 'tblTempUsageDetail_20' ) end [2025-01-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318436', 'tblTempVendorCDR_20' ) start [2025-01-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318436', 'tblTempVendorCDR_20' ) end [2025-01-24 08:28:18] Production.INFO: ProcessCDR(1,14318436,1,1,2) [2025-01-24 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318436', 'tblTempUsageDetail_20' ) start [2025-01-24 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318436', 'tblTempUsageDetail_20' ) end [2025-01-24 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:28:23] Production.INFO: ==1611== Releasing lock... [2025-01-24 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:28:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:29:06 [end_date_ymd] => 2025-01-24 08:29:06 [RateCDR] => 1 ) [2025-01-24 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:29:06' and `end` < '2025-01-24 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:29:18] Production.INFO: count ==265 [2025-01-24 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:29:06 - End Time 2025-01-24 08:29:06 [2025-01-24 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318441', 'tblTempUsageDetail_20' ) start [2025-01-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318441', 'tblTempUsageDetail_20' ) end [2025-01-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318441', 'tblTempVendorCDR_20' ) start [2025-01-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318441', 'tblTempVendorCDR_20' ) end [2025-01-24 08:29:18] Production.INFO: ProcessCDR(1,14318441,1,1,2) [2025-01-24 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318441', 'tblTempUsageDetail_20' ) start [2025-01-24 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318441', 'tblTempUsageDetail_20' ) end [2025-01-24 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:29:22] Production.INFO: ==1682== Releasing lock... [2025-01-24 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:30:06 [end_date_ymd] => 2025-01-24 08:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:30:06' and `end` < '2025-01-24 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:30:18] Production.INFO: count ==282 [2025-01-24 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:30:06 - End Time 2025-01-24 08:30:06 [2025-01-24 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318447', 'tblTempUsageDetail_20' ) start [2025-01-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318447', 'tblTempUsageDetail_20' ) end [2025-01-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318447', 'tblTempVendorCDR_20' ) start [2025-01-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318447', 'tblTempVendorCDR_20' ) end [2025-01-24 08:30:18] Production.INFO: ProcessCDR(1,14318447,1,1,2) [2025-01-24 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318447', 'tblTempUsageDetail_20' ) start [2025-01-24 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318447', 'tblTempUsageDetail_20' ) end [2025-01-24 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:30:24] Production.INFO: ==1755== Releasing lock... [2025-01-24 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:30:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-24 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:31:05 [end_date_ymd] => 2025-01-24 08:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:31:05' and `end` < '2025-01-24 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-24 08:31:18] Production.INFO: count ==308 [2025-01-24 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:31:05 - End Time 2025-01-24 08:31:05 [2025-01-24 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318452', 'tblTempUsageDetail_20' ) start [2025-01-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318452', 'tblTempUsageDetail_20' ) end [2025-01-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318452', 'tblTempVendorCDR_20' ) start [2025-01-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318452', 'tblTempVendorCDR_20' ) end [2025-01-24 08:31:18] Production.INFO: ProcessCDR(1,14318452,1,1,2) [2025-01-24 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318452', 'tblTempUsageDetail_20' ) start [2025-01-24 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318452', 'tblTempUsageDetail_20' ) end [2025-01-24 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:31:22] Production.INFO: ==1833== Releasing lock... [2025-01-24 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:31:22] Production.INFO: 30 MB #Memory Used# [2025-01-24 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:32:06 [end_date_ymd] => 2025-01-24 08:32:06 [RateCDR] => 1 ) [2025-01-24 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:32:06' and `end` < '2025-01-24 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:32:18] Production.INFO: count ==310 [2025-01-24 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:32:06 - End Time 2025-01-24 08:32:06 [2025-01-24 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318457', 'tblTempUsageDetail_20' ) start [2025-01-24 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318457', 'tblTempUsageDetail_20' ) end [2025-01-24 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318457', 'tblTempVendorCDR_20' ) start [2025-01-24 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318457', 'tblTempVendorCDR_20' ) end [2025-01-24 08:32:19] Production.INFO: ProcessCDR(1,14318457,1,1,2) [2025-01-24 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318457', 'tblTempUsageDetail_20' ) start [2025-01-24 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318457', 'tblTempUsageDetail_20' ) end [2025-01-24 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:32:23] Production.INFO: ==1902== Releasing lock... [2025-01-24 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:32:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-24 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:33:06 [end_date_ymd] => 2025-01-24 08:33:06 [RateCDR] => 1 ) [2025-01-24 08:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:33:06' and `end` < '2025-01-24 08:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:33:20] Production.INFO: count ==318 [2025-01-24 08:33:20] Production.ERROR: pbx CDR StartTime 2025-01-24 05:33:06 - End Time 2025-01-24 08:33:06 [2025-01-24 08:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318462', 'tblTempUsageDetail_20' ) start [2025-01-24 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318462', 'tblTempUsageDetail_20' ) end [2025-01-24 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318462', 'tblTempVendorCDR_20' ) start [2025-01-24 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318462', 'tblTempVendorCDR_20' ) end [2025-01-24 08:33:20] Production.INFO: ProcessCDR(1,14318462,1,1,2) [2025-01-24 08:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318462', 'tblTempUsageDetail_20' ) start [2025-01-24 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318462', 'tblTempUsageDetail_20' ) end [2025-01-24 08:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:33:25] Production.INFO: ==1972== Releasing lock... [2025-01-24 08:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:33:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:34:06 [end_date_ymd] => 2025-01-24 08:34:06 [RateCDR] => 1 ) [2025-01-24 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:34:06' and `end` < '2025-01-24 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:34:20] Production.INFO: count ==322 [2025-01-24 08:34:20] Production.ERROR: pbx CDR StartTime 2025-01-24 05:34:06 - End Time 2025-01-24 08:34:06 [2025-01-24 08:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318467', 'tblTempUsageDetail_20' ) start [2025-01-24 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318467', 'tblTempUsageDetail_20' ) end [2025-01-24 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318467', 'tblTempVendorCDR_20' ) start [2025-01-24 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318467', 'tblTempVendorCDR_20' ) end [2025-01-24 08:34:20] Production.INFO: ProcessCDR(1,14318467,1,1,2) [2025-01-24 08:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318467', 'tblTempUsageDetail_20' ) start [2025-01-24 08:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318467', 'tblTempUsageDetail_20' ) end [2025-01-24 08:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:34:25] Production.INFO: ==2050== Releasing lock... [2025-01-24 08:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:34:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:35:06 [end_date_ymd] => 2025-01-24 08:35:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:35:06' and `end` < '2025-01-24 08: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-24 08:35:18] Production.INFO: count ==322 [2025-01-24 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:35:06 - End Time 2025-01-24 08:35:06 [2025-01-24 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318472', 'tblTempUsageDetail_20' ) start [2025-01-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318472', 'tblTempUsageDetail_20' ) end [2025-01-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318472', 'tblTempVendorCDR_20' ) start [2025-01-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318472', 'tblTempVendorCDR_20' ) end [2025-01-24 08:35:18] Production.INFO: ProcessCDR(1,14318472,1,1,2) [2025-01-24 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318472', 'tblTempUsageDetail_20' ) start [2025-01-24 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318472', 'tblTempUsageDetail_20' ) end [2025-01-24 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:35:22] Production.INFO: ==2124== Releasing lock... [2025-01-24 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-24 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:36:05 [end_date_ymd] => 2025-01-24 08:36:05 [RateCDR] => 1 ) [2025-01-24 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:36:05' and `end` < '2025-01-24 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:36:18] Production.INFO: count ==326 [2025-01-24 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:36:05 - End Time 2025-01-24 08:36:05 [2025-01-24 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318477', 'tblTempUsageDetail_20' ) start [2025-01-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318477', 'tblTempUsageDetail_20' ) end [2025-01-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318477', 'tblTempVendorCDR_20' ) start [2025-01-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318477', 'tblTempVendorCDR_20' ) end [2025-01-24 08:36:18] Production.INFO: ProcessCDR(1,14318477,1,1,2) [2025-01-24 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318477', 'tblTempUsageDetail_20' ) start [2025-01-24 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318477', 'tblTempUsageDetail_20' ) end [2025-01-24 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:36:23] Production.INFO: ==2194== Releasing lock... [2025-01-24 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:36:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:37:06 [end_date_ymd] => 2025-01-24 08:37:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:37:06' and `end` < '2025-01-24 08: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-24 08:37:18] Production.INFO: count ==330 [2025-01-24 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:37:06 - End Time 2025-01-24 08:37:06 [2025-01-24 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318482', 'tblTempUsageDetail_20' ) start [2025-01-24 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318482', 'tblTempUsageDetail_20' ) end [2025-01-24 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318482', 'tblTempVendorCDR_20' ) start [2025-01-24 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318482', 'tblTempVendorCDR_20' ) end [2025-01-24 08:37:18] Production.INFO: ProcessCDR(1,14318482,1,1,2) [2025-01-24 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318482', 'tblTempUsageDetail_20' ) start [2025-01-24 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318482', 'tblTempUsageDetail_20' ) end [2025-01-24 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:37:23] Production.INFO: ==2273== Releasing lock... [2025-01-24 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:37:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:38:05 [end_date_ymd] => 2025-01-24 08:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:38:05' and `end` < '2025-01-24 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-24 08:38:18] Production.INFO: count ==337 [2025-01-24 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:38:05 - End Time 2025-01-24 08:38:05 [2025-01-24 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318487', 'tblTempUsageDetail_20' ) start [2025-01-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318487', 'tblTempUsageDetail_20' ) end [2025-01-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318487', 'tblTempVendorCDR_20' ) start [2025-01-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318487', 'tblTempVendorCDR_20' ) end [2025-01-24 08:38:18] Production.INFO: ProcessCDR(1,14318487,1,1,2) [2025-01-24 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318487', 'tblTempUsageDetail_20' ) start [2025-01-24 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318487', 'tblTempUsageDetail_20' ) end [2025-01-24 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:38:23] Production.INFO: ==2345== Releasing lock... [2025-01-24 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:38:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:39:05 [end_date_ymd] => 2025-01-24 08:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:39:05' and `end` < '2025-01-24 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-24 08:39:18] Production.INFO: count ==337 [2025-01-24 08:39:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:39:05 - End Time 2025-01-24 08:39:05 [2025-01-24 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318492', 'tblTempUsageDetail_20' ) start [2025-01-24 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318492', 'tblTempUsageDetail_20' ) end [2025-01-24 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318492', 'tblTempVendorCDR_20' ) start [2025-01-24 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318492', 'tblTempVendorCDR_20' ) end [2025-01-24 08:39:19] Production.INFO: ProcessCDR(1,14318492,1,1,2) [2025-01-24 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318492', 'tblTempUsageDetail_20' ) start [2025-01-24 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318492', 'tblTempUsageDetail_20' ) end [2025-01-24 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:39:22] Production.INFO: ==2454== Releasing lock... [2025-01-24 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:40:06 [end_date_ymd] => 2025-01-24 08:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:40:06' and `end` < '2025-01-24 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-24 08:40:19] Production.INFO: count ==353 [2025-01-24 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:40:06 - End Time 2025-01-24 08:40:06 [2025-01-24 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318498', 'tblTempUsageDetail_20' ) start [2025-01-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318498', 'tblTempUsageDetail_20' ) end [2025-01-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318498', 'tblTempVendorCDR_20' ) start [2025-01-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318498', 'tblTempVendorCDR_20' ) end [2025-01-24 08:40:19] Production.INFO: ProcessCDR(1,14318498,1,1,2) [2025-01-24 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318498', 'tblTempUsageDetail_20' ) start [2025-01-24 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318498', 'tblTempUsageDetail_20' ) end [2025-01-24 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:40:24] Production.INFO: ==2526== Releasing lock... [2025-01-24 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:40:24] Production.INFO: 31 MB #Memory Used# [2025-01-24 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:41:06 [end_date_ymd] => 2025-01-24 08:41:06 [RateCDR] => 1 ) [2025-01-24 08: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-24 05:41:06' and `end` < '2025-01-24 08: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-24 08:41:19] Production.INFO: count ==382 [2025-01-24 08:41:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:41:06 - End Time 2025-01-24 08:41:06 [2025-01-24 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318503', 'tblTempUsageDetail_20' ) start [2025-01-24 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318503', 'tblTempUsageDetail_20' ) end [2025-01-24 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318503', 'tblTempVendorCDR_20' ) start [2025-01-24 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318503', 'tblTempVendorCDR_20' ) end [2025-01-24 08:41:19] Production.INFO: ProcessCDR(1,14318503,1,1,2) [2025-01-24 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318503', 'tblTempUsageDetail_20' ) start [2025-01-24 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318503', 'tblTempUsageDetail_20' ) end [2025-01-24 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:41:24] Production.INFO: ==2601== Releasing lock... [2025-01-24 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:41:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-24 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:42:05 [end_date_ymd] => 2025-01-24 08:42:05 [RateCDR] => 1 ) [2025-01-24 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:42:05' and `end` < '2025-01-24 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:42:18] Production.INFO: count ==388 [2025-01-24 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:42:05 - End Time 2025-01-24 08:42:05 [2025-01-24 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318508', 'tblTempUsageDetail_20' ) start [2025-01-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318508', 'tblTempUsageDetail_20' ) end [2025-01-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318508', 'tblTempVendorCDR_20' ) start [2025-01-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318508', 'tblTempVendorCDR_20' ) end [2025-01-24 08:42:18] Production.INFO: ProcessCDR(1,14318508,1,1,2) [2025-01-24 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318508', 'tblTempUsageDetail_20' ) start [2025-01-24 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318508', 'tblTempUsageDetail_20' ) end [2025-01-24 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:42:24] Production.INFO: ==2673== Releasing lock... [2025-01-24 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:42:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:43:06 [end_date_ymd] => 2025-01-24 08:43:06 [RateCDR] => 1 ) [2025-01-24 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:43:06' and `end` < '2025-01-24 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:43:18] Production.INFO: count ==388 [2025-01-24 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:43:06 - End Time 2025-01-24 08:43:06 [2025-01-24 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318513', 'tblTempUsageDetail_20' ) start [2025-01-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318513', 'tblTempUsageDetail_20' ) end [2025-01-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318513', 'tblTempVendorCDR_20' ) start [2025-01-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318513', 'tblTempVendorCDR_20' ) end [2025-01-24 08:43:18] Production.INFO: ProcessCDR(1,14318513,1,1,2) [2025-01-24 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318513', 'tblTempUsageDetail_20' ) start [2025-01-24 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318513', 'tblTempUsageDetail_20' ) end [2025-01-24 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:43:22] Production.INFO: ==2743== Releasing lock... [2025-01-24 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:44:05 [end_date_ymd] => 2025-01-24 08:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:44:05' and `end` < '2025-01-24 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-24 08:44:17] Production.INFO: count ==389 [2025-01-24 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:44:05 - End Time 2025-01-24 08:44:05 [2025-01-24 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318518', 'tblTempUsageDetail_20' ) start [2025-01-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318518', 'tblTempUsageDetail_20' ) end [2025-01-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318518', 'tblTempVendorCDR_20' ) start [2025-01-24 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318518', 'tblTempVendorCDR_20' ) end [2025-01-24 08:44:18] Production.INFO: ProcessCDR(1,14318518,1,1,2) [2025-01-24 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318518', 'tblTempUsageDetail_20' ) start [2025-01-24 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318518', 'tblTempUsageDetail_20' ) end [2025-01-24 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:44:21] Production.INFO: ==2814== Releasing lock... [2025-01-24 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:45:05 [end_date_ymd] => 2025-01-24 08:45:05 [RateCDR] => 1 ) [2025-01-24 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:45:05' and `end` < '2025-01-24 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:45:18] Production.INFO: count ==391 [2025-01-24 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:45:05 - End Time 2025-01-24 08:45:05 [2025-01-24 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318523', 'tblTempUsageDetail_20' ) start [2025-01-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318523', 'tblTempUsageDetail_20' ) end [2025-01-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318523', 'tblTempVendorCDR_20' ) start [2025-01-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318523', 'tblTempVendorCDR_20' ) end [2025-01-24 08:45:18] Production.INFO: ProcessCDR(1,14318523,1,1,2) [2025-01-24 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318523', 'tblTempUsageDetail_20' ) start [2025-01-24 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318523', 'tblTempUsageDetail_20' ) end [2025-01-24 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:45:22] Production.INFO: ==2887== Releasing lock... [2025-01-24 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:45:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-24 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:46:06 [end_date_ymd] => 2025-01-24 08:46:06 [RateCDR] => 1 ) [2025-01-24 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:46:06' and `end` < '2025-01-24 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:46:18] Production.INFO: count ==405 [2025-01-24 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:46:06 - End Time 2025-01-24 08:46:06 [2025-01-24 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318528', 'tblTempUsageDetail_20' ) start [2025-01-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318528', 'tblTempUsageDetail_20' ) end [2025-01-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318528', 'tblTempVendorCDR_20' ) start [2025-01-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318528', 'tblTempVendorCDR_20' ) end [2025-01-24 08:46:18] Production.INFO: ProcessCDR(1,14318528,1,1,2) [2025-01-24 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318528', 'tblTempUsageDetail_20' ) start [2025-01-24 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318528', 'tblTempUsageDetail_20' ) end [2025-01-24 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:46:22] Production.INFO: ==2957== Releasing lock... [2025-01-24 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:46:22] Production.INFO: 31 MB #Memory Used# [2025-01-24 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:47:05 [end_date_ymd] => 2025-01-24 08:47:05 [RateCDR] => 1 ) [2025-01-24 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:47:05' and `end` < '2025-01-24 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:47:17] Production.INFO: count ==424 [2025-01-24 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-24 05:47:05 - End Time 2025-01-24 08:47:05 [2025-01-24 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318533', 'tblTempUsageDetail_20' ) start [2025-01-24 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318533', 'tblTempUsageDetail_20' ) end [2025-01-24 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318533', 'tblTempVendorCDR_20' ) start [2025-01-24 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318533', 'tblTempVendorCDR_20' ) end [2025-01-24 08:47:17] Production.INFO: ProcessCDR(1,14318533,1,1,2) [2025-01-24 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318533', 'tblTempUsageDetail_20' ) start [2025-01-24 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318533', 'tblTempUsageDetail_20' ) end [2025-01-24 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:47:23] Production.INFO: ==3027== Releasing lock... [2025-01-24 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:47:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-24 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:48:06 [end_date_ymd] => 2025-01-24 08:48:06 [RateCDR] => 1 ) [2025-01-24 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:48:06' and `end` < '2025-01-24 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:48:20] Production.INFO: count ==429 [2025-01-24 08:48:20] Production.ERROR: pbx CDR StartTime 2025-01-24 05:48:06 - End Time 2025-01-24 08:48:06 [2025-01-24 08:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318538', 'tblTempUsageDetail_20' ) start [2025-01-24 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318538', 'tblTempUsageDetail_20' ) end [2025-01-24 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318538', 'tblTempVendorCDR_20' ) start [2025-01-24 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318538', 'tblTempVendorCDR_20' ) end [2025-01-24 08:48:20] Production.INFO: ProcessCDR(1,14318538,1,1,2) [2025-01-24 08:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318538', 'tblTempUsageDetail_20' ) start [2025-01-24 08:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318538', 'tblTempUsageDetail_20' ) end [2025-01-24 08:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:48:25] Production.INFO: ==3099== Releasing lock... [2025-01-24 08:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:48:25] Production.INFO: 31.5 MB #Memory Used# [2025-01-24 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:49:05 [end_date_ymd] => 2025-01-24 08:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:49:05' and `end` < '2025-01-24 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-24 08:49:18] Production.INFO: count ==434 [2025-01-24 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:49:05 - End Time 2025-01-24 08:49:05 [2025-01-24 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318543', 'tblTempUsageDetail_20' ) start [2025-01-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318543', 'tblTempUsageDetail_20' ) end [2025-01-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318543', 'tblTempVendorCDR_20' ) start [2025-01-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318543', 'tblTempVendorCDR_20' ) end [2025-01-24 08:49:18] Production.INFO: ProcessCDR(1,14318543,1,1,2) [2025-01-24 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318543', 'tblTempUsageDetail_20' ) start [2025-01-24 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318543', 'tblTempUsageDetail_20' ) end [2025-01-24 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:49:22] Production.INFO: ==3173== Releasing lock... [2025-01-24 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-24 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:50:06 [end_date_ymd] => 2025-01-24 08:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:50:06' and `end` < '2025-01-24 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-24 08:50:19] Production.INFO: count ==441 [2025-01-24 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:50:06 - End Time 2025-01-24 08:50:06 [2025-01-24 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318549', 'tblTempUsageDetail_20' ) start [2025-01-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318549', 'tblTempUsageDetail_20' ) end [2025-01-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318549', 'tblTempVendorCDR_20' ) start [2025-01-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318549', 'tblTempVendorCDR_20' ) end [2025-01-24 08:50:19] Production.INFO: ProcessCDR(1,14318549,1,1,2) [2025-01-24 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318549', 'tblTempUsageDetail_20' ) start [2025-01-24 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318549', 'tblTempUsageDetail_20' ) end [2025-01-24 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:50:24] Production.INFO: ==3250== Releasing lock... [2025-01-24 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:50:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-24 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:51:05 [end_date_ymd] => 2025-01-24 08:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:51:05' and `end` < '2025-01-24 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-24 08:51:19] Production.INFO: count ==465 [2025-01-24 08:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:51:05 - End Time 2025-01-24 08:51:05 [2025-01-24 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318554', 'tblTempUsageDetail_20' ) start [2025-01-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318554', 'tblTempUsageDetail_20' ) end [2025-01-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318554', 'tblTempVendorCDR_20' ) start [2025-01-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318554', 'tblTempVendorCDR_20' ) end [2025-01-24 08:51:19] Production.INFO: ProcessCDR(1,14318554,1,1,2) [2025-01-24 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318554', 'tblTempUsageDetail_20' ) start [2025-01-24 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318554', 'tblTempUsageDetail_20' ) end [2025-01-24 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:51:23] Production.INFO: ==3327== Releasing lock... [2025-01-24 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:51:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-24 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:52:06 [end_date_ymd] => 2025-01-24 08:52:06 [RateCDR] => 1 ) [2025-01-24 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:52:06' and `end` < '2025-01-24 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:52:19] Production.INFO: count ==476 [2025-01-24 08:52:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:52:06 - End Time 2025-01-24 08:52:06 [2025-01-24 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318559', 'tblTempUsageDetail_20' ) start [2025-01-24 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318559', 'tblTempUsageDetail_20' ) end [2025-01-24 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318559', 'tblTempVendorCDR_20' ) start [2025-01-24 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318559', 'tblTempVendorCDR_20' ) end [2025-01-24 08:52:19] Production.INFO: ProcessCDR(1,14318559,1,1,2) [2025-01-24 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318559', 'tblTempUsageDetail_20' ) start [2025-01-24 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318559', 'tblTempUsageDetail_20' ) end [2025-01-24 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:52:24] Production.INFO: ==3401== Releasing lock... [2025-01-24 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:52:24] Production.INFO: 32 MB #Memory Used# [2025-01-24 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:53:05 [end_date_ymd] => 2025-01-24 08:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:53:05' and `end` < '2025-01-24 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-24 08:53:18] Production.INFO: count ==481 [2025-01-24 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:53:05 - End Time 2025-01-24 08:53:05 [2025-01-24 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318564', 'tblTempUsageDetail_20' ) start [2025-01-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318564', 'tblTempUsageDetail_20' ) end [2025-01-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318564', 'tblTempVendorCDR_20' ) start [2025-01-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318564', 'tblTempVendorCDR_20' ) end [2025-01-24 08:53:18] Production.INFO: ProcessCDR(1,14318564,1,1,2) [2025-01-24 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318564', 'tblTempUsageDetail_20' ) start [2025-01-24 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318564', 'tblTempUsageDetail_20' ) end [2025-01-24 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:53:22] Production.INFO: ==3471== Releasing lock... [2025-01-24 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:53:22] Production.INFO: 32 MB #Memory Used# [2025-01-24 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:54:05 [end_date_ymd] => 2025-01-24 08:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:54:05' and `end` < '2025-01-24 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-24 08:54:18] Production.INFO: count ==507 [2025-01-24 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:54:05 - End Time 2025-01-24 08:54:05 [2025-01-24 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318569', 'tblTempUsageDetail_20' ) start [2025-01-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318569', 'tblTempUsageDetail_20' ) end [2025-01-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318569', 'tblTempVendorCDR_20' ) start [2025-01-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318569', 'tblTempVendorCDR_20' ) end [2025-01-24 08:54:18] Production.INFO: ProcessCDR(1,14318569,1,1,2) [2025-01-24 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318569', 'tblTempUsageDetail_20' ) start [2025-01-24 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318569', 'tblTempUsageDetail_20' ) end [2025-01-24 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:54:23] Production.INFO: ==3579== Releasing lock... [2025-01-24 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:54:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-24 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:55:05 [end_date_ymd] => 2025-01-24 08:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:55:05' and `end` < '2025-01-24 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-24 08:55:18] Production.INFO: count ==521 [2025-01-24 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:55:05 - End Time 2025-01-24 08:55:05 [2025-01-24 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318574', 'tblTempUsageDetail_20' ) start [2025-01-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318574', 'tblTempUsageDetail_20' ) end [2025-01-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318574', 'tblTempVendorCDR_20' ) start [2025-01-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318574', 'tblTempVendorCDR_20' ) end [2025-01-24 08:55:18] Production.INFO: ProcessCDR(1,14318574,1,1,2) [2025-01-24 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318574', 'tblTempUsageDetail_20' ) start [2025-01-24 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318574', 'tblTempUsageDetail_20' ) end [2025-01-24 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:55:24] Production.INFO: ==3649== Releasing lock... [2025-01-24 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:55:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:56:06 [end_date_ymd] => 2025-01-24 08:56:06 [RateCDR] => 1 ) [2025-01-24 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-24 05:56:06' and `end` < '2025-01-24 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-24 08:56:19] Production.INFO: count ==534 [2025-01-24 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:56:06 - End Time 2025-01-24 08:56:06 [2025-01-24 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318579', 'tblTempUsageDetail_20' ) start [2025-01-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318579', 'tblTempUsageDetail_20' ) end [2025-01-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318579', 'tblTempVendorCDR_20' ) start [2025-01-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318579', 'tblTempVendorCDR_20' ) end [2025-01-24 08:56:19] Production.INFO: ProcessCDR(1,14318579,1,1,2) [2025-01-24 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318579', 'tblTempUsageDetail_20' ) start [2025-01-24 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318579', 'tblTempUsageDetail_20' ) end [2025-01-24 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:56:24] Production.INFO: ==3721== Releasing lock... [2025-01-24 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:56:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-24 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:57:05 [end_date_ymd] => 2025-01-24 08:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:57:05' and `end` < '2025-01-24 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-24 08:57:18] Production.INFO: count ==553 [2025-01-24 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:57:05 - End Time 2025-01-24 08:57:05 [2025-01-24 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318584', 'tblTempUsageDetail_20' ) start [2025-01-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318584', 'tblTempUsageDetail_20' ) end [2025-01-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318584', 'tblTempVendorCDR_20' ) start [2025-01-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318584', 'tblTempVendorCDR_20' ) end [2025-01-24 08:57:18] Production.INFO: ProcessCDR(1,14318584,1,1,2) [2025-01-24 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318584', 'tblTempUsageDetail_20' ) start [2025-01-24 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318584', 'tblTempUsageDetail_20' ) end [2025-01-24 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:57:23] Production.INFO: ==3796== Releasing lock... [2025-01-24 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:57:23] Production.INFO: 33 MB #Memory Used# [2025-01-24 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:58:06 [end_date_ymd] => 2025-01-24 08:58:06 [RateCDR] => 1 ) [2025-01-24 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 05:58:06' and `end` < '2025-01-24 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 08:58:19] Production.INFO: count ==568 [2025-01-24 08:58:19] Production.ERROR: pbx CDR StartTime 2025-01-24 05:58:06 - End Time 2025-01-24 08:58:06 [2025-01-24 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318589', 'tblTempUsageDetail_20' ) start [2025-01-24 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318589', 'tblTempUsageDetail_20' ) end [2025-01-24 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318589', 'tblTempVendorCDR_20' ) start [2025-01-24 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318589', 'tblTempVendorCDR_20' ) end [2025-01-24 08:58:19] Production.INFO: ProcessCDR(1,14318589,1,1,2) [2025-01-24 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318589', 'tblTempUsageDetail_20' ) start [2025-01-24 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318589', 'tblTempUsageDetail_20' ) end [2025-01-24 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:58:24] Production.INFO: ==3867== Releasing lock... [2025-01-24 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:58:24] Production.INFO: 33 MB #Memory Used# [2025-01-24 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 05:59:05 [end_date_ymd] => 2025-01-24 08:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 05:59:05' and `end` < '2025-01-24 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-24 08:59:18] Production.INFO: count ==591 [2025-01-24 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 05:59:05 - End Time 2025-01-24 08:59:05 [2025-01-24 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318594', 'tblTempUsageDetail_20' ) start [2025-01-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318594', 'tblTempUsageDetail_20' ) end [2025-01-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318594', 'tblTempVendorCDR_20' ) start [2025-01-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318594', 'tblTempVendorCDR_20' ) end [2025-01-24 08:59:18] Production.INFO: ProcessCDR(1,14318594,1,1,2) [2025-01-24 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318594', 'tblTempUsageDetail_20' ) start [2025-01-24 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318594', 'tblTempUsageDetail_20' ) end [2025-01-24 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 08:59:22] Production.INFO: ==3937== Releasing lock... [2025-01-24 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 08:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-24 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:00:07 [end_date_ymd] => 2025-01-24 09:00:07 [RateCDR] => 1 ) [2025-01-24 09:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:00:07' and `end` < '2025-01-24 09:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:00:19] Production.INFO: count ==620 [2025-01-24 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:00:07 - End Time 2025-01-24 09:00:07 [2025-01-24 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318599', 'tblTempUsageDetail_20' ) start [2025-01-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318599', 'tblTempUsageDetail_20' ) end [2025-01-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318599', 'tblTempVendorCDR_20' ) start [2025-01-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318599', 'tblTempVendorCDR_20' ) end [2025-01-24 09:00:19] Production.INFO: ProcessCDR(1,14318599,1,1,2) [2025-01-24 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318599', 'tblTempUsageDetail_20' ) start [2025-01-24 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318599', 'tblTempUsageDetail_20' ) end [2025-01-24 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:00:25] Production.INFO: ==4014== Releasing lock... [2025-01-24 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:00:25] Production.INFO: 33.5 MB #Memory Used# [2025-01-24 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:01:05 [end_date_ymd] => 2025-01-24 09:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:01:05' and `end` < '2025-01-24 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-24 09:01:18] Production.INFO: count ==672 [2025-01-24 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:01:05 - End Time 2025-01-24 09:01:05 [2025-01-24 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318605', 'tblTempUsageDetail_20' ) start [2025-01-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318605', 'tblTempUsageDetail_20' ) end [2025-01-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318605', 'tblTempVendorCDR_20' ) start [2025-01-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318605', 'tblTempVendorCDR_20' ) end [2025-01-24 09:01:18] Production.INFO: ProcessCDR(1,14318605,1,1,2) [2025-01-24 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318605', 'tblTempUsageDetail_20' ) start [2025-01-24 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318605', 'tblTempUsageDetail_20' ) end [2025-01-24 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:01:22] Production.INFO: ==4098== Releasing lock... [2025-01-24 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:02:06 [end_date_ymd] => 2025-01-24 09:02:06 [RateCDR] => 1 ) [2025-01-24 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:02:06' and `end` < '2025-01-24 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:02:18] Production.INFO: count ==679 [2025-01-24 09:02:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:02:06 - End Time 2025-01-24 09:02:06 [2025-01-24 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318610', 'tblTempUsageDetail_20' ) start [2025-01-24 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318610', 'tblTempUsageDetail_20' ) end [2025-01-24 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318610', 'tblTempVendorCDR_20' ) start [2025-01-24 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318610', 'tblTempVendorCDR_20' ) end [2025-01-24 09:02:19] Production.INFO: ProcessCDR(1,14318610,1,1,2) [2025-01-24 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318610', 'tblTempUsageDetail_20' ) start [2025-01-24 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318610', 'tblTempUsageDetail_20' ) end [2025-01-24 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:02:22] Production.INFO: ==4173== Releasing lock... [2025-01-24 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:02:22] Production.INFO: 34 MB #Memory Used# [2025-01-24 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:03:06 [end_date_ymd] => 2025-01-24 09:03:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:03:06' and `end` < '2025-01-24 09: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-24 09:03:18] Production.INFO: count ==691 [2025-01-24 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:03:06 - End Time 2025-01-24 09:03:06 [2025-01-24 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318615', 'tblTempUsageDetail_20' ) start [2025-01-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318615', 'tblTempUsageDetail_20' ) end [2025-01-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318615', 'tblTempVendorCDR_20' ) start [2025-01-24 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318615', 'tblTempVendorCDR_20' ) end [2025-01-24 09:03:19] Production.INFO: ProcessCDR(1,14318615,1,1,2) [2025-01-24 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318615', 'tblTempUsageDetail_20' ) start [2025-01-24 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318615', 'tblTempUsageDetail_20' ) end [2025-01-24 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:03:24] Production.INFO: ==4268== Releasing lock... [2025-01-24 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:03:24] Production.INFO: 34 MB #Memory Used# [2025-01-24 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:04:06 [end_date_ymd] => 2025-01-24 09:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:04:06' and `end` < '2025-01-24 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-24 09:04:18] Production.INFO: count ==697 [2025-01-24 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:04:06 - End Time 2025-01-24 09:04:06 [2025-01-24 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318620', 'tblTempUsageDetail_20' ) start [2025-01-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318620', 'tblTempUsageDetail_20' ) end [2025-01-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318620', 'tblTempVendorCDR_20' ) start [2025-01-24 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318620', 'tblTempVendorCDR_20' ) end [2025-01-24 09:04:18] Production.INFO: ProcessCDR(1,14318620,1,1,2) [2025-01-24 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318620', 'tblTempUsageDetail_20' ) start [2025-01-24 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318620', 'tblTempUsageDetail_20' ) end [2025-01-24 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:04:24] Production.INFO: ==4352== Releasing lock... [2025-01-24 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:04:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:05:06 [end_date_ymd] => 2025-01-24 09:05:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:05:06' and `end` < '2025-01-24 09: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-24 09:05:18] Production.INFO: count ==718 [2025-01-24 09:05:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:05:06 - End Time 2025-01-24 09:05:06 [2025-01-24 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318625', 'tblTempUsageDetail_20' ) start [2025-01-24 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318625', 'tblTempUsageDetail_20' ) end [2025-01-24 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318625', 'tblTempVendorCDR_20' ) start [2025-01-24 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318625', 'tblTempVendorCDR_20' ) end [2025-01-24 09:05:19] Production.INFO: ProcessCDR(1,14318625,1,1,2) [2025-01-24 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318625', 'tblTempUsageDetail_20' ) start [2025-01-24 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318625', 'tblTempUsageDetail_20' ) end [2025-01-24 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:05:24] Production.INFO: ==4445== Releasing lock... [2025-01-24 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:05:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:06:06 [end_date_ymd] => 2025-01-24 09:06:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:06:06' and `end` < '2025-01-24 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-24 09:06:18] Production.INFO: count ==738 [2025-01-24 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:06:06 - End Time 2025-01-24 09:06:06 [2025-01-24 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318630', 'tblTempUsageDetail_20' ) start [2025-01-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318630', 'tblTempUsageDetail_20' ) end [2025-01-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318630', 'tblTempVendorCDR_20' ) start [2025-01-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318630', 'tblTempVendorCDR_20' ) end [2025-01-24 09:06:19] Production.INFO: ProcessCDR(1,14318630,1,1,2) [2025-01-24 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318630', 'tblTempUsageDetail_20' ) start [2025-01-24 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318630', 'tblTempUsageDetail_20' ) end [2025-01-24 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:06:24] Production.INFO: ==4528== Releasing lock... [2025-01-24 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:06:24] Production.INFO: 34 MB #Memory Used# [2025-01-24 09:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:07:07 [end_date_ymd] => 2025-01-24 09:07:07 [RateCDR] => 1 ) [2025-01-24 09:07:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:07:07' and `end` < '2025-01-24 09:07:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:07:19] Production.INFO: count ==744 [2025-01-24 09:07:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:07:07 - End Time 2025-01-24 09:07:07 [2025-01-24 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318635', 'tblTempUsageDetail_20' ) start [2025-01-24 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318635', 'tblTempUsageDetail_20' ) end [2025-01-24 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318635', 'tblTempVendorCDR_20' ) start [2025-01-24 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318635', 'tblTempVendorCDR_20' ) end [2025-01-24 09:07:19] Production.INFO: ProcessCDR(1,14318635,1,1,2) [2025-01-24 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318635', 'tblTempUsageDetail_20' ) start [2025-01-24 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318635', 'tblTempUsageDetail_20' ) end [2025-01-24 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:07:25] Production.INFO: ==4625== Releasing lock... [2025-01-24 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:07:25] Production.INFO: 34.25 MB #Memory Used# [2025-01-24 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:08:05 [end_date_ymd] => 2025-01-24 09:08:05 [RateCDR] => 1 ) [2025-01-24 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:08:05' and `end` < '2025-01-24 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:08:18] Production.INFO: count ==752 [2025-01-24 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:08:05 - End Time 2025-01-24 09:08:05 [2025-01-24 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318640', 'tblTempUsageDetail_20' ) start [2025-01-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318640', 'tblTempUsageDetail_20' ) end [2025-01-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318640', 'tblTempVendorCDR_20' ) start [2025-01-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318640', 'tblTempVendorCDR_20' ) end [2025-01-24 09:08:18] Production.INFO: ProcessCDR(1,14318640,1,1,2) [2025-01-24 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318640', 'tblTempUsageDetail_20' ) start [2025-01-24 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318640', 'tblTempUsageDetail_20' ) end [2025-01-24 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:08:24] Production.INFO: ==4715== Releasing lock... [2025-01-24 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:08:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-24 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:09:05 [end_date_ymd] => 2025-01-24 09:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:09:05' and `end` < '2025-01-24 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-24 09:09:19] Production.INFO: count ==766 [2025-01-24 09:09:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:09:05 - End Time 2025-01-24 09:09:05 [2025-01-24 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318645', 'tblTempUsageDetail_20' ) start [2025-01-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318645', 'tblTempUsageDetail_20' ) end [2025-01-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318645', 'tblTempVendorCDR_20' ) start [2025-01-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318645', 'tblTempVendorCDR_20' ) end [2025-01-24 09:09:19] Production.INFO: ProcessCDR(1,14318645,1,1,2) [2025-01-24 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318645', 'tblTempUsageDetail_20' ) start [2025-01-24 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318645', 'tblTempUsageDetail_20' ) end [2025-01-24 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:09:24] Production.INFO: ==4843== Releasing lock... [2025-01-24 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:09:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-24 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:10:07 [end_date_ymd] => 2025-01-24 09:10:07 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:10:07' and `end` < '2025-01-24 09: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-24 09:10:20] Production.INFO: count ==785 [2025-01-24 09:10:20] Production.ERROR: pbx CDR StartTime 2025-01-24 06:10:07 - End Time 2025-01-24 09:10:07 [2025-01-24 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318651', 'tblTempUsageDetail_20' ) start [2025-01-24 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318651', 'tblTempUsageDetail_20' ) end [2025-01-24 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318651', 'tblTempVendorCDR_20' ) start [2025-01-24 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318651', 'tblTempVendorCDR_20' ) end [2025-01-24 09:10:20] Production.INFO: ProcessCDR(1,14318651,1,1,2) [2025-01-24 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318651', 'tblTempUsageDetail_20' ) start [2025-01-24 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318651', 'tblTempUsageDetail_20' ) end [2025-01-24 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:10:25] Production.INFO: ==4935== Releasing lock... [2025-01-24 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:10:25] Production.INFO: 34.5 MB #Memory Used# [2025-01-24 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:11:05 [end_date_ymd] => 2025-01-24 09:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:11:05' and `end` < '2025-01-24 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-24 09:11:18] Production.INFO: count ==867 [2025-01-24 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:11:05 - End Time 2025-01-24 09:11:05 [2025-01-24 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318656', 'tblTempUsageDetail_20' ) start [2025-01-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318656', 'tblTempUsageDetail_20' ) end [2025-01-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318656', 'tblTempVendorCDR_20' ) start [2025-01-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318656', 'tblTempVendorCDR_20' ) end [2025-01-24 09:11:18] Production.INFO: ProcessCDR(1,14318656,1,1,2) [2025-01-24 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318656', 'tblTempUsageDetail_20' ) start [2025-01-24 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318656', 'tblTempUsageDetail_20' ) end [2025-01-24 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:11:23] Production.INFO: ==5022== Releasing lock... [2025-01-24 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:11:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-24 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:12:06 [end_date_ymd] => 2025-01-24 09:12:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:12:06' and `end` < '2025-01-24 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-24 09:12:20] Production.INFO: count ==886 [2025-01-24 09:12:20] Production.ERROR: pbx CDR StartTime 2025-01-24 06:12:06 - End Time 2025-01-24 09:12:06 [2025-01-24 09:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318661', 'tblTempUsageDetail_20' ) start [2025-01-24 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318661', 'tblTempUsageDetail_20' ) end [2025-01-24 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318661', 'tblTempVendorCDR_20' ) start [2025-01-24 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318661', 'tblTempVendorCDR_20' ) end [2025-01-24 09:12:20] Production.INFO: ProcessCDR(1,14318661,1,1,2) [2025-01-24 09:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318661', 'tblTempUsageDetail_20' ) start [2025-01-24 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318661', 'tblTempUsageDetail_20' ) end [2025-01-24 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:12:25] Production.INFO: ==5121== Releasing lock... [2025-01-24 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:12:25] Production.INFO: 34.5 MB #Memory Used# [2025-01-24 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:13:06 [end_date_ymd] => 2025-01-24 09:13:06 [RateCDR] => 1 ) [2025-01-24 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:13:06' and `end` < '2025-01-24 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:13:18] Production.INFO: count ==897 [2025-01-24 09:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:13:06 - End Time 2025-01-24 09:13:06 [2025-01-24 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318666', 'tblTempUsageDetail_20' ) start [2025-01-24 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318666', 'tblTempUsageDetail_20' ) end [2025-01-24 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318666', 'tblTempVendorCDR_20' ) start [2025-01-24 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318666', 'tblTempVendorCDR_20' ) end [2025-01-24 09:13:19] Production.INFO: ProcessCDR(1,14318666,1,1,2) [2025-01-24 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318666', 'tblTempUsageDetail_20' ) start [2025-01-24 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318666', 'tblTempUsageDetail_20' ) end [2025-01-24 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:13:24] Production.INFO: ==5206== Releasing lock... [2025-01-24 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:13:24] Production.INFO: 35 MB #Memory Used# [2025-01-24 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:14:06 [end_date_ymd] => 2025-01-24 09:14:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:14:06' and `end` < '2025-01-24 09: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-24 09:14:25] Production.INFO: count ==910 [2025-01-24 09:14:25] Production.ERROR: pbx CDR StartTime 2025-01-24 06:14:06 - End Time 2025-01-24 09:14:06 [2025-01-24 09:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318671', 'tblTempUsageDetail_20' ) start [2025-01-24 09:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318671', 'tblTempUsageDetail_20' ) end [2025-01-24 09:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318671', 'tblTempVendorCDR_20' ) start [2025-01-24 09:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318671', 'tblTempVendorCDR_20' ) end [2025-01-24 09:14:25] Production.INFO: ProcessCDR(1,14318671,1,1,2) [2025-01-24 09:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318671', 'tblTempUsageDetail_20' ) start [2025-01-24 09:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318671', 'tblTempUsageDetail_20' ) end [2025-01-24 09:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:14:30] Production.INFO: ==5293== Releasing lock... [2025-01-24 09:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:14:30] Production.INFO: 35 MB #Memory Used# [2025-01-24 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:15:05 [end_date_ymd] => 2025-01-24 09:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:15:05' and `end` < '2025-01-24 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-24 09:15:26] Production.INFO: count ==933 [2025-01-24 09:15:26] Production.ERROR: pbx CDR StartTime 2025-01-24 06:15:05 - End Time 2025-01-24 09:15:05 [2025-01-24 09:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318676', 'tblTempUsageDetail_20' ) start [2025-01-24 09:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318676', 'tblTempUsageDetail_20' ) end [2025-01-24 09:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318676', 'tblTempVendorCDR_20' ) start [2025-01-24 09:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318676', 'tblTempVendorCDR_20' ) end [2025-01-24 09:15:26] Production.INFO: ProcessCDR(1,14318676,1,1,2) [2025-01-24 09:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318676', 'tblTempUsageDetail_20' ) start [2025-01-24 09:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318676', 'tblTempUsageDetail_20' ) end [2025-01-24 09:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:15:32] Production.INFO: ==5381== Releasing lock... [2025-01-24 09:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:15:32] Production.INFO: 35.5 MB #Memory Used# [2025-01-24 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:16:06 [end_date_ymd] => 2025-01-24 09:16:06 [RateCDR] => 1 ) [2025-01-24 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:16:06' and `end` < '2025-01-24 09:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:16:26] Production.INFO: count ==943 [2025-01-24 09:16:26] Production.ERROR: pbx CDR StartTime 2025-01-24 06:16:06 - End Time 2025-01-24 09:16:06 [2025-01-24 09:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318681', 'tblTempUsageDetail_20' ) start [2025-01-24 09:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318681', 'tblTempUsageDetail_20' ) end [2025-01-24 09:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318681', 'tblTempVendorCDR_20' ) start [2025-01-24 09:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318681', 'tblTempVendorCDR_20' ) end [2025-01-24 09:16:26] Production.INFO: ProcessCDR(1,14318681,1,1,2) [2025-01-24 09:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318681', 'tblTempUsageDetail_20' ) start [2025-01-24 09:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318681', 'tblTempUsageDetail_20' ) end [2025-01-24 09:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:16:31] Production.INFO: ==5483== Releasing lock... [2025-01-24 09:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:16:31] Production.INFO: 36 MB #Memory Used# [2025-01-24 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:17:06 [end_date_ymd] => 2025-01-24 09:17:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:17:06' and `end` < '2025-01-24 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-24 09:17:19] Production.INFO: count ==948 [2025-01-24 09:17:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:17:06 - End Time 2025-01-24 09:17:06 [2025-01-24 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318686', 'tblTempUsageDetail_20' ) start [2025-01-24 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318686', 'tblTempUsageDetail_20' ) end [2025-01-24 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318686', 'tblTempVendorCDR_20' ) start [2025-01-24 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318686', 'tblTempVendorCDR_20' ) end [2025-01-24 09:17:19] Production.INFO: ProcessCDR(1,14318686,1,1,2) [2025-01-24 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318686', 'tblTempUsageDetail_20' ) start [2025-01-24 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318686', 'tblTempUsageDetail_20' ) end [2025-01-24 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:17:24] Production.INFO: ==5561== Releasing lock... [2025-01-24 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:17:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-24 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:18:06 [end_date_ymd] => 2025-01-24 09:18:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:18:06' and `end` < '2025-01-24 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-24 09:18:21] Production.INFO: count ==956 [2025-01-24 09:18:21] Production.ERROR: pbx CDR StartTime 2025-01-24 06:18:06 - End Time 2025-01-24 09:18:06 [2025-01-24 09:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318691', 'tblTempUsageDetail_20' ) start [2025-01-24 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318691', 'tblTempUsageDetail_20' ) end [2025-01-24 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318691', 'tblTempVendorCDR_20' ) start [2025-01-24 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318691', 'tblTempVendorCDR_20' ) end [2025-01-24 09:18:21] Production.INFO: ProcessCDR(1,14318691,1,1,2) [2025-01-24 09:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318691', 'tblTempUsageDetail_20' ) start [2025-01-24 09:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318691', 'tblTempUsageDetail_20' ) end [2025-01-24 09:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:18:26] Production.INFO: ==5644== Releasing lock... [2025-01-24 09:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:18:26] Production.INFO: 35.75 MB #Memory Used# [2025-01-24 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:19:05 [end_date_ymd] => 2025-01-24 09:19:05 [RateCDR] => 1 ) [2025-01-24 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:19:05' and `end` < '2025-01-24 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:19:18] Production.INFO: count ==958 [2025-01-24 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:19:05 - End Time 2025-01-24 09:19:05 [2025-01-24 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318696', 'tblTempUsageDetail_20' ) start [2025-01-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318696', 'tblTempUsageDetail_20' ) end [2025-01-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318696', 'tblTempVendorCDR_20' ) start [2025-01-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318696', 'tblTempVendorCDR_20' ) end [2025-01-24 09:19:18] Production.INFO: ProcessCDR(1,14318696,1,1,2) [2025-01-24 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318696', 'tblTempUsageDetail_20' ) start [2025-01-24 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318696', 'tblTempUsageDetail_20' ) end [2025-01-24 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:19:22] Production.INFO: ==5728== Releasing lock... [2025-01-24 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:19:22] Production.INFO: 36 MB #Memory Used# [2025-01-24 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:20:07 [end_date_ymd] => 2025-01-24 09:20:07 [RateCDR] => 1 ) [2025-01-24 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:20:07' and `end` < '2025-01-24 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:20:24] Production.INFO: count ==991 [2025-01-24 09:20:24] Production.ERROR: pbx CDR StartTime 2025-01-24 06:20:07 - End Time 2025-01-24 09:20:07 [2025-01-24 09:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318701', 'tblTempUsageDetail_20' ) start [2025-01-24 09:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318701', 'tblTempUsageDetail_20' ) end [2025-01-24 09:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318701', 'tblTempVendorCDR_20' ) start [2025-01-24 09:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318701', 'tblTempVendorCDR_20' ) end [2025-01-24 09:20:24] Production.INFO: ProcessCDR(1,14318701,1,1,2) [2025-01-24 09:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318701', 'tblTempUsageDetail_20' ) start [2025-01-24 09:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318701', 'tblTempUsageDetail_20' ) end [2025-01-24 09:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:20:30] Production.INFO: ==5821== Releasing lock... [2025-01-24 09:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:20:30] Production.INFO: 36 MB #Memory Used# [2025-01-24 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:21:05 [end_date_ymd] => 2025-01-24 09:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:21:05' and `end` < '2025-01-24 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-24 09:21:31] Production.INFO: count ==1045 [2025-01-24 09:21:31] Production.ERROR: pbx CDR StartTime 2025-01-24 06:21:05 - End Time 2025-01-24 09:21:05 [2025-01-24 09:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318707', 'tblTempUsageDetail_20' ) start [2025-01-24 09:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318707', 'tblTempUsageDetail_20' ) end [2025-01-24 09:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318707', 'tblTempVendorCDR_20' ) start [2025-01-24 09:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318707', 'tblTempVendorCDR_20' ) end [2025-01-24 09:21:31] Production.INFO: ProcessCDR(1,14318707,1,1,2) [2025-01-24 09:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318707', 'tblTempUsageDetail_20' ) start [2025-01-24 09:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318707', 'tblTempUsageDetail_20' ) end [2025-01-24 09:21:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:21:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:21:37] Production.INFO: ==5905== Releasing lock... [2025-01-24 09:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:21:37] Production.INFO: 36.5 MB #Memory Used# [2025-01-24 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:22:06 [end_date_ymd] => 2025-01-24 09:22:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:22:06' and `end` < '2025-01-24 09: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-24 09:22:21] Production.INFO: count ==1048 [2025-01-24 09:22:22] Production.ERROR: pbx CDR StartTime 2025-01-24 06:22:06 - End Time 2025-01-24 09:22:06 [2025-01-24 09:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318712', 'tblTempUsageDetail_20' ) start [2025-01-24 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318712', 'tblTempUsageDetail_20' ) end [2025-01-24 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318712', 'tblTempVendorCDR_20' ) start [2025-01-24 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318712', 'tblTempVendorCDR_20' ) end [2025-01-24 09:22:22] Production.INFO: ProcessCDR(1,14318712,1,1,2) [2025-01-24 09:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318712', 'tblTempUsageDetail_20' ) start [2025-01-24 09:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318712', 'tblTempUsageDetail_20' ) end [2025-01-24 09:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:22:27] Production.INFO: ==5995== Releasing lock... [2025-01-24 09:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:22:27] Production.INFO: 36.5 MB #Memory Used# [2025-01-24 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:23:05 [end_date_ymd] => 2025-01-24 09:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:23:05' and `end` < '2025-01-24 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-24 09:23:18] Production.INFO: count ==1061 [2025-01-24 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:23:05 - End Time 2025-01-24 09:23:05 [2025-01-24 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318717', 'tblTempUsageDetail_20' ) start [2025-01-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318717', 'tblTempUsageDetail_20' ) end [2025-01-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318717', 'tblTempVendorCDR_20' ) start [2025-01-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318717', 'tblTempVendorCDR_20' ) end [2025-01-24 09:23:19] Production.INFO: ProcessCDR(1,14318717,1,1,2) [2025-01-24 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318717', 'tblTempUsageDetail_20' ) start [2025-01-24 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318717', 'tblTempUsageDetail_20' ) end [2025-01-24 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:23:24] Production.INFO: ==6087== Releasing lock... [2025-01-24 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:23:24] Production.INFO: 36 MB #Memory Used# [2025-01-24 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:24:06 [end_date_ymd] => 2025-01-24 09:24:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:24:06' and `end` < '2025-01-24 09: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-24 09:24:23] Production.INFO: count ==1075 [2025-01-24 09:24:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:24:06 - End Time 2025-01-24 09:24:06 [2025-01-24 09:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318722', 'tblTempUsageDetail_20' ) start [2025-01-24 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318722', 'tblTempUsageDetail_20' ) end [2025-01-24 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318722', 'tblTempVendorCDR_20' ) start [2025-01-24 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318722', 'tblTempVendorCDR_20' ) end [2025-01-24 09:24:23] Production.INFO: ProcessCDR(1,14318722,1,1,2) [2025-01-24 09:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318722', 'tblTempUsageDetail_20' ) start [2025-01-24 09:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318722', 'tblTempUsageDetail_20' ) end [2025-01-24 09:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:24:29] Production.INFO: ==6163== Releasing lock... [2025-01-24 09:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:24:29] Production.INFO: 36.25 MB #Memory Used# [2025-01-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:25:05 [end_date_ymd] => 2025-01-24 09:25:05 [RateCDR] => 1 ) [2025-01-24 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:25:05' and `end` < '2025-01-24 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:25:28] Production.INFO: count ==1101 [2025-01-24 09:25:28] Production.ERROR: pbx CDR StartTime 2025-01-24 06:25:05 - End Time 2025-01-24 09:25:05 [2025-01-24 09:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318727', 'tblTempUsageDetail_20' ) start [2025-01-24 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318727', 'tblTempUsageDetail_20' ) end [2025-01-24 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318727', 'tblTempVendorCDR_20' ) start [2025-01-24 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318727', 'tblTempVendorCDR_20' ) end [2025-01-24 09:25:29] Production.INFO: ProcessCDR(1,14318727,1,1,2) [2025-01-24 09:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318727', 'tblTempUsageDetail_20' ) start [2025-01-24 09:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318727', 'tblTempUsageDetail_20' ) end [2025-01-24 09:25:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:25:34] Production.INFO: ==6271== Releasing lock... [2025-01-24 09:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:25:34] Production.INFO: 36.25 MB #Memory Used# [2025-01-24 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:26:06 [end_date_ymd] => 2025-01-24 09:26:06 [RateCDR] => 1 ) [2025-01-24 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:26:06' and `end` < '2025-01-24 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:26:23] Production.INFO: count ==1118 [2025-01-24 09:26:24] Production.ERROR: pbx CDR StartTime 2025-01-24 06:26:06 - End Time 2025-01-24 09:26:06 [2025-01-24 09:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318732', 'tblTempUsageDetail_20' ) start [2025-01-24 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318732', 'tblTempUsageDetail_20' ) end [2025-01-24 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318732', 'tblTempVendorCDR_20' ) start [2025-01-24 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318732', 'tblTempVendorCDR_20' ) end [2025-01-24 09:26:24] Production.INFO: ProcessCDR(1,14318732,1,1,2) [2025-01-24 09:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318732', 'tblTempUsageDetail_20' ) start [2025-01-24 09:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318732', 'tblTempUsageDetail_20' ) end [2025-01-24 09:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:26:29] Production.INFO: ==6345== Releasing lock... [2025-01-24 09:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:26:29] Production.INFO: 36.75 MB #Memory Used# [2025-01-24 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:27:06 [end_date_ymd] => 2025-01-24 09:27:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:27:06' and `end` < '2025-01-24 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-24 09:27:22] Production.INFO: count ==1122 [2025-01-24 09:27:22] Production.ERROR: pbx CDR StartTime 2025-01-24 06:27:06 - End Time 2025-01-24 09:27:06 [2025-01-24 09:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318737', 'tblTempUsageDetail_20' ) start [2025-01-24 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318737', 'tblTempUsageDetail_20' ) end [2025-01-24 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318737', 'tblTempVendorCDR_20' ) start [2025-01-24 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318737', 'tblTempVendorCDR_20' ) end [2025-01-24 09:27:22] Production.INFO: ProcessCDR(1,14318737,1,1,2) [2025-01-24 09:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318737', 'tblTempUsageDetail_20' ) start [2025-01-24 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318737', 'tblTempUsageDetail_20' ) end [2025-01-24 09:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:27:27] Production.INFO: ==6416== Releasing lock... [2025-01-24 09:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:27:27] Production.INFO: 36.5 MB #Memory Used# [2025-01-24 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:28:05 [end_date_ymd] => 2025-01-24 09:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:28:05' and `end` < '2025-01-24 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-24 09:28:21] Production.INFO: count ==1132 [2025-01-24 09:28:21] Production.ERROR: pbx CDR StartTime 2025-01-24 06:28:05 - End Time 2025-01-24 09:28:05 [2025-01-24 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318742', 'tblTempUsageDetail_20' ) start [2025-01-24 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318742', 'tblTempUsageDetail_20' ) end [2025-01-24 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318742', 'tblTempVendorCDR_20' ) start [2025-01-24 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318742', 'tblTempVendorCDR_20' ) end [2025-01-24 09:28:21] Production.INFO: ProcessCDR(1,14318742,1,1,2) [2025-01-24 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318742', 'tblTempUsageDetail_20' ) start [2025-01-24 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318742', 'tblTempUsageDetail_20' ) end [2025-01-24 09:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:28:26] Production.INFO: ==6487== Releasing lock... [2025-01-24 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:28:26] Production.INFO: 36.75 MB #Memory Used# [2025-01-24 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:29:06 [end_date_ymd] => 2025-01-24 09:29:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:29:06' and `end` < '2025-01-24 09: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-24 09:29:26] Production.INFO: count ==1156 [2025-01-24 09:29:27] Production.ERROR: pbx CDR StartTime 2025-01-24 06:29:06 - End Time 2025-01-24 09:29:06 [2025-01-24 09:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318747', 'tblTempUsageDetail_20' ) start [2025-01-24 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318747', 'tblTempUsageDetail_20' ) end [2025-01-24 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318747', 'tblTempVendorCDR_20' ) start [2025-01-24 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318747', 'tblTempVendorCDR_20' ) end [2025-01-24 09:29:27] Production.INFO: ProcessCDR(1,14318747,1,1,2) [2025-01-24 09:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318747', 'tblTempUsageDetail_20' ) start [2025-01-24 09:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318747', 'tblTempUsageDetail_20' ) end [2025-01-24 09:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:29:32] Production.INFO: ==6558== Releasing lock... [2025-01-24 09:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:29:32] Production.INFO: 37 MB #Memory Used# [2025-01-24 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:30:06 [end_date_ymd] => 2025-01-24 09:30:06 [RateCDR] => 1 ) [2025-01-24 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:30:06' and `end` < '2025-01-24 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:30:34] Production.INFO: count ==1171 [2025-01-24 09:30:34] Production.ERROR: pbx CDR StartTime 2025-01-24 06:30:06 - End Time 2025-01-24 09:30:06 [2025-01-24 09:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318753', 'tblTempUsageDetail_20' ) start [2025-01-24 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318753', 'tblTempUsageDetail_20' ) end [2025-01-24 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318753', 'tblTempVendorCDR_20' ) start [2025-01-24 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318753', 'tblTempVendorCDR_20' ) end [2025-01-24 09:30:34] Production.INFO: ProcessCDR(1,14318753,1,1,2) [2025-01-24 09:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318753', 'tblTempUsageDetail_20' ) start [2025-01-24 09:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318753', 'tblTempUsageDetail_20' ) end [2025-01-24 09:30:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:30:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:30:40] Production.INFO: ==6631== Releasing lock... [2025-01-24 09:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:30:40] Production.INFO: 37 MB #Memory Used# [2025-01-24 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:31:05 [end_date_ymd] => 2025-01-24 09:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:31:05' and `end` < '2025-01-24 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-24 09:31:22] Production.INFO: count ==1243 [2025-01-24 09:31:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:31:05 - End Time 2025-01-24 09:31:05 [2025-01-24 09:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318758', 'tblTempUsageDetail_20' ) start [2025-01-24 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318758', 'tblTempUsageDetail_20' ) end [2025-01-24 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318758', 'tblTempVendorCDR_20' ) start [2025-01-24 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318758', 'tblTempVendorCDR_20' ) end [2025-01-24 09:31:23] Production.INFO: ProcessCDR(1,14318758,1,1,2) [2025-01-24 09:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318758', 'tblTempUsageDetail_20' ) start [2025-01-24 09:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318758', 'tblTempUsageDetail_20' ) end [2025-01-24 09:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:31:28] Production.INFO: ==6704== Releasing lock... [2025-01-24 09:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:31:28] Production.INFO: 38 MB #Memory Used# [2025-01-24 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:32:06 [end_date_ymd] => 2025-01-24 09:32:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:32:06' and `end` < '2025-01-24 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-24 09:32:24] Production.INFO: count ==1248 [2025-01-24 09:32:25] Production.ERROR: pbx CDR StartTime 2025-01-24 06:32:06 - End Time 2025-01-24 09:32:06 [2025-01-24 09:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318763', 'tblTempUsageDetail_20' ) start [2025-01-24 09:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318763', 'tblTempUsageDetail_20' ) end [2025-01-24 09:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318763', 'tblTempVendorCDR_20' ) start [2025-01-24 09:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318763', 'tblTempVendorCDR_20' ) end [2025-01-24 09:32:25] Production.INFO: ProcessCDR(1,14318763,1,1,2) [2025-01-24 09:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318763', 'tblTempUsageDetail_20' ) start [2025-01-24 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318763', 'tblTempUsageDetail_20' ) end [2025-01-24 09:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:32:28] Production.INFO: ==6776== Releasing lock... [2025-01-24 09:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:32:28] Production.INFO: 37.25 MB #Memory Used# [2025-01-24 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:33:05 [end_date_ymd] => 2025-01-24 09:33:05 [RateCDR] => 1 ) [2025-01-24 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:33:05' and `end` < '2025-01-24 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-24 09:33:20] Production.INFO: count ==1258 [2025-01-24 09:33:20] Production.ERROR: pbx CDR StartTime 2025-01-24 06:33:05 - End Time 2025-01-24 09:33:05 [2025-01-24 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318768', 'tblTempUsageDetail_20' ) start [2025-01-24 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318768', 'tblTempUsageDetail_20' ) end [2025-01-24 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318768', 'tblTempVendorCDR_20' ) start [2025-01-24 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318768', 'tblTempVendorCDR_20' ) end [2025-01-24 09:33:20] Production.INFO: ProcessCDR(1,14318768,1,1,2) [2025-01-24 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318768', 'tblTempUsageDetail_20' ) start [2025-01-24 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318768', 'tblTempUsageDetail_20' ) end [2025-01-24 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:33:25] Production.INFO: ==6844== Releasing lock... [2025-01-24 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:33:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:34:06 [end_date_ymd] => 2025-01-24 09:34:06 [RateCDR] => 1 ) [2025-01-24 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:34:06' and `end` < '2025-01-24 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:34:19] Production.INFO: count ==1262 [2025-01-24 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:34:06 - End Time 2025-01-24 09:34:06 [2025-01-24 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318773', 'tblTempUsageDetail_20' ) start [2025-01-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318773', 'tblTempUsageDetail_20' ) end [2025-01-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318773', 'tblTempVendorCDR_20' ) start [2025-01-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318773', 'tblTempVendorCDR_20' ) end [2025-01-24 09:34:19] Production.INFO: ProcessCDR(1,14318773,1,1,2) [2025-01-24 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318773', 'tblTempUsageDetail_20' ) start [2025-01-24 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318773', 'tblTempUsageDetail_20' ) end [2025-01-24 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:34:24] Production.INFO: ==6918== Releasing lock... [2025-01-24 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:34:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:35:05 [end_date_ymd] => 2025-01-24 09:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:35:05' and `end` < '2025-01-24 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-24 09:35:23] Production.INFO: count ==1275 [2025-01-24 09:35:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:35:05 - End Time 2025-01-24 09:35:05 [2025-01-24 09:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318778', 'tblTempUsageDetail_20' ) start [2025-01-24 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318778', 'tblTempUsageDetail_20' ) end [2025-01-24 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318778', 'tblTempVendorCDR_20' ) start [2025-01-24 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318778', 'tblTempVendorCDR_20' ) end [2025-01-24 09:35:23] Production.INFO: ProcessCDR(1,14318778,1,1,2) [2025-01-24 09:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318778', 'tblTempUsageDetail_20' ) start [2025-01-24 09:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318778', 'tblTempUsageDetail_20' ) end [2025-01-24 09:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:35:29] Production.INFO: ==6994== Releasing lock... [2025-01-24 09:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:35:29] Production.INFO: 38 MB #Memory Used# [2025-01-24 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:36:06 [end_date_ymd] => 2025-01-24 09:36:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:36:06' and `end` < '2025-01-24 09: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-24 09:36:19] Production.INFO: count ==1285 [2025-01-24 09:36:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:36:06 - End Time 2025-01-24 09:36:06 [2025-01-24 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318783', 'tblTempUsageDetail_20' ) start [2025-01-24 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318783', 'tblTempUsageDetail_20' ) end [2025-01-24 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318783', 'tblTempVendorCDR_20' ) start [2025-01-24 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318783', 'tblTempVendorCDR_20' ) end [2025-01-24 09:36:19] Production.INFO: ProcessCDR(1,14318783,1,1,2) [2025-01-24 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318783', 'tblTempUsageDetail_20' ) start [2025-01-24 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318783', 'tblTempUsageDetail_20' ) end [2025-01-24 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:36:24] Production.INFO: ==7068== Releasing lock... [2025-01-24 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:36:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:37:05 [end_date_ymd] => 2025-01-24 09:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:37:05' and `end` < '2025-01-24 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-24 09:37:18] Production.INFO: count ==1297 [2025-01-24 09:37:18] Production.ERROR: pbx CDR StartTime 2025-01-24 06:37:05 - End Time 2025-01-24 09:37:05 [2025-01-24 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318788', 'tblTempUsageDetail_20' ) start [2025-01-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318788', 'tblTempUsageDetail_20' ) end [2025-01-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318788', 'tblTempVendorCDR_20' ) start [2025-01-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318788', 'tblTempVendorCDR_20' ) end [2025-01-24 09:37:18] Production.INFO: ProcessCDR(1,14318788,1,1,2) [2025-01-24 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318788', 'tblTempUsageDetail_20' ) start [2025-01-24 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318788', 'tblTempUsageDetail_20' ) end [2025-01-24 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:37:24] Production.INFO: ==7141== Releasing lock... [2025-01-24 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:37:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:38:06 [end_date_ymd] => 2025-01-24 09:38:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:38:06' and `end` < '2025-01-24 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-24 09:38:23] Production.INFO: count ==1302 [2025-01-24 09:38:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:38:06 - End Time 2025-01-24 09:38:06 [2025-01-24 09:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318793', 'tblTempUsageDetail_20' ) start [2025-01-24 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318793', 'tblTempUsageDetail_20' ) end [2025-01-24 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318793', 'tblTempVendorCDR_20' ) start [2025-01-24 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318793', 'tblTempVendorCDR_20' ) end [2025-01-24 09:38:23] Production.INFO: ProcessCDR(1,14318793,1,1,2) [2025-01-24 09:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318793', 'tblTempUsageDetail_20' ) start [2025-01-24 09:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318793', 'tblTempUsageDetail_20' ) end [2025-01-24 09:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:38:28] Production.INFO: ==7214== Releasing lock... [2025-01-24 09:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:38:28] Production.INFO: 38 MB #Memory Used# [2025-01-24 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:39:05 [end_date_ymd] => 2025-01-24 09:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:39:05' and `end` < '2025-01-24 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-24 09:39:21] Production.INFO: count ==1333 [2025-01-24 09:39:21] Production.ERROR: pbx CDR StartTime 2025-01-24 06:39:05 - End Time 2025-01-24 09:39:05 [2025-01-24 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318798', 'tblTempUsageDetail_20' ) start [2025-01-24 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318798', 'tblTempUsageDetail_20' ) end [2025-01-24 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318798', 'tblTempVendorCDR_20' ) start [2025-01-24 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318798', 'tblTempVendorCDR_20' ) end [2025-01-24 09:39:21] Production.INFO: ProcessCDR(1,14318798,1,1,2) [2025-01-24 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318798', 'tblTempUsageDetail_20' ) start [2025-01-24 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318798', 'tblTempUsageDetail_20' ) end [2025-01-24 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:39:27] Production.INFO: ==7289== Releasing lock... [2025-01-24 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:39:27] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:40:06 [end_date_ymd] => 2025-01-24 09:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:40:06' and `end` < '2025-01-24 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-24 09:40:23] Production.INFO: count ==1356 [2025-01-24 09:40:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:40:06 - End Time 2025-01-24 09:40:06 [2025-01-24 09:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318804', 'tblTempUsageDetail_20' ) start [2025-01-24 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318804', 'tblTempUsageDetail_20' ) end [2025-01-24 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318804', 'tblTempVendorCDR_20' ) start [2025-01-24 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318804', 'tblTempVendorCDR_20' ) end [2025-01-24 09:40:23] Production.INFO: ProcessCDR(1,14318804,1,1,2) [2025-01-24 09:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318804', 'tblTempUsageDetail_20' ) start [2025-01-24 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318804', 'tblTempUsageDetail_20' ) end [2025-01-24 09:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:40:28] Production.INFO: ==7405== Releasing lock... [2025-01-24 09:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:40:28] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:41:06 [end_date_ymd] => 2025-01-24 09:41:06 [RateCDR] => 1 ) [2025-01-24 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:41:06' and `end` < '2025-01-24 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:41:26] Production.INFO: count ==1433 [2025-01-24 09:41:27] Production.ERROR: pbx CDR StartTime 2025-01-24 06:41:06 - End Time 2025-01-24 09:41:06 [2025-01-24 09:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318809', 'tblTempUsageDetail_20' ) start [2025-01-24 09:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318809', 'tblTempUsageDetail_20' ) end [2025-01-24 09:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318809', 'tblTempVendorCDR_20' ) start [2025-01-24 09:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318809', 'tblTempVendorCDR_20' ) end [2025-01-24 09:41:27] Production.INFO: ProcessCDR(1,14318809,1,1,2) [2025-01-24 09:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318809', 'tblTempUsageDetail_20' ) start [2025-01-24 09:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318809', 'tblTempUsageDetail_20' ) end [2025-01-24 09:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:41:32] Production.INFO: ==7483== Releasing lock... [2025-01-24 09:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:41:32] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:42:06 [end_date_ymd] => 2025-01-24 09:42:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:42:06' and `end` < '2025-01-24 09: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-24 09:42:22] Production.INFO: count ==1441 [2025-01-24 09:42:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:42:06 - End Time 2025-01-24 09:42:06 [2025-01-24 09:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318814', 'tblTempUsageDetail_20' ) start [2025-01-24 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318814', 'tblTempUsageDetail_20' ) end [2025-01-24 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318814', 'tblTempVendorCDR_20' ) start [2025-01-24 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318814', 'tblTempVendorCDR_20' ) end [2025-01-24 09:42:23] Production.INFO: ProcessCDR(1,14318814,1,1,2) [2025-01-24 09:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318814', 'tblTempUsageDetail_20' ) start [2025-01-24 09:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318814', 'tblTempUsageDetail_20' ) end [2025-01-24 09:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:42:27] Production.INFO: ==7557== Releasing lock... [2025-01-24 09:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:42:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-24 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:43:05 [end_date_ymd] => 2025-01-24 09:43:05 [RateCDR] => 1 ) [2025-01-24 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:43:05' and `end` < '2025-01-24 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:43:21] Production.INFO: count ==1452 [2025-01-24 09:43:22] Production.ERROR: pbx CDR StartTime 2025-01-24 06:43:05 - End Time 2025-01-24 09:43:05 [2025-01-24 09:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318819', 'tblTempUsageDetail_20' ) start [2025-01-24 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318819', 'tblTempUsageDetail_20' ) end [2025-01-24 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318819', 'tblTempVendorCDR_20' ) start [2025-01-24 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318819', 'tblTempVendorCDR_20' ) end [2025-01-24 09:43:22] Production.INFO: ProcessCDR(1,14318819,1,1,2) [2025-01-24 09:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318819', 'tblTempUsageDetail_20' ) start [2025-01-24 09:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318819', 'tblTempUsageDetail_20' ) end [2025-01-24 09:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:43:27] Production.INFO: ==7635== Releasing lock... [2025-01-24 09:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:43:27] Production.INFO: 39 MB #Memory Used# [2025-01-24 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:44:06 [end_date_ymd] => 2025-01-24 09:44:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:44:06' and `end` < '2025-01-24 09: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-24 09:44:21] Production.INFO: count ==1464 [2025-01-24 09:44:22] Production.ERROR: pbx CDR StartTime 2025-01-24 06:44:06 - End Time 2025-01-24 09:44:06 [2025-01-24 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318824', 'tblTempUsageDetail_20' ) start [2025-01-24 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318824', 'tblTempUsageDetail_20' ) end [2025-01-24 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318824', 'tblTempVendorCDR_20' ) start [2025-01-24 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318824', 'tblTempVendorCDR_20' ) end [2025-01-24 09:44:22] Production.INFO: ProcessCDR(1,14318824,1,1,2) [2025-01-24 09:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318824', 'tblTempUsageDetail_20' ) start [2025-01-24 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318824', 'tblTempUsageDetail_20' ) end [2025-01-24 09:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:44:27] Production.INFO: ==7714== Releasing lock... [2025-01-24 09:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:44:27] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:45:06 [end_date_ymd] => 2025-01-24 09:45:06 [RateCDR] => 1 ) [2025-01-24 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:45:06' and `end` < '2025-01-24 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:45:19] Production.INFO: count ==1474 [2025-01-24 09:45:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:45:06 - End Time 2025-01-24 09:45:06 [2025-01-24 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318829', 'tblTempUsageDetail_20' ) start [2025-01-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318829', 'tblTempUsageDetail_20' ) end [2025-01-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318829', 'tblTempVendorCDR_20' ) start [2025-01-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318829', 'tblTempVendorCDR_20' ) end [2025-01-24 09:45:19] Production.INFO: ProcessCDR(1,14318829,1,1,2) [2025-01-24 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318829', 'tblTempUsageDetail_20' ) start [2025-01-24 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318829', 'tblTempUsageDetail_20' ) end [2025-01-24 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:45:25] Production.INFO: ==7788== Releasing lock... [2025-01-24 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:45:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:46:06 [end_date_ymd] => 2025-01-24 09:46:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:46:06' and `end` < '2025-01-24 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-24 09:46:32] Production.INFO: count ==1501 [2025-01-24 09:46:33] Production.ERROR: pbx CDR StartTime 2025-01-24 06:46:06 - End Time 2025-01-24 09:46:06 [2025-01-24 09:46:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318834', 'tblTempUsageDetail_20' ) start [2025-01-24 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318834', 'tblTempUsageDetail_20' ) end [2025-01-24 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318834', 'tblTempVendorCDR_20' ) start [2025-01-24 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318834', 'tblTempVendorCDR_20' ) end [2025-01-24 09:46:33] Production.INFO: ProcessCDR(1,14318834,1,1,2) [2025-01-24 09:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:46:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318834', 'tblTempUsageDetail_20' ) start [2025-01-24 09:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318834', 'tblTempUsageDetail_20' ) end [2025-01-24 09:46:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:46:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:46:38] Production.INFO: ==7863== Releasing lock... [2025-01-24 09:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:46:38] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:47:05 [end_date_ymd] => 2025-01-24 09:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:47:05' and `end` < '2025-01-24 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-24 09:47:25] Production.INFO: count ==1518 [2025-01-24 09:47:25] Production.ERROR: pbx CDR StartTime 2025-01-24 06:47:05 - End Time 2025-01-24 09:47:05 [2025-01-24 09:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318839', 'tblTempUsageDetail_20' ) start [2025-01-24 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318839', 'tblTempUsageDetail_20' ) end [2025-01-24 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318839', 'tblTempVendorCDR_20' ) start [2025-01-24 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318839', 'tblTempVendorCDR_20' ) end [2025-01-24 09:47:25] Production.INFO: ProcessCDR(1,14318839,1,1,2) [2025-01-24 09:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318839', 'tblTempUsageDetail_20' ) start [2025-01-24 09:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318839', 'tblTempUsageDetail_20' ) end [2025-01-24 09:47:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:47:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:47:31] Production.INFO: ==7945== Releasing lock... [2025-01-24 09:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:47:31] Production.INFO: 39.5 MB #Memory Used# [2025-01-24 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:48:06 [end_date_ymd] => 2025-01-24 09:48:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:48:06' and `end` < '2025-01-24 09: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-24 09:48:23] Production.INFO: count ==1550 [2025-01-24 09:48:24] Production.ERROR: pbx CDR StartTime 2025-01-24 06:48:06 - End Time 2025-01-24 09:48:06 [2025-01-24 09:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318844', 'tblTempUsageDetail_20' ) start [2025-01-24 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318844', 'tblTempUsageDetail_20' ) end [2025-01-24 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318844', 'tblTempVendorCDR_20' ) start [2025-01-24 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318844', 'tblTempVendorCDR_20' ) end [2025-01-24 09:48:24] Production.INFO: ProcessCDR(1,14318844,1,1,2) [2025-01-24 09:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318844', 'tblTempUsageDetail_20' ) start [2025-01-24 09:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318844', 'tblTempUsageDetail_20' ) end [2025-01-24 09:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:48:29] Production.INFO: ==8020== Releasing lock... [2025-01-24 09:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:48:29] Production.INFO: 39.5 MB #Memory Used# [2025-01-24 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:49:05 [end_date_ymd] => 2025-01-24 09:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:49:05' and `end` < '2025-01-24 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-24 09:49:22] Production.INFO: count ==1562 [2025-01-24 09:49:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:49:05 - End Time 2025-01-24 09:49:05 [2025-01-24 09:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318849', 'tblTempUsageDetail_20' ) start [2025-01-24 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318849', 'tblTempUsageDetail_20' ) end [2025-01-24 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318849', 'tblTempVendorCDR_20' ) start [2025-01-24 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318849', 'tblTempVendorCDR_20' ) end [2025-01-24 09:49:23] Production.INFO: ProcessCDR(1,14318849,1,1,2) [2025-01-24 09:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318849', 'tblTempUsageDetail_20' ) start [2025-01-24 09:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318849', 'tblTempUsageDetail_20' ) end [2025-01-24 09:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:49:28] Production.INFO: ==8096== Releasing lock... [2025-01-24 09:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:49:28] Production.INFO: 40 MB #Memory Used# [2025-01-24 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:50:07 [end_date_ymd] => 2025-01-24 09:50:07 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:50:07' and `end` < '2025-01-24 09: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-24 09:50:30] Production.INFO: count ==1599 [2025-01-24 09:50:31] Production.ERROR: pbx CDR StartTime 2025-01-24 06:50:07 - End Time 2025-01-24 09:50:07 [2025-01-24 09:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318855', 'tblTempUsageDetail_20' ) start [2025-01-24 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318855', 'tblTempUsageDetail_20' ) end [2025-01-24 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318855', 'tblTempVendorCDR_20' ) start [2025-01-24 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318855', 'tblTempVendorCDR_20' ) end [2025-01-24 09:50:31] Production.INFO: ProcessCDR(1,14318855,1,1,2) [2025-01-24 09:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318855', 'tblTempUsageDetail_20' ) start [2025-01-24 09:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318855', 'tblTempUsageDetail_20' ) end [2025-01-24 09:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:50:36] Production.INFO: ==8178== Releasing lock... [2025-01-24 09:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:50:36] Production.INFO: 40 MB #Memory Used# [2025-01-24 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:51:05 [end_date_ymd] => 2025-01-24 09:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:51:05' and `end` < '2025-01-24 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-24 09:51:22] Production.INFO: count ==1688 [2025-01-24 09:51:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:51:05 - End Time 2025-01-24 09:51:05 [2025-01-24 09:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318860', 'tblTempUsageDetail_20' ) start [2025-01-24 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318860', 'tblTempUsageDetail_20' ) end [2025-01-24 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318860', 'tblTempVendorCDR_20' ) start [2025-01-24 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318860', 'tblTempVendorCDR_20' ) end [2025-01-24 09:51:23] Production.INFO: ProcessCDR(1,14318860,1,1,2) [2025-01-24 09:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318860', 'tblTempUsageDetail_20' ) start [2025-01-24 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318860', 'tblTempUsageDetail_20' ) end [2025-01-24 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:51:26] Production.INFO: ==8253== Releasing lock... [2025-01-24 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:51:26] Production.INFO: 40.75 MB #Memory Used# [2025-01-24 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:52:05 [end_date_ymd] => 2025-01-24 09:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:52:05' and `end` < '2025-01-24 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-24 09:52:21] Production.INFO: count ==1717 [2025-01-24 09:52:22] Production.ERROR: pbx CDR StartTime 2025-01-24 06:52:05 - End Time 2025-01-24 09:52:05 [2025-01-24 09:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318865', 'tblTempUsageDetail_20' ) start [2025-01-24 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318865', 'tblTempUsageDetail_20' ) end [2025-01-24 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318865', 'tblTempVendorCDR_20' ) start [2025-01-24 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318865', 'tblTempVendorCDR_20' ) end [2025-01-24 09:52:22] Production.INFO: ProcessCDR(1,14318865,1,1,2) [2025-01-24 09:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318865', 'tblTempUsageDetail_20' ) start [2025-01-24 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318865', 'tblTempUsageDetail_20' ) end [2025-01-24 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:52:27] Production.INFO: ==8329== Releasing lock... [2025-01-24 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:52:27] Production.INFO: 41 MB #Memory Used# [2025-01-24 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:53:06 [end_date_ymd] => 2025-01-24 09:53:06 [RateCDR] => 1 ) [2025-01-24 09: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-24 06:53:06' and `end` < '2025-01-24 09: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-24 09:53:22] Production.INFO: count ==1729 [2025-01-24 09:53:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:53:06 - End Time 2025-01-24 09:53:06 [2025-01-24 09:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318870', 'tblTempUsageDetail_20' ) start [2025-01-24 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318870', 'tblTempUsageDetail_20' ) end [2025-01-24 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318870', 'tblTempVendorCDR_20' ) start [2025-01-24 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318870', 'tblTempVendorCDR_20' ) end [2025-01-24 09:53:23] Production.INFO: ProcessCDR(1,14318870,1,1,2) [2025-01-24 09:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318870', 'tblTempUsageDetail_20' ) start [2025-01-24 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318870', 'tblTempUsageDetail_20' ) end [2025-01-24 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:53:27] Production.INFO: ==8408== Releasing lock... [2025-01-24 09:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:53:27] Production.INFO: 41 MB #Memory Used# [2025-01-24 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:54:06 [end_date_ymd] => 2025-01-24 09:54:06 [RateCDR] => 1 ) [2025-01-24 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:54:06' and `end` < '2025-01-24 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:54:22] Production.INFO: count ==1751 [2025-01-24 09:54:23] Production.ERROR: pbx CDR StartTime 2025-01-24 06:54:06 - End Time 2025-01-24 09:54:06 [2025-01-24 09:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318875', 'tblTempUsageDetail_20' ) start [2025-01-24 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318875', 'tblTempUsageDetail_20' ) end [2025-01-24 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318875', 'tblTempVendorCDR_20' ) start [2025-01-24 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318875', 'tblTempVendorCDR_20' ) end [2025-01-24 09:54:23] Production.INFO: ProcessCDR(1,14318875,1,1,2) [2025-01-24 09:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318875', 'tblTempUsageDetail_20' ) start [2025-01-24 09:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318875', 'tblTempUsageDetail_20' ) end [2025-01-24 09:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:54:29] Production.INFO: ==8485== Releasing lock... [2025-01-24 09:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:54:29] Production.INFO: 41.25 MB #Memory Used# [2025-01-24 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:55:06 [end_date_ymd] => 2025-01-24 09:55:06 [RateCDR] => 1 ) [2025-01-24 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-24 06:55:06' and `end` < '2025-01-24 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-24 09:55:22] Production.INFO: count ==1761 [2025-01-24 09:55:22] Production.ERROR: pbx CDR StartTime 2025-01-24 06:55:06 - End Time 2025-01-24 09:55:06 [2025-01-24 09:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318880', 'tblTempUsageDetail_20' ) start [2025-01-24 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318880', 'tblTempUsageDetail_20' ) end [2025-01-24 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318880', 'tblTempVendorCDR_20' ) start [2025-01-24 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318880', 'tblTempVendorCDR_20' ) end [2025-01-24 09:55:23] Production.INFO: ProcessCDR(1,14318880,1,1,2) [2025-01-24 09:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318880', 'tblTempUsageDetail_20' ) start [2025-01-24 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318880', 'tblTempUsageDetail_20' ) end [2025-01-24 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:55:26] Production.INFO: ==8567== Releasing lock... [2025-01-24 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:55:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-24 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:56:06 [end_date_ymd] => 2025-01-24 09:56:06 [RateCDR] => 1 ) [2025-01-24 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 06:56:06' and `end` < '2025-01-24 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 09:56:19] Production.INFO: count ==1775 [2025-01-24 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-24 06:56:06 - End Time 2025-01-24 09:56:06 [2025-01-24 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318885', 'tblTempUsageDetail_20' ) start [2025-01-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318885', 'tblTempUsageDetail_20' ) end [2025-01-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318885', 'tblTempVendorCDR_20' ) start [2025-01-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318885', 'tblTempVendorCDR_20' ) end [2025-01-24 09:56:20] Production.INFO: ProcessCDR(1,14318885,1,1,2) [2025-01-24 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318885', 'tblTempUsageDetail_20' ) start [2025-01-24 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318885', 'tblTempUsageDetail_20' ) end [2025-01-24 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:56:25] Production.INFO: ==8681== Releasing lock... [2025-01-24 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:56:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:57:05 [end_date_ymd] => 2025-01-24 09:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:57:05' and `end` < '2025-01-24 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-24 09:57:19] Production.INFO: count ==1786 [2025-01-24 09:57:19] Production.ERROR: pbx CDR StartTime 2025-01-24 06:57:05 - End Time 2025-01-24 09:57:05 [2025-01-24 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318890', 'tblTempUsageDetail_20' ) start [2025-01-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318890', 'tblTempUsageDetail_20' ) end [2025-01-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318890', 'tblTempVendorCDR_20' ) start [2025-01-24 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318890', 'tblTempVendorCDR_20' ) end [2025-01-24 09:57:19] Production.INFO: ProcessCDR(1,14318890,1,1,2) [2025-01-24 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318890', 'tblTempUsageDetail_20' ) start [2025-01-24 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318890', 'tblTempUsageDetail_20' ) end [2025-01-24 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:57:25] Production.INFO: ==8757== Releasing lock... [2025-01-24 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:57:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-24 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:58:05 [end_date_ymd] => 2025-01-24 09:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:58:05' and `end` < '2025-01-24 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-24 09:58:20] Production.INFO: count ==1803 [2025-01-24 09:58:21] Production.ERROR: pbx CDR StartTime 2025-01-24 06:58:05 - End Time 2025-01-24 09:58:05 [2025-01-24 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318895', 'tblTempUsageDetail_20' ) start [2025-01-24 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318895', 'tblTempUsageDetail_20' ) end [2025-01-24 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318895', 'tblTempVendorCDR_20' ) start [2025-01-24 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318895', 'tblTempVendorCDR_20' ) end [2025-01-24 09:58:21] Production.INFO: ProcessCDR(1,14318895,1,1,2) [2025-01-24 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318895', 'tblTempUsageDetail_20' ) start [2025-01-24 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318895', 'tblTempUsageDetail_20' ) end [2025-01-24 09:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:58:26] Production.INFO: ==8834== Releasing lock... [2025-01-24 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:58:26] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 06:59:05 [end_date_ymd] => 2025-01-24 09:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 06:59:05' and `end` < '2025-01-24 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-24 09:59:20] Production.INFO: count ==1809 [2025-01-24 09:59:21] Production.ERROR: pbx CDR StartTime 2025-01-24 06:59:05 - End Time 2025-01-24 09:59:05 [2025-01-24 09:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318900', 'tblTempUsageDetail_20' ) start [2025-01-24 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318900', 'tblTempUsageDetail_20' ) end [2025-01-24 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318900', 'tblTempVendorCDR_20' ) start [2025-01-24 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318900', 'tblTempVendorCDR_20' ) end [2025-01-24 09:59:21] Production.INFO: ProcessCDR(1,14318900,1,1,2) [2025-01-24 09:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318900', 'tblTempUsageDetail_20' ) start [2025-01-24 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318900', 'tblTempUsageDetail_20' ) end [2025-01-24 09:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 09:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 09:59:26] Production.INFO: ==8909== Releasing lock... [2025-01-24 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 09:59:26] Production.INFO: 42 MB #Memory Used# [2025-01-24 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:00:06 [end_date_ymd] => 2025-01-24 10:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:00:06' and `end` < '2025-01-24 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-24 10:00:30] Production.INFO: count ==1825 [2025-01-24 10:00:30] Production.ERROR: pbx CDR StartTime 2025-01-24 07:00:06 - End Time 2025-01-24 10:00:06 [2025-01-24 10:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318905', 'tblTempUsageDetail_20' ) start [2025-01-24 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318905', 'tblTempUsageDetail_20' ) end [2025-01-24 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318905', 'tblTempVendorCDR_20' ) start [2025-01-24 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318905', 'tblTempVendorCDR_20' ) end [2025-01-24 10:00:30] Production.INFO: ProcessCDR(1,14318905,1,1,2) [2025-01-24 10:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318905', 'tblTempUsageDetail_20' ) start [2025-01-24 10:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318905', 'tblTempUsageDetail_20' ) end [2025-01-24 10:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:00:36] Production.INFO: ==8988== Releasing lock... [2025-01-24 10:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:00:36] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:01:05 [end_date_ymd] => 2025-01-24 10:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:01:05' and `end` < '2025-01-24 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-24 10:01:24] Production.INFO: count ==1965 [2025-01-24 10:01:24] Production.ERROR: pbx CDR StartTime 2025-01-24 07:01:05 - End Time 2025-01-24 10:01:05 [2025-01-24 10:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318911', 'tblTempUsageDetail_20' ) start [2025-01-24 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318911', 'tblTempUsageDetail_20' ) end [2025-01-24 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318911', 'tblTempVendorCDR_20' ) start [2025-01-24 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318911', 'tblTempVendorCDR_20' ) end [2025-01-24 10:01:25] Production.INFO: ProcessCDR(1,14318911,1,1,2) [2025-01-24 10:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318911', 'tblTempUsageDetail_20' ) start [2025-01-24 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318911', 'tblTempUsageDetail_20' ) end [2025-01-24 10:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:01:30] Production.INFO: ==9080== Releasing lock... [2025-01-24 10:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:01:30] Production.INFO: 42.75 MB #Memory Used# [2025-01-24 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:02:05 [end_date_ymd] => 2025-01-24 10:02:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:02:05' and `end` < '2025-01-24 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-24 10:02:20] Production.INFO: count ==1972 [2025-01-24 10:02:21] Production.ERROR: pbx CDR StartTime 2025-01-24 07:02:05 - End Time 2025-01-24 10:02:05 [2025-01-24 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318913', 'tblTempUsageDetail_20' ) start [2025-01-24 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318913', 'tblTempUsageDetail_20' ) end [2025-01-24 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318913', 'tblTempVendorCDR_20' ) start [2025-01-24 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318913', 'tblTempVendorCDR_20' ) end [2025-01-24 10:02:21] Production.INFO: ProcessCDR(1,14318913,1,1,2) [2025-01-24 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318913', 'tblTempUsageDetail_20' ) start [2025-01-24 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318913', 'tblTempUsageDetail_20' ) end [2025-01-24 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:02:26] Production.INFO: ==9154== Releasing lock... [2025-01-24 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:02:26] Production.INFO: 43 MB #Memory Used# [2025-01-24 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:03:06 [end_date_ymd] => 2025-01-24 10:03:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:03:06' and `end` < '2025-01-24 10: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-24 10:03:20] Production.INFO: count ==1979 [2025-01-24 10:03:21] Production.ERROR: pbx CDR StartTime 2025-01-24 07:03:06 - End Time 2025-01-24 10:03:06 [2025-01-24 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318921', 'tblTempUsageDetail_20' ) start [2025-01-24 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318921', 'tblTempUsageDetail_20' ) end [2025-01-24 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318921', 'tblTempVendorCDR_20' ) start [2025-01-24 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318921', 'tblTempVendorCDR_20' ) end [2025-01-24 10:03:21] Production.INFO: ProcessCDR(1,14318921,1,1,2) [2025-01-24 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318921', 'tblTempUsageDetail_20' ) start [2025-01-24 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318921', 'tblTempUsageDetail_20' ) end [2025-01-24 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:03:26] Production.INFO: ==9230== Releasing lock... [2025-01-24 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:03:26] Production.INFO: 43 MB #Memory Used# [2025-01-24 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:04:06 [end_date_ymd] => 2025-01-24 10:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:04:06' and `end` < '2025-01-24 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-24 10:04:21] Production.INFO: count ==1993 [2025-01-24 10:04:22] Production.ERROR: pbx CDR StartTime 2025-01-24 07:04:06 - End Time 2025-01-24 10:04:06 [2025-01-24 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318926', 'tblTempUsageDetail_20' ) start [2025-01-24 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318926', 'tblTempUsageDetail_20' ) end [2025-01-24 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318926', 'tblTempVendorCDR_20' ) start [2025-01-24 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318926', 'tblTempVendorCDR_20' ) end [2025-01-24 10:04:22] Production.INFO: ProcessCDR(1,14318926,1,1,2) [2025-01-24 10:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318926', 'tblTempUsageDetail_20' ) start [2025-01-24 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318926', 'tblTempUsageDetail_20' ) end [2025-01-24 10:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:04:27] Production.INFO: ==9307== Releasing lock... [2025-01-24 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:04:27] Production.INFO: 43 MB #Memory Used# [2025-01-24 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:05:06 [end_date_ymd] => 2025-01-24 10:05:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:05:06' and `end` < '2025-01-24 10: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-24 10:05:23] Production.INFO: count ==2000 [2025-01-24 10:05:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:05:06 - End Time 2025-01-24 10:05:06 [2025-01-24 10:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318931', 'tblTempUsageDetail_20' ) start [2025-01-24 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318931', 'tblTempUsageDetail_20' ) end [2025-01-24 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318931', 'tblTempVendorCDR_20' ) start [2025-01-24 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318931', 'tblTempVendorCDR_20' ) end [2025-01-24 10:05:24] Production.INFO: ProcessCDR(1,14318931,1,1,2) [2025-01-24 10:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318931', 'tblTempUsageDetail_20' ) start [2025-01-24 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318931', 'tblTempUsageDetail_20' ) end [2025-01-24 10:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:05:27] Production.INFO: ==9382== Releasing lock... [2025-01-24 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:05:27] Production.INFO: 43.25 MB #Memory Used# [2025-01-24 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:06:05 [end_date_ymd] => 2025-01-24 10:06:05 [RateCDR] => 1 ) [2025-01-24 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:06:05' and `end` < '2025-01-24 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:06:29] Production.INFO: count ==2041 [2025-01-24 10:06:30] Production.ERROR: pbx CDR StartTime 2025-01-24 07:06:05 - End Time 2025-01-24 10:06:05 [2025-01-24 10:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318936', 'tblTempUsageDetail_20' ) start [2025-01-24 10:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318936', 'tblTempUsageDetail_20' ) end [2025-01-24 10:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318936', 'tblTempVendorCDR_20' ) start [2025-01-24 10:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318936', 'tblTempVendorCDR_20' ) end [2025-01-24 10:06:30] Production.INFO: ProcessCDR(1,14318936,1,1,2) [2025-01-24 10:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318936', 'tblTempUsageDetail_20' ) start [2025-01-24 10:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318936', 'tblTempUsageDetail_20' ) end [2025-01-24 10:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:06:36] Production.INFO: ==9456== Releasing lock... [2025-01-24 10:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:06:36] Production.INFO: 43.5 MB #Memory Used# [2025-01-24 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:07:06 [end_date_ymd] => 2025-01-24 10:07:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:07:06' and `end` < '2025-01-24 10: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-24 10:07:27] Production.INFO: count ==2052 [2025-01-24 10:07:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:07:06 - End Time 2025-01-24 10:07:06 [2025-01-24 10:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318941', 'tblTempUsageDetail_20' ) start [2025-01-24 10:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318941', 'tblTempUsageDetail_20' ) end [2025-01-24 10:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318941', 'tblTempVendorCDR_20' ) start [2025-01-24 10:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318941', 'tblTempVendorCDR_20' ) end [2025-01-24 10:07:28] Production.INFO: ProcessCDR(1,14318941,1,1,2) [2025-01-24 10:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318941', 'tblTempUsageDetail_20' ) start [2025-01-24 10:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318941', 'tblTempUsageDetail_20' ) end [2025-01-24 10:07:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:07:33] Production.INFO: ==9529== Releasing lock... [2025-01-24 10:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:07:33] Production.INFO: 43.5 MB #Memory Used# [2025-01-24 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:08:05 [end_date_ymd] => 2025-01-24 10:08:05 [RateCDR] => 1 ) [2025-01-24 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:08:05' and `end` < '2025-01-24 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:08:25] Production.INFO: count ==2066 [2025-01-24 10:08:26] Production.ERROR: pbx CDR StartTime 2025-01-24 07:08:05 - End Time 2025-01-24 10:08:05 [2025-01-24 10:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318946', 'tblTempUsageDetail_20' ) start [2025-01-24 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318946', 'tblTempUsageDetail_20' ) end [2025-01-24 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318946', 'tblTempVendorCDR_20' ) start [2025-01-24 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318946', 'tblTempVendorCDR_20' ) end [2025-01-24 10:08:26] Production.INFO: ProcessCDR(1,14318946,1,1,2) [2025-01-24 10:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318946', 'tblTempUsageDetail_20' ) start [2025-01-24 10:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318946', 'tblTempUsageDetail_20' ) end [2025-01-24 10:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:08:32] Production.INFO: ==9607== Releasing lock... [2025-01-24 10:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:08:32] Production.INFO: 43.75 MB #Memory Used# [2025-01-24 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:09:06 [end_date_ymd] => 2025-01-24 10:09:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:09:06' and `end` < '2025-01-24 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-24 10:09:29] Production.INFO: count ==2102 [2025-01-24 10:09:30] Production.ERROR: pbx CDR StartTime 2025-01-24 07:09:06 - End Time 2025-01-24 10:09:06 [2025-01-24 10:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318951', 'tblTempUsageDetail_20' ) start [2025-01-24 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318951', 'tblTempUsageDetail_20' ) end [2025-01-24 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318951', 'tblTempVendorCDR_20' ) start [2025-01-24 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318951', 'tblTempVendorCDR_20' ) end [2025-01-24 10:09:30] Production.INFO: ProcessCDR(1,14318951,1,1,2) [2025-01-24 10:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318951', 'tblTempUsageDetail_20' ) start [2025-01-24 10:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318951', 'tblTempUsageDetail_20' ) end [2025-01-24 10:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:09:35] Production.INFO: ==9684== Releasing lock... [2025-01-24 10:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:09:35] Production.INFO: 44.25 MB #Memory Used# [2025-01-24 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:10:06 [end_date_ymd] => 2025-01-24 10:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:10:06' and `end` < '2025-01-24 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-24 10:10:28] Production.INFO: count ==2143 [2025-01-24 10:10:29] Production.ERROR: pbx CDR StartTime 2025-01-24 07:10:06 - End Time 2025-01-24 10:10:06 [2025-01-24 10:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318957', 'tblTempUsageDetail_20' ) start [2025-01-24 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318957', 'tblTempUsageDetail_20' ) end [2025-01-24 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318957', 'tblTempVendorCDR_20' ) start [2025-01-24 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318957', 'tblTempVendorCDR_20' ) end [2025-01-24 10:10:29] Production.INFO: ProcessCDR(1,14318957,1,1,2) [2025-01-24 10:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318957', 'tblTempUsageDetail_20' ) start [2025-01-24 10:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318957', 'tblTempUsageDetail_20' ) end [2025-01-24 10:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:10:34] Production.INFO: ==9760== Releasing lock... [2025-01-24 10:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:10:34] Production.INFO: 44.25 MB #Memory Used# [2025-01-24 10:11:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:11:07 [end_date_ymd] => 2025-01-24 10:11:07 [RateCDR] => 1 ) [2025-01-24 10:11: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-24 07:11:07' and `end` < '2025-01-24 10:11: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-24 10:11:26] Production.INFO: count ==2269 [2025-01-24 10:11:27] Production.ERROR: pbx CDR StartTime 2025-01-24 07:11:07 - End Time 2025-01-24 10:11:07 [2025-01-24 10:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318962', 'tblTempUsageDetail_20' ) start [2025-01-24 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318962', 'tblTempUsageDetail_20' ) end [2025-01-24 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318962', 'tblTempVendorCDR_20' ) start [2025-01-24 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318962', 'tblTempVendorCDR_20' ) end [2025-01-24 10:11:27] Production.INFO: ProcessCDR(1,14318962,1,1,2) [2025-01-24 10:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318962', 'tblTempUsageDetail_20' ) start [2025-01-24 10:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318962', 'tblTempUsageDetail_20' ) end [2025-01-24 10:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:11:32] Production.INFO: ==9878== Releasing lock... [2025-01-24 10:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:11:32] Production.INFO: 45 MB #Memory Used# [2025-01-24 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:12:06 [end_date_ymd] => 2025-01-24 10:12:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:12:06' and `end` < '2025-01-24 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-24 10:12:22] Production.INFO: count ==2279 [2025-01-24 10:12:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:12:06 - End Time 2025-01-24 10:12:06 [2025-01-24 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318967', 'tblTempUsageDetail_20' ) start [2025-01-24 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318967', 'tblTempUsageDetail_20' ) end [2025-01-24 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318967', 'tblTempVendorCDR_20' ) start [2025-01-24 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318967', 'tblTempVendorCDR_20' ) end [2025-01-24 10:12:23] Production.INFO: ProcessCDR(1,14318967,1,1,2) [2025-01-24 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318967', 'tblTempUsageDetail_20' ) start [2025-01-24 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318967', 'tblTempUsageDetail_20' ) end [2025-01-24 10:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:12:28] Production.INFO: ==9954== Releasing lock... [2025-01-24 10:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:12:28] Production.INFO: 45.25 MB #Memory Used# [2025-01-24 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:13:05 [end_date_ymd] => 2025-01-24 10:13:05 [RateCDR] => 1 ) [2025-01-24 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:13:05' and `end` < '2025-01-24 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:13:23] Production.INFO: count ==2290 [2025-01-24 10:13:24] Production.ERROR: pbx CDR StartTime 2025-01-24 07:13:05 - End Time 2025-01-24 10:13:05 [2025-01-24 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318972', 'tblTempUsageDetail_20' ) start [2025-01-24 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318972', 'tblTempUsageDetail_20' ) end [2025-01-24 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318972', 'tblTempVendorCDR_20' ) start [2025-01-24 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318972', 'tblTempVendorCDR_20' ) end [2025-01-24 10:13:24] Production.INFO: ProcessCDR(1,14318972,1,1,2) [2025-01-24 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318972', 'tblTempUsageDetail_20' ) start [2025-01-24 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318972', 'tblTempUsageDetail_20' ) end [2025-01-24 10:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:13:29] Production.INFO: ==10024== Releasing lock... [2025-01-24 10:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:13:29] Production.INFO: 45.25 MB #Memory Used# [2025-01-24 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:14:05 [end_date_ymd] => 2025-01-24 10:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:14:05' and `end` < '2025-01-24 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-24 10:14:23] Production.INFO: count ==2302 [2025-01-24 10:14:24] Production.ERROR: pbx CDR StartTime 2025-01-24 07:14:05 - End Time 2025-01-24 10:14:05 [2025-01-24 10:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318977', 'tblTempUsageDetail_20' ) start [2025-01-24 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318977', 'tblTempUsageDetail_20' ) end [2025-01-24 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318977', 'tblTempVendorCDR_20' ) start [2025-01-24 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318977', 'tblTempVendorCDR_20' ) end [2025-01-24 10:14:24] Production.INFO: ProcessCDR(1,14318977,1,1,2) [2025-01-24 10:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318977', 'tblTempUsageDetail_20' ) start [2025-01-24 10:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318977', 'tblTempUsageDetail_20' ) end [2025-01-24 10:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:14:29] Production.INFO: ==10110== Releasing lock... [2025-01-24 10:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:14:29] Production.INFO: 45.5 MB #Memory Used# [2025-01-24 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:15:05 [end_date_ymd] => 2025-01-24 10:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:15:05' and `end` < '2025-01-24 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-24 10:15:28] Production.INFO: count ==2333 [2025-01-24 10:15:29] Production.ERROR: pbx CDR StartTime 2025-01-24 07:15:05 - End Time 2025-01-24 10:15:05 [2025-01-24 10:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318982', 'tblTempUsageDetail_20' ) start [2025-01-24 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318982', 'tblTempUsageDetail_20' ) end [2025-01-24 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318982', 'tblTempVendorCDR_20' ) start [2025-01-24 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318982', 'tblTempVendorCDR_20' ) end [2025-01-24 10:15:29] Production.INFO: ProcessCDR(1,14318982,1,1,2) [2025-01-24 10:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318982', 'tblTempUsageDetail_20' ) start [2025-01-24 10:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318982', 'tblTempUsageDetail_20' ) end [2025-01-24 10:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:15:35] Production.INFO: ==10185== Releasing lock... [2025-01-24 10:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:15:35] Production.INFO: 45.5 MB #Memory Used# [2025-01-24 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:16:06 [end_date_ymd] => 2025-01-24 10:16:06 [RateCDR] => 1 ) [2025-01-24 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:16:06' and `end` < '2025-01-24 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:16:25] Production.INFO: count ==2344 [2025-01-24 10:16:26] Production.ERROR: pbx CDR StartTime 2025-01-24 07:16:06 - End Time 2025-01-24 10:16:06 [2025-01-24 10:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318987', 'tblTempUsageDetail_20' ) start [2025-01-24 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318987', 'tblTempUsageDetail_20' ) end [2025-01-24 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318987', 'tblTempVendorCDR_20' ) start [2025-01-24 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318987', 'tblTempVendorCDR_20' ) end [2025-01-24 10:16:26] Production.INFO: ProcessCDR(1,14318987,1,1,2) [2025-01-24 10:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318987', 'tblTempUsageDetail_20' ) start [2025-01-24 10:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318987', 'tblTempUsageDetail_20' ) end [2025-01-24 10:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:16:32] Production.INFO: ==10258== Releasing lock... [2025-01-24 10:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:16:32] Production.INFO: 46 MB #Memory Used# [2025-01-24 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:17:05 [end_date_ymd] => 2025-01-24 10:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:17:05' and `end` < '2025-01-24 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-24 10:17:29] Production.INFO: count ==2365 [2025-01-24 10:17:30] Production.ERROR: pbx CDR StartTime 2025-01-24 07:17:05 - End Time 2025-01-24 10:17:05 [2025-01-24 10:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318992', 'tblTempUsageDetail_20' ) start [2025-01-24 10:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318992', 'tblTempUsageDetail_20' ) end [2025-01-24 10:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318992', 'tblTempVendorCDR_20' ) start [2025-01-24 10:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318992', 'tblTempVendorCDR_20' ) end [2025-01-24 10:17:30] Production.INFO: ProcessCDR(1,14318992,1,1,2) [2025-01-24 10:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318992', 'tblTempUsageDetail_20' ) start [2025-01-24 10:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318992', 'tblTempUsageDetail_20' ) end [2025-01-24 10:17:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:17:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:17:36] Production.INFO: ==10335== Releasing lock... [2025-01-24 10:17:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:17:36] Production.INFO: 45.75 MB #Memory Used# [2025-01-24 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:18:06 [end_date_ymd] => 2025-01-24 10:18:06 [RateCDR] => 1 ) [2025-01-24 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:18:06' and `end` < '2025-01-24 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:18:28] Production.INFO: count ==2386 [2025-01-24 10:18:29] Production.ERROR: pbx CDR StartTime 2025-01-24 07:18:06 - End Time 2025-01-24 10:18:06 [2025-01-24 10:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318997', 'tblTempUsageDetail_20' ) start [2025-01-24 10:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14318997', 'tblTempUsageDetail_20' ) end [2025-01-24 10:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318997', 'tblTempVendorCDR_20' ) start [2025-01-24 10:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14318997', 'tblTempVendorCDR_20' ) end [2025-01-24 10:18:29] Production.INFO: ProcessCDR(1,14318997,1,1,2) [2025-01-24 10:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14318997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14318997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14318997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14318997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318997', 'tblTempUsageDetail_20' ) start [2025-01-24 10:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14318997', 'tblTempUsageDetail_20' ) end [2025-01-24 10:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:18:35] Production.INFO: ==10410== Releasing lock... [2025-01-24 10:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:18:35] Production.INFO: 46.25 MB #Memory Used# [2025-01-24 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:19:05 [end_date_ymd] => 2025-01-24 10:19:05 [RateCDR] => 1 ) [2025-01-24 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:19:05' and `end` < '2025-01-24 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:19:24] Production.INFO: count ==2416 [2025-01-24 10:19:25] Production.ERROR: pbx CDR StartTime 2025-01-24 07:19:05 - End Time 2025-01-24 10:19:05 [2025-01-24 10:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319002', 'tblTempUsageDetail_20' ) start [2025-01-24 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319002', 'tblTempUsageDetail_20' ) end [2025-01-24 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319002', 'tblTempVendorCDR_20' ) start [2025-01-24 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319002', 'tblTempVendorCDR_20' ) end [2025-01-24 10:19:25] Production.INFO: ProcessCDR(1,14319002,1,1,2) [2025-01-24 10:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319002', 'tblTempUsageDetail_20' ) start [2025-01-24 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319002', 'tblTempUsageDetail_20' ) end [2025-01-24 10:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:19:30] Production.INFO: ==10489== Releasing lock... [2025-01-24 10:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:19:30] Production.INFO: 46.5 MB #Memory Used# [2025-01-24 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:20:07 [end_date_ymd] => 2025-01-24 10:20:07 [RateCDR] => 1 ) [2025-01-24 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:20:07' and `end` < '2025-01-24 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:20:28] Production.INFO: count ==2439 [2025-01-24 10:20:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:20:07 - End Time 2025-01-24 10:20:07 [2025-01-24 10:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319008', 'tblTempUsageDetail_20' ) start [2025-01-24 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319008', 'tblTempUsageDetail_20' ) end [2025-01-24 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319008', 'tblTempVendorCDR_20' ) start [2025-01-24 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319008', 'tblTempVendorCDR_20' ) end [2025-01-24 10:20:29] Production.INFO: ProcessCDR(1,14319008,1,1,2) [2025-01-24 10:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319008', 'tblTempUsageDetail_20' ) start [2025-01-24 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319008', 'tblTempUsageDetail_20' ) end [2025-01-24 10:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:20:34] Production.INFO: ==10571== Releasing lock... [2025-01-24 10:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:20:34] Production.INFO: 46.5 MB #Memory Used# [2025-01-24 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:21:06 [end_date_ymd] => 2025-01-24 10:21:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:21:06' and `end` < '2025-01-24 10: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-24 10:21:23] Production.INFO: count ==2585 [2025-01-24 10:21:24] Production.ERROR: pbx CDR StartTime 2025-01-24 07:21:06 - End Time 2025-01-24 10:21:06 [2025-01-24 10:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319013', 'tblTempUsageDetail_20' ) start [2025-01-24 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319013', 'tblTempUsageDetail_20' ) end [2025-01-24 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319013', 'tblTempVendorCDR_20' ) start [2025-01-24 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319013', 'tblTempVendorCDR_20' ) end [2025-01-24 10:21:24] Production.INFO: ProcessCDR(1,14319013,1,1,2) [2025-01-24 10:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319013', 'tblTempUsageDetail_20' ) start [2025-01-24 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319013', 'tblTempUsageDetail_20' ) end [2025-01-24 10:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:21:29] Production.INFO: ==10647== Releasing lock... [2025-01-24 10:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:21:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-24 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:22:05 [end_date_ymd] => 2025-01-24 10:22:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:22:05' and `end` < '2025-01-24 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-24 10:22:31] Production.INFO: count ==2612 [2025-01-24 10:22:32] Production.ERROR: pbx CDR StartTime 2025-01-24 07:22:05 - End Time 2025-01-24 10:22:05 [2025-01-24 10:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319018', 'tblTempUsageDetail_20' ) start [2025-01-24 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319018', 'tblTempUsageDetail_20' ) end [2025-01-24 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319018', 'tblTempVendorCDR_20' ) start [2025-01-24 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319018', 'tblTempVendorCDR_20' ) end [2025-01-24 10:22:32] Production.INFO: ProcessCDR(1,14319018,1,1,2) [2025-01-24 10:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:22:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:22:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:22:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319018', 'tblTempUsageDetail_20' ) start [2025-01-24 10:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319018', 'tblTempUsageDetail_20' ) end [2025-01-24 10:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:22:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:22:38] Production.INFO: ==10726== Releasing lock... [2025-01-24 10:22:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:22:38] Production.INFO: 48.25 MB #Memory Used# [2025-01-24 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:23:05 [end_date_ymd] => 2025-01-24 10:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:23:05' and `end` < '2025-01-24 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-24 10:23:22] Production.INFO: count ==2613 [2025-01-24 10:23:22] Production.ERROR: pbx CDR StartTime 2025-01-24 07:23:05 - End Time 2025-01-24 10:23:05 [2025-01-24 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319022', 'tblTempUsageDetail_20' ) start [2025-01-24 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319022', 'tblTempUsageDetail_20' ) end [2025-01-24 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319022', 'tblTempVendorCDR_20' ) start [2025-01-24 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319022', 'tblTempVendorCDR_20' ) end [2025-01-24 10:23:23] Production.INFO: ProcessCDR(1,14319022,1,1,2) [2025-01-24 10:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319022', 'tblTempUsageDetail_20' ) start [2025-01-24 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319022', 'tblTempUsageDetail_20' ) end [2025-01-24 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:23:26] Production.INFO: ==10806== Releasing lock... [2025-01-24 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:23:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-24 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:24:06 [end_date_ymd] => 2025-01-24 10:24:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:24:06' and `end` < '2025-01-24 10: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-24 10:24:19] Production.INFO: count ==2625 [2025-01-24 10:24:20] Production.ERROR: pbx CDR StartTime 2025-01-24 07:24:06 - End Time 2025-01-24 10:24:06 [2025-01-24 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319028', 'tblTempUsageDetail_20' ) start [2025-01-24 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319028', 'tblTempUsageDetail_20' ) end [2025-01-24 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319028', 'tblTempVendorCDR_20' ) start [2025-01-24 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319028', 'tblTempVendorCDR_20' ) end [2025-01-24 10:24:20] Production.INFO: ProcessCDR(1,14319028,1,1,2) [2025-01-24 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319028', 'tblTempUsageDetail_20' ) start [2025-01-24 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319028', 'tblTempUsageDetail_20' ) end [2025-01-24 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:24:24] Production.INFO: ==10885== Releasing lock... [2025-01-24 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:24:24] Production.INFO: 47.75 MB #Memory Used# [2025-01-24 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:25:06 [end_date_ymd] => 2025-01-24 10:25:06 [RateCDR] => 1 ) [2025-01-24 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:25:06' and `end` < '2025-01-24 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:25:32] Production.INFO: count ==2642 [2025-01-24 10:25:33] Production.ERROR: pbx CDR StartTime 2025-01-24 07:25:06 - End Time 2025-01-24 10:25:06 [2025-01-24 10:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319033', 'tblTempUsageDetail_20' ) start [2025-01-24 10:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319033', 'tblTempUsageDetail_20' ) end [2025-01-24 10:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319033', 'tblTempVendorCDR_20' ) start [2025-01-24 10:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319033', 'tblTempVendorCDR_20' ) end [2025-01-24 10:25:33] Production.INFO: ProcessCDR(1,14319033,1,1,2) [2025-01-24 10:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319033', 'tblTempUsageDetail_20' ) start [2025-01-24 10:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319033', 'tblTempUsageDetail_20' ) end [2025-01-24 10:25:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:25:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:25:38] Production.INFO: ==10966== Releasing lock... [2025-01-24 10:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:25:38] Production.INFO: 48 MB #Memory Used# [2025-01-24 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:26:05 [end_date_ymd] => 2025-01-24 10:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:26:05' and `end` < '2025-01-24 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-24 10:26:32] Production.INFO: count ==2648 [2025-01-24 10:26:33] Production.ERROR: pbx CDR StartTime 2025-01-24 07:26:05 - End Time 2025-01-24 10:26:05 [2025-01-24 10:26:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319038', 'tblTempUsageDetail_20' ) start [2025-01-24 10:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319038', 'tblTempUsageDetail_20' ) end [2025-01-24 10:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319038', 'tblTempVendorCDR_20' ) start [2025-01-24 10:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319038', 'tblTempVendorCDR_20' ) end [2025-01-24 10:26:33] Production.INFO: ProcessCDR(1,14319038,1,1,2) [2025-01-24 10:26:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319038', 'tblTempUsageDetail_20' ) start [2025-01-24 10:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319038', 'tblTempUsageDetail_20' ) end [2025-01-24 10:26:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:26:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:26:37] Production.INFO: ==11050== Releasing lock... [2025-01-24 10:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:26:37] Production.INFO: 48 MB #Memory Used# [2025-01-24 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:27:05 [end_date_ymd] => 2025-01-24 10:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:27:05' and `end` < '2025-01-24 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-24 10:27:25] Production.INFO: count ==2671 [2025-01-24 10:27:26] Production.ERROR: pbx CDR StartTime 2025-01-24 07:27:05 - End Time 2025-01-24 10:27:05 [2025-01-24 10:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319043', 'tblTempUsageDetail_20' ) start [2025-01-24 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319043', 'tblTempUsageDetail_20' ) end [2025-01-24 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319043', 'tblTempVendorCDR_20' ) start [2025-01-24 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319043', 'tblTempVendorCDR_20' ) end [2025-01-24 10:27:26] Production.INFO: ProcessCDR(1,14319043,1,1,2) [2025-01-24 10:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319043', 'tblTempUsageDetail_20' ) start [2025-01-24 10:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319043', 'tblTempUsageDetail_20' ) end [2025-01-24 10:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:27:32] Production.INFO: ==11163== Releasing lock... [2025-01-24 10:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:27:32] Production.INFO: 48.25 MB #Memory Used# [2025-01-24 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:28:05 [end_date_ymd] => 2025-01-24 10:28:05 [RateCDR] => 1 ) [2025-01-24 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:28:05' and `end` < '2025-01-24 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:28:24] Production.INFO: count ==2675 [2025-01-24 10:28:25] Production.ERROR: pbx CDR StartTime 2025-01-24 07:28:05 - End Time 2025-01-24 10:28:05 [2025-01-24 10:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319048', 'tblTempUsageDetail_20' ) start [2025-01-24 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319048', 'tblTempUsageDetail_20' ) end [2025-01-24 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319048', 'tblTempVendorCDR_20' ) start [2025-01-24 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319048', 'tblTempVendorCDR_20' ) end [2025-01-24 10:28:26] Production.INFO: ProcessCDR(1,14319048,1,1,2) [2025-01-24 10:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319048', 'tblTempUsageDetail_20' ) start [2025-01-24 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319048', 'tblTempUsageDetail_20' ) end [2025-01-24 10:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:28:29] Production.INFO: ==11242== Releasing lock... [2025-01-24 10:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:28:29] Production.INFO: 48.25 MB #Memory Used# [2025-01-24 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:29:05 [end_date_ymd] => 2025-01-24 10:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:29:05' and `end` < '2025-01-24 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-24 10:29:30] Production.INFO: count ==2689 [2025-01-24 10:29:31] Production.ERROR: pbx CDR StartTime 2025-01-24 07:29:05 - End Time 2025-01-24 10:29:05 [2025-01-24 10:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319053', 'tblTempUsageDetail_20' ) start [2025-01-24 10:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319053', 'tblTempUsageDetail_20' ) end [2025-01-24 10:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319053', 'tblTempVendorCDR_20' ) start [2025-01-24 10:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319053', 'tblTempVendorCDR_20' ) end [2025-01-24 10:29:31] Production.INFO: ProcessCDR(1,14319053,1,1,2) [2025-01-24 10:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319053', 'tblTempUsageDetail_20' ) start [2025-01-24 10:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319053', 'tblTempUsageDetail_20' ) end [2025-01-24 10:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:29:35] Production.INFO: ==11325== Releasing lock... [2025-01-24 10:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:29:35] Production.INFO: 48.25 MB #Memory Used# [2025-01-24 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:30:07 [end_date_ymd] => 2025-01-24 10:30:07 [RateCDR] => 1 ) [2025-01-24 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:30:07' and `end` < '2025-01-24 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:30:36] Production.INFO: count ==2724 [2025-01-24 10:30:37] Production.ERROR: pbx CDR StartTime 2025-01-24 07:30:07 - End Time 2025-01-24 10:30:07 [2025-01-24 10:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319059', 'tblTempUsageDetail_20' ) start [2025-01-24 10:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319059', 'tblTempUsageDetail_20' ) end [2025-01-24 10:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319059', 'tblTempVendorCDR_20' ) start [2025-01-24 10:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319059', 'tblTempVendorCDR_20' ) end [2025-01-24 10:30:37] Production.INFO: ProcessCDR(1,14319059,1,1,2) [2025-01-24 10:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:30:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319059', 'tblTempUsageDetail_20' ) start [2025-01-24 10:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319059', 'tblTempUsageDetail_20' ) end [2025-01-24 10:30:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:30:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:30:42] Production.INFO: ==11410== Releasing lock... [2025-01-24 10:30:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:30:42] Production.INFO: 48.5 MB #Memory Used# [2025-01-24 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:31:06 [end_date_ymd] => 2025-01-24 10:31:06 [RateCDR] => 1 ) [2025-01-24 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:31:06' and `end` < '2025-01-24 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:31:32] Production.INFO: count ==2821 [2025-01-24 10:31:33] Production.ERROR: pbx CDR StartTime 2025-01-24 07:31:06 - End Time 2025-01-24 10:31:06 [2025-01-24 10:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319064', 'tblTempUsageDetail_20' ) start [2025-01-24 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319064', 'tblTempUsageDetail_20' ) end [2025-01-24 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319064', 'tblTempVendorCDR_20' ) start [2025-01-24 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319064', 'tblTempVendorCDR_20' ) end [2025-01-24 10:31:33] Production.INFO: ProcessCDR(1,14319064,1,1,2) [2025-01-24 10:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319064', 'tblTempUsageDetail_20' ) start [2025-01-24 10:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319064', 'tblTempUsageDetail_20' ) end [2025-01-24 10:31:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:31:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:31:39] Production.INFO: ==11489== Releasing lock... [2025-01-24 10:31:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:31:39] Production.INFO: 49.25 MB #Memory Used# [2025-01-24 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:32:06 [end_date_ymd] => 2025-01-24 10:32:06 [RateCDR] => 1 ) [2025-01-24 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:32:06' and `end` < '2025-01-24 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:32:28] Production.INFO: count ==2832 [2025-01-24 10:32:29] Production.ERROR: pbx CDR StartTime 2025-01-24 07:32:06 - End Time 2025-01-24 10:32:06 [2025-01-24 10:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319069', 'tblTempUsageDetail_20' ) start [2025-01-24 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319069', 'tblTempUsageDetail_20' ) end [2025-01-24 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319069', 'tblTempVendorCDR_20' ) start [2025-01-24 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319069', 'tblTempVendorCDR_20' ) end [2025-01-24 10:32:30] Production.INFO: ProcessCDR(1,14319069,1,1,2) [2025-01-24 10:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319069', 'tblTempUsageDetail_20' ) start [2025-01-24 10:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319069', 'tblTempUsageDetail_20' ) end [2025-01-24 10:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:32:35] Production.INFO: ==11571== Releasing lock... [2025-01-24 10:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:32:35] Production.INFO: 49.25 MB #Memory Used# [2025-01-24 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:33:05 [end_date_ymd] => 2025-01-24 10:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:33:05' and `end` < '2025-01-24 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-24 10:33:23] Production.INFO: count ==2858 [2025-01-24 10:33:24] Production.ERROR: pbx CDR StartTime 2025-01-24 07:33:05 - End Time 2025-01-24 10:33:05 [2025-01-24 10:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319074', 'tblTempUsageDetail_20' ) start [2025-01-24 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319074', 'tblTempUsageDetail_20' ) end [2025-01-24 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319074', 'tblTempVendorCDR_20' ) start [2025-01-24 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319074', 'tblTempVendorCDR_20' ) end [2025-01-24 10:33:24] Production.INFO: ProcessCDR(1,14319074,1,1,2) [2025-01-24 10:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319074', 'tblTempUsageDetail_20' ) start [2025-01-24 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319074', 'tblTempUsageDetail_20' ) end [2025-01-24 10:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:33:29] Production.INFO: ==11650== Releasing lock... [2025-01-24 10:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:33:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-24 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:34:05 [end_date_ymd] => 2025-01-24 10:34:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:34:05' and `end` < '2025-01-24 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-24 10:34:22] Production.INFO: count ==2870 [2025-01-24 10:34:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:34:05 - End Time 2025-01-24 10:34:05 [2025-01-24 10:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319079', 'tblTempUsageDetail_20' ) start [2025-01-24 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319079', 'tblTempUsageDetail_20' ) end [2025-01-24 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319079', 'tblTempVendorCDR_20' ) start [2025-01-24 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319079', 'tblTempVendorCDR_20' ) end [2025-01-24 10:34:23] Production.INFO: ProcessCDR(1,14319079,1,1,2) [2025-01-24 10:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319079', 'tblTempUsageDetail_20' ) start [2025-01-24 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319079', 'tblTempUsageDetail_20' ) end [2025-01-24 10:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:34:29] Production.INFO: ==11730== Releasing lock... [2025-01-24 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:34:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-24 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:35:06 [end_date_ymd] => 2025-01-24 10:35:06 [RateCDR] => 1 ) [2025-01-24 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:35:06' and `end` < '2025-01-24 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:35:26] Production.INFO: count ==2879 [2025-01-24 10:35:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:35:06 - End Time 2025-01-24 10:35:06 [2025-01-24 10:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319084', 'tblTempUsageDetail_20' ) start [2025-01-24 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319084', 'tblTempUsageDetail_20' ) end [2025-01-24 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319084', 'tblTempVendorCDR_20' ) start [2025-01-24 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319084', 'tblTempVendorCDR_20' ) end [2025-01-24 10:35:28] Production.INFO: ProcessCDR(1,14319084,1,1,2) [2025-01-24 10:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319084', 'tblTempUsageDetail_20' ) start [2025-01-24 10:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319084', 'tblTempUsageDetail_20' ) end [2025-01-24 10:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:35:33] Production.INFO: ==11812== Releasing lock... [2025-01-24 10:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:35:33] Production.INFO: 49.5 MB #Memory Used# [2025-01-24 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:36:06 [end_date_ymd] => 2025-01-24 10:36:06 [RateCDR] => 1 ) [2025-01-24 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:36:06' and `end` < '2025-01-24 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:36:22] Production.INFO: count ==2894 [2025-01-24 10:36:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:36:06 - End Time 2025-01-24 10:36:06 [2025-01-24 10:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319089', 'tblTempUsageDetail_20' ) start [2025-01-24 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319089', 'tblTempUsageDetail_20' ) end [2025-01-24 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319089', 'tblTempVendorCDR_20' ) start [2025-01-24 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319089', 'tblTempVendorCDR_20' ) end [2025-01-24 10:36:23] Production.INFO: ProcessCDR(1,14319089,1,1,2) [2025-01-24 10:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319089', 'tblTempUsageDetail_20' ) start [2025-01-24 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319089', 'tblTempUsageDetail_20' ) end [2025-01-24 10:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:36:29] Production.INFO: ==11889== Releasing lock... [2025-01-24 10:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:36:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-24 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:37:05 [end_date_ymd] => 2025-01-24 10:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:37:05' and `end` < '2025-01-24 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-24 10:37:18] Production.INFO: count ==2905 [2025-01-24 10:37:20] Production.ERROR: pbx CDR StartTime 2025-01-24 07:37:05 - End Time 2025-01-24 10:37:05 [2025-01-24 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319094', 'tblTempUsageDetail_20' ) start [2025-01-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319094', 'tblTempUsageDetail_20' ) end [2025-01-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319094', 'tblTempVendorCDR_20' ) start [2025-01-24 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319094', 'tblTempVendorCDR_20' ) end [2025-01-24 10:37:20] Production.INFO: ProcessCDR(1,14319094,1,1,2) [2025-01-24 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319094', 'tblTempUsageDetail_20' ) start [2025-01-24 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319094', 'tblTempUsageDetail_20' ) end [2025-01-24 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:37:25] Production.INFO: ==11966== Releasing lock... [2025-01-24 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:37:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-24 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:38:05 [end_date_ymd] => 2025-01-24 10:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:38:05' and `end` < '2025-01-24 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-24 10:38:24] Production.INFO: count ==2911 [2025-01-24 10:38:25] Production.ERROR: pbx CDR StartTime 2025-01-24 07:38:05 - End Time 2025-01-24 10:38:05 [2025-01-24 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319099', 'tblTempUsageDetail_20' ) start [2025-01-24 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319099', 'tblTempUsageDetail_20' ) end [2025-01-24 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319099', 'tblTempVendorCDR_20' ) start [2025-01-24 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319099', 'tblTempVendorCDR_20' ) end [2025-01-24 10:38:25] Production.INFO: ProcessCDR(1,14319099,1,1,2) [2025-01-24 10:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319099', 'tblTempUsageDetail_20' ) start [2025-01-24 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319099', 'tblTempUsageDetail_20' ) end [2025-01-24 10:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:38:30] Production.INFO: ==12044== Releasing lock... [2025-01-24 10:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:38:30] Production.INFO: 49.75 MB #Memory Used# [2025-01-24 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:39:05 [end_date_ymd] => 2025-01-24 10:39:05 [RateCDR] => 1 ) [2025-01-24 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:39:05' and `end` < '2025-01-24 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:39:23] Production.INFO: count ==2929 [2025-01-24 10:39:24] Production.ERROR: pbx CDR StartTime 2025-01-24 07:39:05 - End Time 2025-01-24 10:39:05 [2025-01-24 10:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319104', 'tblTempUsageDetail_20' ) start [2025-01-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319104', 'tblTempUsageDetail_20' ) end [2025-01-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319104', 'tblTempVendorCDR_20' ) start [2025-01-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319104', 'tblTempVendorCDR_20' ) end [2025-01-24 10:39:24] Production.INFO: ProcessCDR(1,14319104,1,1,2) [2025-01-24 10:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319104', 'tblTempUsageDetail_20' ) start [2025-01-24 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319104', 'tblTempUsageDetail_20' ) end [2025-01-24 10:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:39:29] Production.INFO: ==12123== Releasing lock... [2025-01-24 10:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:39:29] Production.INFO: 49.75 MB #Memory Used# [2025-01-24 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:40:06 [end_date_ymd] => 2025-01-24 10:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:40:06' and `end` < '2025-01-24 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-24 10:40:29] Production.INFO: count ==2980 [2025-01-24 10:40:30] Production.ERROR: pbx CDR StartTime 2025-01-24 07:40:06 - End Time 2025-01-24 10:40:06 [2025-01-24 10:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319110', 'tblTempUsageDetail_20' ) start [2025-01-24 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319110', 'tblTempUsageDetail_20' ) end [2025-01-24 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319110', 'tblTempVendorCDR_20' ) start [2025-01-24 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319110', 'tblTempVendorCDR_20' ) end [2025-01-24 10:40:30] Production.INFO: ProcessCDR(1,14319110,1,1,2) [2025-01-24 10:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319110', 'tblTempUsageDetail_20' ) start [2025-01-24 10:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319110', 'tblTempUsageDetail_20' ) end [2025-01-24 10:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:40:35] Production.INFO: ==12199== Releasing lock... [2025-01-24 10:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:40:35] Production.INFO: 50.25 MB #Memory Used# [2025-01-24 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:41:06 [end_date_ymd] => 2025-01-24 10:41:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:41:06' and `end` < '2025-01-24 10: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-24 10:41:24] Production.INFO: count ==3087 [2025-01-24 10:41:25] Production.ERROR: pbx CDR StartTime 2025-01-24 07:41:06 - End Time 2025-01-24 10:41:06 [2025-01-24 10:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319115', 'tblTempUsageDetail_20' ) start [2025-01-24 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319115', 'tblTempUsageDetail_20' ) end [2025-01-24 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319115', 'tblTempVendorCDR_20' ) start [2025-01-24 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319115', 'tblTempVendorCDR_20' ) end [2025-01-24 10:41:25] Production.INFO: ProcessCDR(1,14319115,1,1,2) [2025-01-24 10:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319115', 'tblTempUsageDetail_20' ) start [2025-01-24 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319115', 'tblTempUsageDetail_20' ) end [2025-01-24 10:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:41:31] Production.INFO: ==12275== Releasing lock... [2025-01-24 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:41:31] Production.INFO: 51 MB #Memory Used# [2025-01-24 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:42:05 [end_date_ymd] => 2025-01-24 10:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:42:05' and `end` < '2025-01-24 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-24 10:42:22] Production.INFO: count ==3106 [2025-01-24 10:42:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:42:05 - End Time 2025-01-24 10:42:05 [2025-01-24 10:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319120', 'tblTempUsageDetail_20' ) start [2025-01-24 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319120', 'tblTempUsageDetail_20' ) end [2025-01-24 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319120', 'tblTempVendorCDR_20' ) start [2025-01-24 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319120', 'tblTempVendorCDR_20' ) end [2025-01-24 10:42:23] Production.INFO: ProcessCDR(1,14319120,1,1,2) [2025-01-24 10:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319120', 'tblTempUsageDetail_20' ) start [2025-01-24 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319120', 'tblTempUsageDetail_20' ) end [2025-01-24 10:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:42:28] Production.INFO: ==12395== Releasing lock... [2025-01-24 10:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:42:28] Production.INFO: 51.25 MB #Memory Used# [2025-01-24 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:43:05 [end_date_ymd] => 2025-01-24 10:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:43:05' and `end` < '2025-01-24 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-24 10:43:22] Production.INFO: count ==3122 [2025-01-24 10:43:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:43:05 - End Time 2025-01-24 10:43:05 [2025-01-24 10:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319125', 'tblTempUsageDetail_20' ) start [2025-01-24 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319125', 'tblTempUsageDetail_20' ) end [2025-01-24 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319125', 'tblTempVendorCDR_20' ) start [2025-01-24 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319125', 'tblTempVendorCDR_20' ) end [2025-01-24 10:43:23] Production.INFO: ProcessCDR(1,14319125,1,1,2) [2025-01-24 10:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319125', 'tblTempUsageDetail_20' ) start [2025-01-24 10:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319125', 'tblTempUsageDetail_20' ) end [2025-01-24 10:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:43:28] Production.INFO: ==12466== Releasing lock... [2025-01-24 10:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:43:28] Production.INFO: 51.25 MB #Memory Used# [2025-01-24 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:44:06 [end_date_ymd] => 2025-01-24 10:44:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:44:06' and `end` < '2025-01-24 10: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-24 10:44:27] Production.INFO: count ==3149 [2025-01-24 10:44:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:44:06 - End Time 2025-01-24 10:44:06 [2025-01-24 10:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319130', 'tblTempUsageDetail_20' ) start [2025-01-24 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319130', 'tblTempUsageDetail_20' ) end [2025-01-24 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319130', 'tblTempVendorCDR_20' ) start [2025-01-24 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319130', 'tblTempVendorCDR_20' ) end [2025-01-24 10:44:28] Production.INFO: ProcessCDR(1,14319130,1,1,2) [2025-01-24 10:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319130', 'tblTempUsageDetail_20' ) start [2025-01-24 10:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319130', 'tblTempUsageDetail_20' ) end [2025-01-24 10:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:44:32] Production.INFO: ==12541== Releasing lock... [2025-01-24 10:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:44:32] Production.INFO: 51.5 MB #Memory Used# [2025-01-24 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:45:05 [end_date_ymd] => 2025-01-24 10:45:05 [RateCDR] => 1 ) [2025-01-24 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:45:05' and `end` < '2025-01-24 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:45:36] Production.INFO: count ==3169 [2025-01-24 10:45:37] Production.ERROR: pbx CDR StartTime 2025-01-24 07:45:05 - End Time 2025-01-24 10:45:05 [2025-01-24 10:45:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319135', 'tblTempUsageDetail_20' ) start [2025-01-24 10:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319135', 'tblTempUsageDetail_20' ) end [2025-01-24 10:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319135', 'tblTempVendorCDR_20' ) start [2025-01-24 10:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319135', 'tblTempVendorCDR_20' ) end [2025-01-24 10:45:37] Production.INFO: ProcessCDR(1,14319135,1,1,2) [2025-01-24 10:45:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:45:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:45:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:45:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:45:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319135', 'tblTempUsageDetail_20' ) start [2025-01-24 10:45:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319135', 'tblTempUsageDetail_20' ) end [2025-01-24 10:45:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:45:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:45:43] Production.INFO: ==12616== Releasing lock... [2025-01-24 10:45:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:45:43] Production.INFO: 51.75 MB #Memory Used# [2025-01-24 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:46:06 [end_date_ymd] => 2025-01-24 10:46:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:46:06' and `end` < '2025-01-24 10: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-24 10:46:30] Production.INFO: count ==3189 [2025-01-24 10:46:32] Production.ERROR: pbx CDR StartTime 2025-01-24 07:46:06 - End Time 2025-01-24 10:46:06 [2025-01-24 10:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319140', 'tblTempUsageDetail_20' ) start [2025-01-24 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319140', 'tblTempUsageDetail_20' ) end [2025-01-24 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319140', 'tblTempVendorCDR_20' ) start [2025-01-24 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319140', 'tblTempVendorCDR_20' ) end [2025-01-24 10:46:32] Production.INFO: ProcessCDR(1,14319140,1,1,2) [2025-01-24 10:46:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:46:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:46:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:46:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319140', 'tblTempUsageDetail_20' ) start [2025-01-24 10:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319140', 'tblTempUsageDetail_20' ) end [2025-01-24 10:46:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:46:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:46:38] Production.INFO: ==12689== Releasing lock... [2025-01-24 10:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:46:38] Production.INFO: 52 MB #Memory Used# [2025-01-24 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:47:06 [end_date_ymd] => 2025-01-24 10:47:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:47:06' and `end` < '2025-01-24 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-24 10:47:27] Production.INFO: count ==3208 [2025-01-24 10:47:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:47:06 - End Time 2025-01-24 10:47:06 [2025-01-24 10:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319145', 'tblTempUsageDetail_20' ) start [2025-01-24 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319145', 'tblTempUsageDetail_20' ) end [2025-01-24 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319145', 'tblTempVendorCDR_20' ) start [2025-01-24 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319145', 'tblTempVendorCDR_20' ) end [2025-01-24 10:47:28] Production.INFO: ProcessCDR(1,14319145,1,1,2) [2025-01-24 10:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319145', 'tblTempUsageDetail_20' ) start [2025-01-24 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319145', 'tblTempUsageDetail_20' ) end [2025-01-24 10:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:47:33] Production.INFO: ==12764== Releasing lock... [2025-01-24 10:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:47:33] Production.INFO: 52 MB #Memory Used# [2025-01-24 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:48:05 [end_date_ymd] => 2025-01-24 10:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:48:05' and `end` < '2025-01-24 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-24 10:48:21] Production.INFO: count ==3234 [2025-01-24 10:48:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:48:05 - End Time 2025-01-24 10:48:05 [2025-01-24 10:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319150', 'tblTempUsageDetail_20' ) start [2025-01-24 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319150', 'tblTempUsageDetail_20' ) end [2025-01-24 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319150', 'tblTempVendorCDR_20' ) start [2025-01-24 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319150', 'tblTempVendorCDR_20' ) end [2025-01-24 10:48:23] Production.INFO: ProcessCDR(1,14319150,1,1,2) [2025-01-24 10:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319150', 'tblTempUsageDetail_20' ) start [2025-01-24 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319150', 'tblTempUsageDetail_20' ) end [2025-01-24 10:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:48:28] Production.INFO: ==12834== Releasing lock... [2025-01-24 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:48:28] Production.INFO: 52.25 MB #Memory Used# [2025-01-24 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:49:05 [end_date_ymd] => 2025-01-24 10:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:49:05' and `end` < '2025-01-24 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-24 10:49:26] Production.INFO: count ==3263 [2025-01-24 10:49:27] Production.ERROR: pbx CDR StartTime 2025-01-24 07:49:05 - End Time 2025-01-24 10:49:05 [2025-01-24 10:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319155', 'tblTempUsageDetail_20' ) start [2025-01-24 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319155', 'tblTempUsageDetail_20' ) end [2025-01-24 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319155', 'tblTempVendorCDR_20' ) start [2025-01-24 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319155', 'tblTempVendorCDR_20' ) end [2025-01-24 10:49:27] Production.INFO: ProcessCDR(1,14319155,1,1,2) [2025-01-24 10:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319155', 'tblTempUsageDetail_20' ) start [2025-01-24 10:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319155', 'tblTempUsageDetail_20' ) end [2025-01-24 10:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:49:32] Production.INFO: ==12913== Releasing lock... [2025-01-24 10:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:49:32] Production.INFO: 52.5 MB #Memory Used# [2025-01-24 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:50:06 [end_date_ymd] => 2025-01-24 10:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:50:06' and `end` < '2025-01-24 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-24 10:50:23] Production.INFO: count ==3267 [2025-01-24 10:50:25] Production.ERROR: pbx CDR StartTime 2025-01-24 07:50:06 - End Time 2025-01-24 10:50:06 [2025-01-24 10:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319160', 'tblTempUsageDetail_20' ) start [2025-01-24 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319160', 'tblTempUsageDetail_20' ) end [2025-01-24 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319160', 'tblTempVendorCDR_20' ) start [2025-01-24 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319160', 'tblTempVendorCDR_20' ) end [2025-01-24 10:50:25] Production.INFO: ProcessCDR(1,14319160,1,1,2) [2025-01-24 10:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319160', 'tblTempUsageDetail_20' ) start [2025-01-24 10:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319160', 'tblTempUsageDetail_20' ) end [2025-01-24 10:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:50:30] Production.INFO: ==12985== Releasing lock... [2025-01-24 10:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:50:30] Production.INFO: 52.5 MB #Memory Used# [2025-01-24 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:51:06 [end_date_ymd] => 2025-01-24 10:51:06 [RateCDR] => 1 ) [2025-01-24 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:51:06' and `end` < '2025-01-24 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:51:20] Production.INFO: count ==3386 [2025-01-24 10:51:21] Production.ERROR: pbx CDR StartTime 2025-01-24 07:51:06 - End Time 2025-01-24 10:51:06 [2025-01-24 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319166', 'tblTempUsageDetail_20' ) start [2025-01-24 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319166', 'tblTempUsageDetail_20' ) end [2025-01-24 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319166', 'tblTempVendorCDR_20' ) start [2025-01-24 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319166', 'tblTempVendorCDR_20' ) end [2025-01-24 10:51:21] Production.INFO: ProcessCDR(1,14319166,1,1,2) [2025-01-24 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319166', 'tblTempUsageDetail_20' ) start [2025-01-24 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319166', 'tblTempUsageDetail_20' ) end [2025-01-24 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:51:26] Production.INFO: ==13063== Releasing lock... [2025-01-24 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:51:26] Production.INFO: 53.25 MB #Memory Used# [2025-01-24 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:52:05 [end_date_ymd] => 2025-01-24 10:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:52:05' and `end` < '2025-01-24 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-24 10:52:26] Production.INFO: count ==3411 [2025-01-24 10:52:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:52:05 - End Time 2025-01-24 10:52:05 [2025-01-24 10:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319168', 'tblTempUsageDetail_20' ) start [2025-01-24 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319168', 'tblTempUsageDetail_20' ) end [2025-01-24 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319168', 'tblTempVendorCDR_20' ) start [2025-01-24 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319168', 'tblTempVendorCDR_20' ) end [2025-01-24 10:52:28] Production.INFO: ProcessCDR(1,14319168,1,1,2) [2025-01-24 10:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319168', 'tblTempUsageDetail_20' ) start [2025-01-24 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319168', 'tblTempUsageDetail_20' ) end [2025-01-24 10:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:52:33] Production.INFO: ==13139== Releasing lock... [2025-01-24 10:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:52:33] Production.INFO: 53.5 MB #Memory Used# [2025-01-24 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:53:06 [end_date_ymd] => 2025-01-24 10:53:06 [RateCDR] => 1 ) [2025-01-24 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:53:06' and `end` < '2025-01-24 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:53:24] Production.INFO: count ==3425 [2025-01-24 10:53:26] Production.ERROR: pbx CDR StartTime 2025-01-24 07:53:06 - End Time 2025-01-24 10:53:06 [2025-01-24 10:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319176', 'tblTempUsageDetail_20' ) start [2025-01-24 10:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319176', 'tblTempUsageDetail_20' ) end [2025-01-24 10:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319176', 'tblTempVendorCDR_20' ) start [2025-01-24 10:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319176', 'tblTempVendorCDR_20' ) end [2025-01-24 10:53:26] Production.INFO: ProcessCDR(1,14319176,1,1,2) [2025-01-24 10:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319176', 'tblTempUsageDetail_20' ) start [2025-01-24 10:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319176', 'tblTempUsageDetail_20' ) end [2025-01-24 10:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:53:31] Production.INFO: ==13216== Releasing lock... [2025-01-24 10:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:53:31] Production.INFO: 53.75 MB #Memory Used# [2025-01-24 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:54:05 [end_date_ymd] => 2025-01-24 10:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 07:54:05' and `end` < '2025-01-24 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-24 10:54:27] Production.INFO: count ==3435 [2025-01-24 10:54:28] Production.ERROR: pbx CDR StartTime 2025-01-24 07:54:05 - End Time 2025-01-24 10:54:05 [2025-01-24 10:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319181', 'tblTempUsageDetail_20' ) start [2025-01-24 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319181', 'tblTempUsageDetail_20' ) end [2025-01-24 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319181', 'tblTempVendorCDR_20' ) start [2025-01-24 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319181', 'tblTempVendorCDR_20' ) end [2025-01-24 10:54:28] Production.INFO: ProcessCDR(1,14319181,1,1,2) [2025-01-24 10:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319181', 'tblTempUsageDetail_20' ) start [2025-01-24 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319181', 'tblTempUsageDetail_20' ) end [2025-01-24 10:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:54:33] Production.INFO: ==13289== Releasing lock... [2025-01-24 10:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:54:33] Production.INFO: 54 MB #Memory Used# [2025-01-24 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:55:06 [end_date_ymd] => 2025-01-24 10:55:06 [RateCDR] => 1 ) [2025-01-24 10: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-24 07:55:06' and `end` < '2025-01-24 10: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-24 10:55:30] Production.INFO: count ==3464 [2025-01-24 10:55:32] Production.ERROR: pbx CDR StartTime 2025-01-24 07:55:06 - End Time 2025-01-24 10:55:06 [2025-01-24 10:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319186', 'tblTempUsageDetail_20' ) start [2025-01-24 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319186', 'tblTempUsageDetail_20' ) end [2025-01-24 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319186', 'tblTempVendorCDR_20' ) start [2025-01-24 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319186', 'tblTempVendorCDR_20' ) end [2025-01-24 10:55:32] Production.INFO: ProcessCDR(1,14319186,1,1,2) [2025-01-24 10:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319186', 'tblTempUsageDetail_20' ) start [2025-01-24 10:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319186', 'tblTempUsageDetail_20' ) end [2025-01-24 10:55:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:55:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:55:37] Production.INFO: ==13362== Releasing lock... [2025-01-24 10:55:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:55:37] Production.INFO: 54 MB #Memory Used# [2025-01-24 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:56:06 [end_date_ymd] => 2025-01-24 10:56:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:56:06' and `end` < '2025-01-24 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-24 10:56:22] Production.INFO: count ==3489 [2025-01-24 10:56:23] Production.ERROR: pbx CDR StartTime 2025-01-24 07:56:06 - End Time 2025-01-24 10:56:06 [2025-01-24 10:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319191', 'tblTempUsageDetail_20' ) start [2025-01-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319191', 'tblTempUsageDetail_20' ) end [2025-01-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319191', 'tblTempVendorCDR_20' ) start [2025-01-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319191', 'tblTempVendorCDR_20' ) end [2025-01-24 10:56:24] Production.INFO: ProcessCDR(1,14319191,1,1,2) [2025-01-24 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319191', 'tblTempUsageDetail_20' ) start [2025-01-24 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319191', 'tblTempUsageDetail_20' ) end [2025-01-24 10:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:56:29] Production.INFO: ==13441== Releasing lock... [2025-01-24 10:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:56:29] Production.INFO: 54.25 MB #Memory Used# [2025-01-24 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:57:06 [end_date_ymd] => 2025-01-24 10:57:06 [RateCDR] => 1 ) [2025-01-24 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-24 07:57:06' and `end` < '2025-01-24 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-24 10:57:19] Production.INFO: count ==3500 [2025-01-24 10:57:20] Production.ERROR: pbx CDR StartTime 2025-01-24 07:57:06 - End Time 2025-01-24 10:57:06 [2025-01-24 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319196', 'tblTempUsageDetail_20' ) start [2025-01-24 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319196', 'tblTempUsageDetail_20' ) end [2025-01-24 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319196', 'tblTempVendorCDR_20' ) start [2025-01-24 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319196', 'tblTempVendorCDR_20' ) end [2025-01-24 10:57:21] Production.INFO: ProcessCDR(1,14319196,1,1,2) [2025-01-24 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319196', 'tblTempUsageDetail_20' ) start [2025-01-24 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319196', 'tblTempUsageDetail_20' ) end [2025-01-24 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:57:26] Production.INFO: ==13518== Releasing lock... [2025-01-24 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:57:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-24 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:58:05 [end_date_ymd] => 2025-01-24 10:58:05 [RateCDR] => 1 ) [2025-01-24 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:58:05' and `end` < '2025-01-24 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:58:24] Production.INFO: count ==3509 [2025-01-24 10:58:26] Production.ERROR: pbx CDR StartTime 2025-01-24 07:58:05 - End Time 2025-01-24 10:58:05 [2025-01-24 10:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319199', 'tblTempUsageDetail_20' ) start [2025-01-24 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319199', 'tblTempUsageDetail_20' ) end [2025-01-24 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319199', 'tblTempVendorCDR_20' ) start [2025-01-24 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319199', 'tblTempVendorCDR_20' ) end [2025-01-24 10:58:26] Production.INFO: ProcessCDR(1,14319199,1,1,2) [2025-01-24 10:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319199', 'tblTempUsageDetail_20' ) start [2025-01-24 10:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319199', 'tblTempUsageDetail_20' ) end [2025-01-24 10:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:58:31] Production.INFO: ==13627== Releasing lock... [2025-01-24 10:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:58:31] Production.INFO: 54.5 MB #Memory Used# [2025-01-24 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 07:59:06 [end_date_ymd] => 2025-01-24 10:59:06 [RateCDR] => 1 ) [2025-01-24 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 07:59:06' and `end` < '2025-01-24 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 10:59:26] Production.INFO: count ==3524 [2025-01-24 10:59:27] Production.ERROR: pbx CDR StartTime 2025-01-24 07:59:06 - End Time 2025-01-24 10:59:06 [2025-01-24 10:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319206', 'tblTempUsageDetail_20' ) start [2025-01-24 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319206', 'tblTempUsageDetail_20' ) end [2025-01-24 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319206', 'tblTempVendorCDR_20' ) start [2025-01-24 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319206', 'tblTempVendorCDR_20' ) end [2025-01-24 10:59:28] Production.INFO: ProcessCDR(1,14319206,1,1,2) [2025-01-24 10:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 10:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 10:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319206', 'tblTempUsageDetail_20' ) start [2025-01-24 10:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319206', 'tblTempUsageDetail_20' ) end [2025-01-24 10:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 10:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 10:59:33] Production.INFO: ==13705== Releasing lock... [2025-01-24 10:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 10:59:33] Production.INFO: 54.25 MB #Memory Used# [2025-01-24 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:00:07 [end_date_ymd] => 2025-01-24 11:00:07 [RateCDR] => 1 ) [2025-01-24 11: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-24 08:00:07' and `end` < '2025-01-24 11: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-24 11:00:33] Production.INFO: count ==3542 [2025-01-24 11:00:35] Production.ERROR: pbx CDR StartTime 2025-01-24 08:00:07 - End Time 2025-01-24 11:00:07 [2025-01-24 11:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319212', 'tblTempUsageDetail_20' ) start [2025-01-24 11:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319212', 'tblTempUsageDetail_20' ) end [2025-01-24 11:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319212', 'tblTempVendorCDR_20' ) start [2025-01-24 11:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319212', 'tblTempVendorCDR_20' ) end [2025-01-24 11:00:35] Production.INFO: ProcessCDR(1,14319212,1,1,2) [2025-01-24 11:00:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319212', 'tblTempUsageDetail_20' ) start [2025-01-24 11:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319212', 'tblTempUsageDetail_20' ) end [2025-01-24 11:00:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:00:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:00:40] Production.INFO: ==13779== Releasing lock... [2025-01-24 11:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:00:40] Production.INFO: 54.75 MB #Memory Used# [2025-01-24 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:01:05 [end_date_ymd] => 2025-01-24 11:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:01:05' and `end` < '2025-01-24 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-24 11:01:23] Production.INFO: count ==3682 [2025-01-24 11:01:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:01:05 - End Time 2025-01-24 11:01:05 [2025-01-24 11:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319217', 'tblTempUsageDetail_20' ) start [2025-01-24 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319217', 'tblTempUsageDetail_20' ) end [2025-01-24 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319217', 'tblTempVendorCDR_20' ) start [2025-01-24 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319217', 'tblTempVendorCDR_20' ) end [2025-01-24 11:01:25] Production.INFO: ProcessCDR(1,14319217,1,1,2) [2025-01-24 11:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319217', 'tblTempUsageDetail_20' ) start [2025-01-24 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319217', 'tblTempUsageDetail_20' ) end [2025-01-24 11:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:01:30] Production.INFO: ==13946== Releasing lock... [2025-01-24 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:01:30] Production.INFO: 55.75 MB #Memory Used# [2025-01-24 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:02:05 [end_date_ymd] => 2025-01-24 11:02:05 [RateCDR] => 1 ) [2025-01-24 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:02:05' and `end` < '2025-01-24 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:02:30] Production.INFO: count ==3695 [2025-01-24 11:02:31] Production.ERROR: pbx CDR StartTime 2025-01-24 08:02:05 - End Time 2025-01-24 11:02:05 [2025-01-24 11:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319222', 'tblTempUsageDetail_20' ) start [2025-01-24 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319222', 'tblTempUsageDetail_20' ) end [2025-01-24 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319222', 'tblTempVendorCDR_20' ) start [2025-01-24 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319222', 'tblTempVendorCDR_20' ) end [2025-01-24 11:02:31] Production.INFO: ProcessCDR(1,14319222,1,1,2) [2025-01-24 11:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319222', 'tblTempUsageDetail_20' ) start [2025-01-24 11:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319222', 'tblTempUsageDetail_20' ) end [2025-01-24 11:02:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:02:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:02:37] Production.INFO: ==14021== Releasing lock... [2025-01-24 11:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:02:37] Production.INFO: 55.75 MB #Memory Used# [2025-01-24 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:03:05 [end_date_ymd] => 2025-01-24 11:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:03:05' and `end` < '2025-01-24 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-24 11:03:24] Production.INFO: count ==3711 [2025-01-24 11:03:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:03:05 - End Time 2025-01-24 11:03:05 [2025-01-24 11:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319227', 'tblTempUsageDetail_20' ) start [2025-01-24 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319227', 'tblTempUsageDetail_20' ) end [2025-01-24 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319227', 'tblTempVendorCDR_20' ) start [2025-01-24 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319227', 'tblTempVendorCDR_20' ) end [2025-01-24 11:03:25] Production.INFO: ProcessCDR(1,14319227,1,1,2) [2025-01-24 11:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319227', 'tblTempUsageDetail_20' ) start [2025-01-24 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319227', 'tblTempUsageDetail_20' ) end [2025-01-24 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:03:31] Production.INFO: ==14092== Releasing lock... [2025-01-24 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:03:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:04:06 [end_date_ymd] => 2025-01-24 11:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:04:06' and `end` < '2025-01-24 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-24 11:04:25] Production.INFO: count ==3715 [2025-01-24 11:04:27] Production.ERROR: pbx CDR StartTime 2025-01-24 08:04:06 - End Time 2025-01-24 11:04:06 [2025-01-24 11:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319232', 'tblTempUsageDetail_20' ) start [2025-01-24 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319232', 'tblTempUsageDetail_20' ) end [2025-01-24 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319232', 'tblTempVendorCDR_20' ) start [2025-01-24 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319232', 'tblTempVendorCDR_20' ) end [2025-01-24 11:04:27] Production.INFO: ProcessCDR(1,14319232,1,1,2) [2025-01-24 11:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319232', 'tblTempUsageDetail_20' ) start [2025-01-24 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319232', 'tblTempUsageDetail_20' ) end [2025-01-24 11:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:04:32] Production.INFO: ==14167== Releasing lock... [2025-01-24 11:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:04:32] Production.INFO: 55.75 MB #Memory Used# [2025-01-24 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:05:06 [end_date_ymd] => 2025-01-24 11:05:06 [RateCDR] => 1 ) [2025-01-24 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:05:06' and `end` < '2025-01-24 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:05:19] Production.INFO: count ==3737 [2025-01-24 11:05:20] Production.ERROR: pbx CDR StartTime 2025-01-24 08:05:06 - End Time 2025-01-24 11:05:06 [2025-01-24 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319237', 'tblTempUsageDetail_20' ) start [2025-01-24 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319237', 'tblTempUsageDetail_20' ) end [2025-01-24 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319237', 'tblTempVendorCDR_20' ) start [2025-01-24 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319237', 'tblTempVendorCDR_20' ) end [2025-01-24 11:05:21] Production.INFO: ProcessCDR(1,14319237,1,1,2) [2025-01-24 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319237', 'tblTempUsageDetail_20' ) start [2025-01-24 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319237', 'tblTempUsageDetail_20' ) end [2025-01-24 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:05:26] Production.INFO: ==14314== Releasing lock... [2025-01-24 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:05:26] Production.INFO: 57 MB #Memory Used# [2025-01-24 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:06:06 [end_date_ymd] => 2025-01-24 11:06:06 [RateCDR] => 1 ) [2025-01-24 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:06:06' and `end` < '2025-01-24 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:06:20] Production.INFO: count ==3759 [2025-01-24 11:06:21] Production.ERROR: pbx CDR StartTime 2025-01-24 08:06:06 - End Time 2025-01-24 11:06:06 [2025-01-24 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319242', 'tblTempUsageDetail_20' ) start [2025-01-24 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319242', 'tblTempUsageDetail_20' ) end [2025-01-24 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319242', 'tblTempVendorCDR_20' ) start [2025-01-24 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319242', 'tblTempVendorCDR_20' ) end [2025-01-24 11:06:22] Production.INFO: ProcessCDR(1,14319242,1,1,2) [2025-01-24 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319242', 'tblTempUsageDetail_20' ) start [2025-01-24 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319242', 'tblTempUsageDetail_20' ) end [2025-01-24 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:06:27] Production.INFO: ==14390== Releasing lock... [2025-01-24 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:06:27] Production.INFO: 56 MB #Memory Used# [2025-01-24 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:07:06 [end_date_ymd] => 2025-01-24 11:07:06 [RateCDR] => 1 ) [2025-01-24 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:07:06' and `end` < '2025-01-24 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:07:23] Production.INFO: count ==3767 [2025-01-24 11:07:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:07:06 - End Time 2025-01-24 11:07:06 [2025-01-24 11:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319247', 'tblTempUsageDetail_20' ) start [2025-01-24 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319247', 'tblTempUsageDetail_20' ) end [2025-01-24 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319247', 'tblTempVendorCDR_20' ) start [2025-01-24 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319247', 'tblTempVendorCDR_20' ) end [2025-01-24 11:07:25] Production.INFO: ProcessCDR(1,14319247,1,1,2) [2025-01-24 11:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319247', 'tblTempUsageDetail_20' ) start [2025-01-24 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319247', 'tblTempUsageDetail_20' ) end [2025-01-24 11:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:07:29] Production.INFO: ==14467== Releasing lock... [2025-01-24 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:07:29] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:08:06 [end_date_ymd] => 2025-01-24 11:08:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:08:06' and `end` < '2025-01-24 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-24 11:08:25] Production.INFO: count ==3780 [2025-01-24 11:08:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:08:06 - End Time 2025-01-24 11:08:06 [2025-01-24 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319252', 'tblTempUsageDetail_20' ) start [2025-01-24 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319252', 'tblTempUsageDetail_20' ) end [2025-01-24 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319252', 'tblTempVendorCDR_20' ) start [2025-01-24 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319252', 'tblTempVendorCDR_20' ) end [2025-01-24 11:08:26] Production.INFO: ProcessCDR(1,14319252,1,1,2) [2025-01-24 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319252', 'tblTempUsageDetail_20' ) start [2025-01-24 11:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319252', 'tblTempUsageDetail_20' ) end [2025-01-24 11:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:08:33] Production.INFO: ==14615== Releasing lock... [2025-01-24 11:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:08:33] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:09:05 [end_date_ymd] => 2025-01-24 11:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:09:05' and `end` < '2025-01-24 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-24 11:09:22] Production.INFO: count ==3799 [2025-01-24 11:09:24] Production.ERROR: pbx CDR StartTime 2025-01-24 08:09:05 - End Time 2025-01-24 11:09:05 [2025-01-24 11:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319257', 'tblTempUsageDetail_20' ) start [2025-01-24 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319257', 'tblTempUsageDetail_20' ) end [2025-01-24 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319257', 'tblTempVendorCDR_20' ) start [2025-01-24 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319257', 'tblTempVendorCDR_20' ) end [2025-01-24 11:09:24] Production.INFO: ProcessCDR(1,14319257,1,1,2) [2025-01-24 11:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319257', 'tblTempUsageDetail_20' ) start [2025-01-24 11:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319257', 'tblTempUsageDetail_20' ) end [2025-01-24 11:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:09:30] Production.INFO: ==14690== Releasing lock... [2025-01-24 11:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:09:30] Production.INFO: 56.5 MB #Memory Used# [2025-01-24 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:10:06 [end_date_ymd] => 2025-01-24 11:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:10:06' and `end` < '2025-01-24 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-24 11:10:27] Production.INFO: count ==3801 [2025-01-24 11:10:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:10:06 - End Time 2025-01-24 11:10:06 [2025-01-24 11:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319263', 'tblTempUsageDetail_20' ) start [2025-01-24 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319263', 'tblTempUsageDetail_20' ) end [2025-01-24 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319263', 'tblTempVendorCDR_20' ) start [2025-01-24 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319263', 'tblTempVendorCDR_20' ) end [2025-01-24 11:10:29] Production.INFO: ProcessCDR(1,14319263,1,1,2) [2025-01-24 11:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319263', 'tblTempUsageDetail_20' ) start [2025-01-24 11:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319263', 'tblTempUsageDetail_20' ) end [2025-01-24 11:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:10:35] Production.INFO: ==14762== Releasing lock... [2025-01-24 11:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:10:35] Production.INFO: 56.5 MB #Memory Used# [2025-01-24 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:11:06 [end_date_ymd] => 2025-01-24 11:11:06 [RateCDR] => 1 ) [2025-01-24 11: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-24 08:11:06' and `end` < '2025-01-24 11: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-24 11:11:34] Production.INFO: count ==3916 [2025-01-24 11:11:36] Production.ERROR: pbx CDR StartTime 2025-01-24 08:11:06 - End Time 2025-01-24 11:11:06 [2025-01-24 11:11:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319268', 'tblTempUsageDetail_20' ) start [2025-01-24 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319268', 'tblTempUsageDetail_20' ) end [2025-01-24 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319268', 'tblTempVendorCDR_20' ) start [2025-01-24 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319268', 'tblTempVendorCDR_20' ) end [2025-01-24 11:11:36] Production.INFO: ProcessCDR(1,14319268,1,1,2) [2025-01-24 11:11:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:11:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:11:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:11:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:11:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319268', 'tblTempUsageDetail_20' ) start [2025-01-24 11:11:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319268', 'tblTempUsageDetail_20' ) end [2025-01-24 11:11:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:11:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:11:42] Production.INFO: ==14839== Releasing lock... [2025-01-24 11:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:11:42] Production.INFO: 57.25 MB #Memory Used# [2025-01-24 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:12:05 [end_date_ymd] => 2025-01-24 11:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:12:05' and `end` < '2025-01-24 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-24 11:12:24] Production.INFO: count ==3922 [2025-01-24 11:12:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:12:05 - End Time 2025-01-24 11:12:05 [2025-01-24 11:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319273', 'tblTempUsageDetail_20' ) start [2025-01-24 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319273', 'tblTempUsageDetail_20' ) end [2025-01-24 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319273', 'tblTempVendorCDR_20' ) start [2025-01-24 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319273', 'tblTempVendorCDR_20' ) end [2025-01-24 11:12:26] Production.INFO: ProcessCDR(1,14319273,1,1,2) [2025-01-24 11:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319273', 'tblTempUsageDetail_20' ) start [2025-01-24 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319273', 'tblTempUsageDetail_20' ) end [2025-01-24 11:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:12:31] Production.INFO: ==14997== Releasing lock... [2025-01-24 11:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:12:31] Production.INFO: 57.25 MB #Memory Used# [2025-01-24 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:13:06 [end_date_ymd] => 2025-01-24 11:13:06 [RateCDR] => 1 ) [2025-01-24 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:13:06' and `end` < '2025-01-24 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:13:22] Production.INFO: count ==3938 [2025-01-24 11:13:23] Production.ERROR: pbx CDR StartTime 2025-01-24 08:13:06 - End Time 2025-01-24 11:13:06 [2025-01-24 11:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319278', 'tblTempUsageDetail_20' ) start [2025-01-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319278', 'tblTempUsageDetail_20' ) end [2025-01-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319278', 'tblTempVendorCDR_20' ) start [2025-01-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319278', 'tblTempVendorCDR_20' ) end [2025-01-24 11:13:23] Production.INFO: ProcessCDR(1,14319278,1,1,2) [2025-01-24 11:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319278', 'tblTempUsageDetail_20' ) start [2025-01-24 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319278', 'tblTempUsageDetail_20' ) end [2025-01-24 11:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:13:29] Production.INFO: ==15107== Releasing lock... [2025-01-24 11:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:13:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:14:05 [end_date_ymd] => 2025-01-24 11:14:05 [RateCDR] => 1 ) [2025-01-24 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:14:05' and `end` < '2025-01-24 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:14:22] Production.INFO: count ==3954 [2025-01-24 11:14:24] Production.ERROR: pbx CDR StartTime 2025-01-24 08:14:05 - End Time 2025-01-24 11:14:05 [2025-01-24 11:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319283', 'tblTempUsageDetail_20' ) start [2025-01-24 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319283', 'tblTempUsageDetail_20' ) end [2025-01-24 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319283', 'tblTempVendorCDR_20' ) start [2025-01-24 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319283', 'tblTempVendorCDR_20' ) end [2025-01-24 11:14:24] Production.INFO: ProcessCDR(1,14319283,1,1,2) [2025-01-24 11:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319283', 'tblTempUsageDetail_20' ) start [2025-01-24 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319283', 'tblTempUsageDetail_20' ) end [2025-01-24 11:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:14:30] Production.INFO: ==15183== Releasing lock... [2025-01-24 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:14:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-24 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:15:06 [end_date_ymd] => 2025-01-24 11:15:06 [RateCDR] => 1 ) [2025-01-24 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:15:06' and `end` < '2025-01-24 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:15:29] Production.INFO: count ==3960 [2025-01-24 11:15:30] Production.ERROR: pbx CDR StartTime 2025-01-24 08:15:06 - End Time 2025-01-24 11:15:06 [2025-01-24 11:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319288', 'tblTempUsageDetail_20' ) start [2025-01-24 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319288', 'tblTempUsageDetail_20' ) end [2025-01-24 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319288', 'tblTempVendorCDR_20' ) start [2025-01-24 11:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319288', 'tblTempVendorCDR_20' ) end [2025-01-24 11:15:30] Production.INFO: ProcessCDR(1,14319288,1,1,2) [2025-01-24 11:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319288', 'tblTempUsageDetail_20' ) start [2025-01-24 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319288', 'tblTempUsageDetail_20' ) end [2025-01-24 11:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:15:36] Production.INFO: ==15335== Releasing lock... [2025-01-24 11:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:15:36] Production.INFO: 57.5 MB #Memory Used# [2025-01-24 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:16:05 [end_date_ymd] => 2025-01-24 11:16:05 [RateCDR] => 1 ) [2025-01-24 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:16:05' and `end` < '2025-01-24 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:16:29] Production.INFO: count ==3972 [2025-01-24 11:16:31] Production.ERROR: pbx CDR StartTime 2025-01-24 08:16:05 - End Time 2025-01-24 11:16:05 [2025-01-24 11:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319293', 'tblTempUsageDetail_20' ) start [2025-01-24 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319293', 'tblTempUsageDetail_20' ) end [2025-01-24 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319293', 'tblTempVendorCDR_20' ) start [2025-01-24 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319293', 'tblTempVendorCDR_20' ) end [2025-01-24 11:16:31] Production.INFO: ProcessCDR(1,14319293,1,1,2) [2025-01-24 11:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319293', 'tblTempUsageDetail_20' ) start [2025-01-24 11:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319293', 'tblTempUsageDetail_20' ) end [2025-01-24 11:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:16:36] Production.INFO: ==15408== Releasing lock... [2025-01-24 11:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:16:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 11:17:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:17:07 [end_date_ymd] => 2025-01-24 11:17:07 [RateCDR] => 1 ) [2025-01-24 11:17: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-24 08:17:07' and `end` < '2025-01-24 11:17: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-24 11:17:31] Production.INFO: count ==3999 [2025-01-24 11:17:32] Production.ERROR: pbx CDR StartTime 2025-01-24 08:17:07 - End Time 2025-01-24 11:17:07 [2025-01-24 11:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319298', 'tblTempUsageDetail_20' ) start [2025-01-24 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319298', 'tblTempUsageDetail_20' ) end [2025-01-24 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319298', 'tblTempVendorCDR_20' ) start [2025-01-24 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319298', 'tblTempVendorCDR_20' ) end [2025-01-24 11:17:32] Production.INFO: ProcessCDR(1,14319298,1,1,2) [2025-01-24 11:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319298', 'tblTempUsageDetail_20' ) start [2025-01-24 11:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319298', 'tblTempUsageDetail_20' ) end [2025-01-24 11:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:17:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:17:38] Production.INFO: ==15520== Releasing lock... [2025-01-24 11:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:17:38] Production.INFO: 58 MB #Memory Used# [2025-01-24 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:18:05 [end_date_ymd] => 2025-01-24 11:18:05 [RateCDR] => 1 ) [2025-01-24 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:18:05' and `end` < '2025-01-24 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:18:28] Production.INFO: count ==3996 [2025-01-24 11:18:30] Production.ERROR: pbx CDR StartTime 2025-01-24 08:18:05 - End Time 2025-01-24 11:18:05 [2025-01-24 11:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319303', 'tblTempUsageDetail_20' ) start [2025-01-24 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319303', 'tblTempUsageDetail_20' ) end [2025-01-24 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319303', 'tblTempVendorCDR_20' ) start [2025-01-24 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319303', 'tblTempVendorCDR_20' ) end [2025-01-24 11:18:30] Production.INFO: ProcessCDR(1,14319303,1,1,2) [2025-01-24 11:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319303', 'tblTempUsageDetail_20' ) start [2025-01-24 11:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319303', 'tblTempUsageDetail_20' ) end [2025-01-24 11:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:18:35] Production.INFO: ==15631== Releasing lock... [2025-01-24 11:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:18:35] Production.INFO: 58 MB #Memory Used# [2025-01-24 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:19:05 [end_date_ymd] => 2025-01-24 11:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:19:05' and `end` < '2025-01-24 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-24 11:19:24] Production.INFO: count ==3998 [2025-01-24 11:19:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:19:05 - End Time 2025-01-24 11:19:05 [2025-01-24 11:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319308', 'tblTempUsageDetail_20' ) start [2025-01-24 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319308', 'tblTempUsageDetail_20' ) end [2025-01-24 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319308', 'tblTempVendorCDR_20' ) start [2025-01-24 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319308', 'tblTempVendorCDR_20' ) end [2025-01-24 11:19:26] Production.INFO: ProcessCDR(1,14319308,1,1,2) [2025-01-24 11:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319308', 'tblTempUsageDetail_20' ) start [2025-01-24 11:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319308', 'tblTempUsageDetail_20' ) end [2025-01-24 11:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:19:31] Production.INFO: ==15719== Releasing lock... [2025-01-24 11:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:19:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-24 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:20:06 [end_date_ymd] => 2025-01-24 11:20:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:20:06' and `end` < '2025-01-24 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-24 11:20:28] Production.INFO: count ==4006 [2025-01-24 11:20:30] Production.ERROR: pbx CDR StartTime 2025-01-24 08:20:06 - End Time 2025-01-24 11:20:06 [2025-01-24 11:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319313', 'tblTempUsageDetail_20' ) start [2025-01-24 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319313', 'tblTempUsageDetail_20' ) end [2025-01-24 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319313', 'tblTempVendorCDR_20' ) start [2025-01-24 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319313', 'tblTempVendorCDR_20' ) end [2025-01-24 11:20:30] Production.INFO: ProcessCDR(1,14319313,1,1,2) [2025-01-24 11:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319313', 'tblTempUsageDetail_20' ) start [2025-01-24 11:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319313', 'tblTempUsageDetail_20' ) end [2025-01-24 11:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:20:35] Production.INFO: ==15792== Releasing lock... [2025-01-24 11:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:20:35] Production.INFO: 58 MB #Memory Used# [2025-01-24 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:21:06 [end_date_ymd] => 2025-01-24 11:21:06 [RateCDR] => 1 ) [2025-01-24 11: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-24 08:21:06' and `end` < '2025-01-24 11: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-24 11:21:22] Production.INFO: count ==4107 [2025-01-24 11:21:24] Production.ERROR: pbx CDR StartTime 2025-01-24 08:21:06 - End Time 2025-01-24 11:21:06 [2025-01-24 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319319', 'tblTempUsageDetail_20' ) start [2025-01-24 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319319', 'tblTempUsageDetail_20' ) end [2025-01-24 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319319', 'tblTempVendorCDR_20' ) start [2025-01-24 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319319', 'tblTempVendorCDR_20' ) end [2025-01-24 11:21:24] Production.INFO: ProcessCDR(1,14319319,1,1,2) [2025-01-24 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319319', 'tblTempUsageDetail_20' ) start [2025-01-24 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319319', 'tblTempUsageDetail_20' ) end [2025-01-24 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:21:29] Production.INFO: ==15868== Releasing lock... [2025-01-24 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:21:29] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:22:06 [end_date_ymd] => 2025-01-24 11:22:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:22:06' and `end` < '2025-01-24 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-24 11:22:20] Production.INFO: count ==4120 [2025-01-24 11:22:21] Production.ERROR: pbx CDR StartTime 2025-01-24 08:22:06 - End Time 2025-01-24 11:22:06 [2025-01-24 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319324', 'tblTempUsageDetail_20' ) start [2025-01-24 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319324', 'tblTempUsageDetail_20' ) end [2025-01-24 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319324', 'tblTempVendorCDR_20' ) start [2025-01-24 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319324', 'tblTempVendorCDR_20' ) end [2025-01-24 11:22:21] Production.INFO: ProcessCDR(1,14319324,1,1,2) [2025-01-24 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319324', 'tblTempUsageDetail_20' ) start [2025-01-24 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319324', 'tblTempUsageDetail_20' ) end [2025-01-24 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:22:26] Production.INFO: ==15942== Releasing lock... [2025-01-24 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:22:26] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:23:05 [end_date_ymd] => 2025-01-24 11:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:23:05' and `end` < '2025-01-24 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-24 11:23:34] Production.INFO: count ==4148 [2025-01-24 11:23:36] Production.ERROR: pbx CDR StartTime 2025-01-24 08:23:05 - End Time 2025-01-24 11:23:05 [2025-01-24 11:23:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319329', 'tblTempUsageDetail_20' ) start [2025-01-24 11:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319329', 'tblTempUsageDetail_20' ) end [2025-01-24 11:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319329', 'tblTempVendorCDR_20' ) start [2025-01-24 11:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319329', 'tblTempVendorCDR_20' ) end [2025-01-24 11:23:36] Production.INFO: ProcessCDR(1,14319329,1,1,2) [2025-01-24 11:23:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:23:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:23:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:23:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:23:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319329', 'tblTempUsageDetail_20' ) start [2025-01-24 11:23:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319329', 'tblTempUsageDetail_20' ) end [2025-01-24 11:23:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:23:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:23:42] Production.INFO: ==16015== Releasing lock... [2025-01-24 11:23:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:23:42] Production.INFO: 59 MB #Memory Used# [2025-01-24 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:24:05 [end_date_ymd] => 2025-01-24 11:24:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:24:05' and `end` < '2025-01-24 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-24 11:24:24] Production.INFO: count ==4163 [2025-01-24 11:24:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:24:05 - End Time 2025-01-24 11:24:05 [2025-01-24 11:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319334', 'tblTempUsageDetail_20' ) start [2025-01-24 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319334', 'tblTempUsageDetail_20' ) end [2025-01-24 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319334', 'tblTempVendorCDR_20' ) start [2025-01-24 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319334', 'tblTempVendorCDR_20' ) end [2025-01-24 11:24:25] Production.INFO: ProcessCDR(1,14319334,1,1,2) [2025-01-24 11:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319334', 'tblTempUsageDetail_20' ) start [2025-01-24 11:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319334', 'tblTempUsageDetail_20' ) end [2025-01-24 11:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:24:30] Production.INFO: ==16093== Releasing lock... [2025-01-24 11:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:24:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-24 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:25:05 [end_date_ymd] => 2025-01-24 11:25:05 [RateCDR] => 1 ) [2025-01-24 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:25:05' and `end` < '2025-01-24 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:25:25] Production.INFO: count ==4170 [2025-01-24 11:25:27] Production.ERROR: pbx CDR StartTime 2025-01-24 08:25:05 - End Time 2025-01-24 11:25:05 [2025-01-24 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319339', 'tblTempUsageDetail_20' ) start [2025-01-24 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319339', 'tblTempUsageDetail_20' ) end [2025-01-24 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319339', 'tblTempVendorCDR_20' ) start [2025-01-24 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319339', 'tblTempVendorCDR_20' ) end [2025-01-24 11:25:27] Production.INFO: ProcessCDR(1,14319339,1,1,2) [2025-01-24 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319339', 'tblTempUsageDetail_20' ) start [2025-01-24 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319339', 'tblTempUsageDetail_20' ) end [2025-01-24 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:25:32] Production.INFO: ==16166== Releasing lock... [2025-01-24 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:25:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-24 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:26:05 [end_date_ymd] => 2025-01-24 11:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:26:05' and `end` < '2025-01-24 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-24 11:26:28] Production.INFO: count ==4205 [2025-01-24 11:26:30] Production.ERROR: pbx CDR StartTime 2025-01-24 08:26:05 - End Time 2025-01-24 11:26:05 [2025-01-24 11:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319344', 'tblTempUsageDetail_20' ) start [2025-01-24 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319344', 'tblTempUsageDetail_20' ) end [2025-01-24 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319344', 'tblTempVendorCDR_20' ) start [2025-01-24 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319344', 'tblTempVendorCDR_20' ) end [2025-01-24 11:26:30] Production.INFO: ProcessCDR(1,14319344,1,1,2) [2025-01-24 11:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319344', 'tblTempUsageDetail_20' ) start [2025-01-24 11:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319344', 'tblTempUsageDetail_20' ) end [2025-01-24 11:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:26:35] Production.INFO: ==16240== Releasing lock... [2025-01-24 11:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:26:35] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:27:06 [end_date_ymd] => 2025-01-24 11:27:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:27:06' and `end` < '2025-01-24 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-24 11:27:24] Production.INFO: count ==4215 [2025-01-24 11:27:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:27:06 - End Time 2025-01-24 11:27:06 [2025-01-24 11:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319349', 'tblTempUsageDetail_20' ) start [2025-01-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319349', 'tblTempUsageDetail_20' ) end [2025-01-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319349', 'tblTempVendorCDR_20' ) start [2025-01-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319349', 'tblTempVendorCDR_20' ) end [2025-01-24 11:27:26] Production.INFO: ProcessCDR(1,14319349,1,1,2) [2025-01-24 11:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319349', 'tblTempUsageDetail_20' ) start [2025-01-24 11:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319349', 'tblTempUsageDetail_20' ) end [2025-01-24 11:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:27:31] Production.INFO: ==16317== Releasing lock... [2025-01-24 11:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:27:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-24 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:28:05 [end_date_ymd] => 2025-01-24 11:28:05 [RateCDR] => 1 ) [2025-01-24 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:28:05' and `end` < '2025-01-24 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-24 11:28:21] Production.INFO: count ==4211 [2025-01-24 11:28:23] Production.ERROR: pbx CDR StartTime 2025-01-24 08:28:05 - End Time 2025-01-24 11:28:05 [2025-01-24 11:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319354', 'tblTempUsageDetail_20' ) start [2025-01-24 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319354', 'tblTempUsageDetail_20' ) end [2025-01-24 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319354', 'tblTempVendorCDR_20' ) start [2025-01-24 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319354', 'tblTempVendorCDR_20' ) end [2025-01-24 11:28:23] Production.INFO: ProcessCDR(1,14319354,1,1,2) [2025-01-24 11:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319354', 'tblTempUsageDetail_20' ) start [2025-01-24 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319354', 'tblTempUsageDetail_20' ) end [2025-01-24 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:28:27] Production.INFO: ==16387== Releasing lock... [2025-01-24 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:28:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-24 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:29:05 [end_date_ymd] => 2025-01-24 11:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:29:05' and `end` < '2025-01-24 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-24 11:29:19] Production.INFO: count ==4218 [2025-01-24 11:29:21] Production.ERROR: pbx CDR StartTime 2025-01-24 08:29:05 - End Time 2025-01-24 11:29:05 [2025-01-24 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319359', 'tblTempUsageDetail_20' ) start [2025-01-24 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319359', 'tblTempUsageDetail_20' ) end [2025-01-24 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319359', 'tblTempVendorCDR_20' ) start [2025-01-24 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319359', 'tblTempVendorCDR_20' ) end [2025-01-24 11:29:21] Production.INFO: ProcessCDR(1,14319359,1,1,2) [2025-01-24 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319359', 'tblTempUsageDetail_20' ) start [2025-01-24 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319359', 'tblTempUsageDetail_20' ) end [2025-01-24 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:29:25] Production.INFO: ==16512== Releasing lock... [2025-01-24 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:29:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-24 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:30:06 [end_date_ymd] => 2025-01-24 11:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:30:06' and `end` < '2025-01-24 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-24 11:30:28] Production.INFO: count ==4236 [2025-01-24 11:30:30] Production.ERROR: pbx CDR StartTime 2025-01-24 08:30:06 - End Time 2025-01-24 11:30:06 [2025-01-24 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319365', 'tblTempUsageDetail_20' ) start [2025-01-24 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319365', 'tblTempUsageDetail_20' ) end [2025-01-24 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319365', 'tblTempVendorCDR_20' ) start [2025-01-24 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319365', 'tblTempVendorCDR_20' ) end [2025-01-24 11:30:30] Production.INFO: ProcessCDR(1,14319365,1,1,2) [2025-01-24 11:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319365', 'tblTempUsageDetail_20' ) start [2025-01-24 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319365', 'tblTempUsageDetail_20' ) end [2025-01-24 11:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:30:35] Production.INFO: ==16588== Releasing lock... [2025-01-24 11:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:30:35] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:31:04 [end_date_ymd] => 2025-01-24 11:31:04 [RateCDR] => 1 ) [2025-01-24 11: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-24 08:31:04' and `end` < '2025-01-24 11: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-24 11:31:21] Production.INFO: count ==4334 [2025-01-24 11:31:23] Production.ERROR: pbx CDR StartTime 2025-01-24 08:31:04 - End Time 2025-01-24 11:31:04 [2025-01-24 11:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319370', 'tblTempUsageDetail_20' ) start [2025-01-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319370', 'tblTempUsageDetail_20' ) end [2025-01-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319370', 'tblTempVendorCDR_20' ) start [2025-01-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319370', 'tblTempVendorCDR_20' ) end [2025-01-24 11:31:23] Production.INFO: ProcessCDR(1,14319370,1,1,2) [2025-01-24 11:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319370', 'tblTempUsageDetail_20' ) start [2025-01-24 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319370', 'tblTempUsageDetail_20' ) end [2025-01-24 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:31:27] Production.INFO: ==16661== Releasing lock... [2025-01-24 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:31:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-24 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:32:06 [end_date_ymd] => 2025-01-24 11:32:06 [RateCDR] => 1 ) [2025-01-24 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:32:06' and `end` < '2025-01-24 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:32:27] Production.INFO: count ==4358 [2025-01-24 11:32:28] Production.ERROR: pbx CDR StartTime 2025-01-24 08:32:06 - End Time 2025-01-24 11:32:06 [2025-01-24 11:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319375', 'tblTempUsageDetail_20' ) start [2025-01-24 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319375', 'tblTempUsageDetail_20' ) end [2025-01-24 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319375', 'tblTempVendorCDR_20' ) start [2025-01-24 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319375', 'tblTempVendorCDR_20' ) end [2025-01-24 11:32:28] Production.INFO: ProcessCDR(1,14319375,1,1,2) [2025-01-24 11:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319375', 'tblTempUsageDetail_20' ) start [2025-01-24 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319375', 'tblTempUsageDetail_20' ) end [2025-01-24 11:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:32:33] Production.INFO: ==16741== Releasing lock... [2025-01-24 11:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:32:33] Production.INFO: 60.75 MB #Memory Used# [2025-01-24 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:33:05 [end_date_ymd] => 2025-01-24 11:33:05 [RateCDR] => 1 ) [2025-01-24 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:33:05' and `end` < '2025-01-24 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-24 11:33:28] Production.INFO: count ==4393 [2025-01-24 11:33:30] Production.ERROR: pbx CDR StartTime 2025-01-24 08:33:05 - End Time 2025-01-24 11:33:05 [2025-01-24 11:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319380', 'tblTempUsageDetail_20' ) start [2025-01-24 11:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319380', 'tblTempUsageDetail_20' ) end [2025-01-24 11:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319380', 'tblTempVendorCDR_20' ) start [2025-01-24 11:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319380', 'tblTempVendorCDR_20' ) end [2025-01-24 11:33:30] Production.INFO: ProcessCDR(1,14319380,1,1,2) [2025-01-24 11:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319380', 'tblTempUsageDetail_20' ) start [2025-01-24 11:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319380', 'tblTempUsageDetail_20' ) end [2025-01-24 11:33:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:33:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:33:35] Production.INFO: ==16817== Releasing lock... [2025-01-24 11:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:33:35] Production.INFO: 61 MB #Memory Used# [2025-01-24 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:34:06 [end_date_ymd] => 2025-01-24 11:34:06 [RateCDR] => 1 ) [2025-01-24 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:34:06' and `end` < '2025-01-24 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:34:25] Production.INFO: count ==4406 [2025-01-24 11:34:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:34:06 - End Time 2025-01-24 11:34:06 [2025-01-24 11:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319385', 'tblTempUsageDetail_20' ) start [2025-01-24 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319385', 'tblTempUsageDetail_20' ) end [2025-01-24 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319385', 'tblTempVendorCDR_20' ) start [2025-01-24 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319385', 'tblTempVendorCDR_20' ) end [2025-01-24 11:34:26] Production.INFO: ProcessCDR(1,14319385,1,1,2) [2025-01-24 11:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319385', 'tblTempUsageDetail_20' ) start [2025-01-24 11:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319385', 'tblTempUsageDetail_20' ) end [2025-01-24 11:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:34:32] Production.INFO: ==16889== Releasing lock... [2025-01-24 11:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:34:32] Production.INFO: 61 MB #Memory Used# [2025-01-24 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:35:05 [end_date_ymd] => 2025-01-24 11:35:05 [RateCDR] => 1 ) [2025-01-24 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:35:05' and `end` < '2025-01-24 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:35:27] Production.INFO: count ==4415 [2025-01-24 11:35:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:35:05 - End Time 2025-01-24 11:35:05 [2025-01-24 11:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319390', 'tblTempUsageDetail_20' ) start [2025-01-24 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319390', 'tblTempUsageDetail_20' ) end [2025-01-24 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319390', 'tblTempVendorCDR_20' ) start [2025-01-24 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319390', 'tblTempVendorCDR_20' ) end [2025-01-24 11:35:29] Production.INFO: ProcessCDR(1,14319390,1,1,2) [2025-01-24 11:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319390', 'tblTempUsageDetail_20' ) start [2025-01-24 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319390', 'tblTempUsageDetail_20' ) end [2025-01-24 11:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:35:34] Production.INFO: ==16960== Releasing lock... [2025-01-24 11:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:35:34] Production.INFO: 61 MB #Memory Used# [2025-01-24 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:36:06 [end_date_ymd] => 2025-01-24 11:36:06 [RateCDR] => 1 ) [2025-01-24 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:36:06' and `end` < '2025-01-24 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:36:25] Production.INFO: count ==4425 [2025-01-24 11:36:27] Production.ERROR: pbx CDR StartTime 2025-01-24 08:36:06 - End Time 2025-01-24 11:36:06 [2025-01-24 11:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319395', 'tblTempUsageDetail_20' ) start [2025-01-24 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319395', 'tblTempUsageDetail_20' ) end [2025-01-24 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319395', 'tblTempVendorCDR_20' ) start [2025-01-24 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319395', 'tblTempVendorCDR_20' ) end [2025-01-24 11:36:27] Production.INFO: ProcessCDR(1,14319395,1,1,2) [2025-01-24 11:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319395', 'tblTempUsageDetail_20' ) start [2025-01-24 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319395', 'tblTempUsageDetail_20' ) end [2025-01-24 11:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:36:32] Production.INFO: ==17031== Releasing lock... [2025-01-24 11:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:36:32] Production.INFO: 61.25 MB #Memory Used# [2025-01-24 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:37:05 [end_date_ymd] => 2025-01-24 11:37:05 [RateCDR] => 1 ) [2025-01-24 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:37:05' and `end` < '2025-01-24 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:37:22] Production.INFO: count ==4433 [2025-01-24 11:37:23] Production.ERROR: pbx CDR StartTime 2025-01-24 08:37:05 - End Time 2025-01-24 11:37:05 [2025-01-24 11:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319400', 'tblTempUsageDetail_20' ) start [2025-01-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319400', 'tblTempUsageDetail_20' ) end [2025-01-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319400', 'tblTempVendorCDR_20' ) start [2025-01-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319400', 'tblTempVendorCDR_20' ) end [2025-01-24 11:37:23] Production.INFO: ProcessCDR(1,14319400,1,1,2) [2025-01-24 11:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319400', 'tblTempUsageDetail_20' ) start [2025-01-24 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319400', 'tblTempUsageDetail_20' ) end [2025-01-24 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:37:28] Production.INFO: ==17101== Releasing lock... [2025-01-24 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:37:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-24 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:38:05 [end_date_ymd] => 2025-01-24 11:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:38:05' and `end` < '2025-01-24 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-24 11:38:19] Production.INFO: count ==4460 [2025-01-24 11:38:21] Production.ERROR: pbx CDR StartTime 2025-01-24 08:38:05 - End Time 2025-01-24 11:38:05 [2025-01-24 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319405', 'tblTempUsageDetail_20' ) start [2025-01-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319405', 'tblTempUsageDetail_20' ) end [2025-01-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319405', 'tblTempVendorCDR_20' ) start [2025-01-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319405', 'tblTempVendorCDR_20' ) end [2025-01-24 11:38:21] Production.INFO: ProcessCDR(1,14319405,1,1,2) [2025-01-24 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319405', 'tblTempUsageDetail_20' ) start [2025-01-24 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319405', 'tblTempUsageDetail_20' ) end [2025-01-24 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:38:26] Production.INFO: ==17180== Releasing lock... [2025-01-24 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:38:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-24 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:39:05 [end_date_ymd] => 2025-01-24 11:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:39:05' and `end` < '2025-01-24 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-24 11:39:23] Production.INFO: count ==4468 [2025-01-24 11:39:24] Production.ERROR: pbx CDR StartTime 2025-01-24 08:39:05 - End Time 2025-01-24 11:39:05 [2025-01-24 11:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319410', 'tblTempUsageDetail_20' ) start [2025-01-24 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319410', 'tblTempUsageDetail_20' ) end [2025-01-24 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319410', 'tblTempVendorCDR_20' ) start [2025-01-24 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319410', 'tblTempVendorCDR_20' ) end [2025-01-24 11:39:25] Production.INFO: ProcessCDR(1,14319410,1,1,2) [2025-01-24 11:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319410', 'tblTempUsageDetail_20' ) start [2025-01-24 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319410', 'tblTempUsageDetail_20' ) end [2025-01-24 11:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:39:29] Production.INFO: ==17255== Releasing lock... [2025-01-24 11:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:39:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-24 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:40:06 [end_date_ymd] => 2025-01-24 11:40:06 [RateCDR] => 1 ) [2025-01-24 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:40:06' and `end` < '2025-01-24 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:40:24] Production.INFO: count ==4473 [2025-01-24 11:40:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:40:06 - End Time 2025-01-24 11:40:06 [2025-01-24 11:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319416', 'tblTempUsageDetail_20' ) start [2025-01-24 11:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319416', 'tblTempUsageDetail_20' ) end [2025-01-24 11:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319416', 'tblTempVendorCDR_20' ) start [2025-01-24 11:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319416', 'tblTempVendorCDR_20' ) end [2025-01-24 11:40:26] Production.INFO: ProcessCDR(1,14319416,1,1,2) [2025-01-24 11:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319416', 'tblTempUsageDetail_20' ) start [2025-01-24 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319416', 'tblTempUsageDetail_20' ) end [2025-01-24 11:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:40:30] Production.INFO: ==17332== Releasing lock... [2025-01-24 11:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:40:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-24 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:41:05 [end_date_ymd] => 2025-01-24 11:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:41:05' and `end` < '2025-01-24 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-24 11:41:23] Production.INFO: count ==4588 [2025-01-24 11:41:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:41:05 - End Time 2025-01-24 11:41:05 [2025-01-24 11:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319421', 'tblTempUsageDetail_20' ) start [2025-01-24 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319421', 'tblTempUsageDetail_20' ) end [2025-01-24 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319421', 'tblTempVendorCDR_20' ) start [2025-01-24 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319421', 'tblTempVendorCDR_20' ) end [2025-01-24 11:41:25] Production.INFO: ProcessCDR(1,14319421,1,1,2) [2025-01-24 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319421', 'tblTempUsageDetail_20' ) start [2025-01-24 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319421', 'tblTempUsageDetail_20' ) end [2025-01-24 11:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:41:30] Production.INFO: ==17410== Releasing lock... [2025-01-24 11:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:41:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:42:06 [end_date_ymd] => 2025-01-24 11:42:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:42:06' and `end` < '2025-01-24 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-24 11:42:27] Production.INFO: count ==4596 [2025-01-24 11:42:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:42:06 - End Time 2025-01-24 11:42:06 [2025-01-24 11:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319426', 'tblTempUsageDetail_20' ) start [2025-01-24 11:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319426', 'tblTempUsageDetail_20' ) end [2025-01-24 11:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319426', 'tblTempVendorCDR_20' ) start [2025-01-24 11:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319426', 'tblTempVendorCDR_20' ) end [2025-01-24 11:42:29] Production.INFO: ProcessCDR(1,14319426,1,1,2) [2025-01-24 11:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319426', 'tblTempUsageDetail_20' ) start [2025-01-24 11:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319426', 'tblTempUsageDetail_20' ) end [2025-01-24 11:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:42:34] Production.INFO: ==17484== Releasing lock... [2025-01-24 11:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:42:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-24 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:43:05 [end_date_ymd] => 2025-01-24 11:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:43:05' and `end` < '2025-01-24 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-24 11:43:26] Production.INFO: count ==4609 [2025-01-24 11:43:28] Production.ERROR: pbx CDR StartTime 2025-01-24 08:43:05 - End Time 2025-01-24 11:43:05 [2025-01-24 11:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319431', 'tblTempUsageDetail_20' ) start [2025-01-24 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319431', 'tblTempUsageDetail_20' ) end [2025-01-24 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319431', 'tblTempVendorCDR_20' ) start [2025-01-24 11:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319431', 'tblTempVendorCDR_20' ) end [2025-01-24 11:43:28] Production.INFO: ProcessCDR(1,14319431,1,1,2) [2025-01-24 11:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319431', 'tblTempUsageDetail_20' ) start [2025-01-24 11:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319431', 'tblTempUsageDetail_20' ) end [2025-01-24 11:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:43:33] Production.INFO: ==17561== Releasing lock... [2025-01-24 11:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:43:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-24 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:44:06 [end_date_ymd] => 2025-01-24 11:44:06 [RateCDR] => 1 ) [2025-01-24 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:44:06' and `end` < '2025-01-24 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:44:26] Production.INFO: count ==4619 [2025-01-24 11:44:28] Production.ERROR: pbx CDR StartTime 2025-01-24 08:44:06 - End Time 2025-01-24 11:44:06 [2025-01-24 11:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319436', 'tblTempUsageDetail_20' ) start [2025-01-24 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319436', 'tblTempUsageDetail_20' ) end [2025-01-24 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319436', 'tblTempVendorCDR_20' ) start [2025-01-24 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319436', 'tblTempVendorCDR_20' ) end [2025-01-24 11:44:28] Production.INFO: ProcessCDR(1,14319436,1,1,2) [2025-01-24 11:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319436', 'tblTempUsageDetail_20' ) start [2025-01-24 11:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319436', 'tblTempUsageDetail_20' ) end [2025-01-24 11:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:44:33] Production.INFO: ==17676== Releasing lock... [2025-01-24 11:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:44:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-24 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:45:05 [end_date_ymd] => 2025-01-24 11:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:45:05' and `end` < '2025-01-24 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-24 11:45:27] Production.INFO: count ==4626 [2025-01-24 11:45:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:45:05 - End Time 2025-01-24 11:45:05 [2025-01-24 11:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319441', 'tblTempUsageDetail_20' ) start [2025-01-24 11:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319441', 'tblTempUsageDetail_20' ) end [2025-01-24 11:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319441', 'tblTempVendorCDR_20' ) start [2025-01-24 11:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319441', 'tblTempVendorCDR_20' ) end [2025-01-24 11:45:29] Production.INFO: ProcessCDR(1,14319441,1,1,2) [2025-01-24 11:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319441', 'tblTempUsageDetail_20' ) start [2025-01-24 11:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319441', 'tblTempUsageDetail_20' ) end [2025-01-24 11:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:45:34] Production.INFO: ==17757== Releasing lock... [2025-01-24 11:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:45:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-24 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:46:06 [end_date_ymd] => 2025-01-24 11:46:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:46:06' and `end` < '2025-01-24 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-24 11:46:32] Production.INFO: count ==4638 [2025-01-24 11:46:34] Production.ERROR: pbx CDR StartTime 2025-01-24 08:46:06 - End Time 2025-01-24 11:46:06 [2025-01-24 11:46:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319446', 'tblTempUsageDetail_20' ) start [2025-01-24 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319446', 'tblTempUsageDetail_20' ) end [2025-01-24 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319446', 'tblTempVendorCDR_20' ) start [2025-01-24 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319446', 'tblTempVendorCDR_20' ) end [2025-01-24 11:46:34] Production.INFO: ProcessCDR(1,14319446,1,1,2) [2025-01-24 11:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:46:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:46:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:46:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:46:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319446', 'tblTempUsageDetail_20' ) start [2025-01-24 11:46:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319446', 'tblTempUsageDetail_20' ) end [2025-01-24 11:46:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:46:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:46:40] Production.INFO: ==17834== Releasing lock... [2025-01-24 11:46:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:46:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-24 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:47:05 [end_date_ymd] => 2025-01-24 11:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:47:05' and `end` < '2025-01-24 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-24 11:47:33] Production.INFO: count ==4634 [2025-01-24 11:47:35] Production.ERROR: pbx CDR StartTime 2025-01-24 08:47:05 - End Time 2025-01-24 11:47:05 [2025-01-24 11:47:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319451', 'tblTempUsageDetail_20' ) start [2025-01-24 11:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319451', 'tblTempUsageDetail_20' ) end [2025-01-24 11:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319451', 'tblTempVendorCDR_20' ) start [2025-01-24 11:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319451', 'tblTempVendorCDR_20' ) end [2025-01-24 11:47:35] Production.INFO: ProcessCDR(1,14319451,1,1,2) [2025-01-24 11:47:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:47:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:47:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:47:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319451', 'tblTempUsageDetail_20' ) start [2025-01-24 11:47:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319451', 'tblTempUsageDetail_20' ) end [2025-01-24 11:47:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:47:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:47:41] Production.INFO: ==17907== Releasing lock... [2025-01-24 11:47:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:47:41] Production.INFO: 62.75 MB #Memory Used# [2025-01-24 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:48:05 [end_date_ymd] => 2025-01-24 11:48:05 [RateCDR] => 1 ) [2025-01-24 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:48:05' and `end` < '2025-01-24 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:48:25] Production.INFO: count ==4657 [2025-01-24 11:48:27] Production.ERROR: pbx CDR StartTime 2025-01-24 08:48:05 - End Time 2025-01-24 11:48:05 [2025-01-24 11:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319456', 'tblTempUsageDetail_20' ) start [2025-01-24 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319456', 'tblTempUsageDetail_20' ) end [2025-01-24 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319456', 'tblTempVendorCDR_20' ) start [2025-01-24 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319456', 'tblTempVendorCDR_20' ) end [2025-01-24 11:48:28] Production.INFO: ProcessCDR(1,14319456,1,1,2) [2025-01-24 11:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319456', 'tblTempUsageDetail_20' ) start [2025-01-24 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319456', 'tblTempUsageDetail_20' ) end [2025-01-24 11:48:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:48:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:48:33] Production.INFO: ==17981== Releasing lock... [2025-01-24 11:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:48:33] Production.INFO: 63 MB #Memory Used# [2025-01-24 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:49:05 [end_date_ymd] => 2025-01-24 11:49:05 [RateCDR] => 1 ) [2025-01-24 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:49:05' and `end` < '2025-01-24 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-24 11:49:23] Production.INFO: count ==4660 [2025-01-24 11:49:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:49:05 - End Time 2025-01-24 11:49:05 [2025-01-24 11:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319461', 'tblTempUsageDetail_20' ) start [2025-01-24 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319461', 'tblTempUsageDetail_20' ) end [2025-01-24 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319461', 'tblTempVendorCDR_20' ) start [2025-01-24 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319461', 'tblTempVendorCDR_20' ) end [2025-01-24 11:49:26] Production.INFO: ProcessCDR(1,14319461,1,1,2) [2025-01-24 11:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319461', 'tblTempUsageDetail_20' ) start [2025-01-24 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319461', 'tblTempUsageDetail_20' ) end [2025-01-24 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:49:29] Production.INFO: ==18057== Releasing lock... [2025-01-24 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:49:29] Production.INFO: 63 MB #Memory Used# [2025-01-24 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:50:06 [end_date_ymd] => 2025-01-24 11:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:50:06' and `end` < '2025-01-24 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-24 11:50:27] Production.INFO: count ==4670 [2025-01-24 11:50:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:50:06 - End Time 2025-01-24 11:50:06 [2025-01-24 11:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319466', 'tblTempUsageDetail_20' ) start [2025-01-24 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319466', 'tblTempUsageDetail_20' ) end [2025-01-24 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319466', 'tblTempVendorCDR_20' ) start [2025-01-24 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319466', 'tblTempVendorCDR_20' ) end [2025-01-24 11:50:29] Production.INFO: ProcessCDR(1,14319466,1,1,2) [2025-01-24 11:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319466', 'tblTempUsageDetail_20' ) start [2025-01-24 11:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319466', 'tblTempUsageDetail_20' ) end [2025-01-24 11:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:50:34] Production.INFO: ==18136== Releasing lock... [2025-01-24 11:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:50:34] Production.INFO: 63 MB #Memory Used# [2025-01-24 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:51:06 [end_date_ymd] => 2025-01-24 11:51:06 [RateCDR] => 1 ) [2025-01-24 11: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-24 08:51:06' and `end` < '2025-01-24 11: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-24 11:51:24] Production.INFO: count ==4767 [2025-01-24 11:51:26] Production.ERROR: pbx CDR StartTime 2025-01-24 08:51:06 - End Time 2025-01-24 11:51:06 [2025-01-24 11:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319472', 'tblTempUsageDetail_20' ) start [2025-01-24 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319472', 'tblTempUsageDetail_20' ) end [2025-01-24 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319472', 'tblTempVendorCDR_20' ) start [2025-01-24 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319472', 'tblTempVendorCDR_20' ) end [2025-01-24 11:51:26] Production.INFO: ProcessCDR(1,14319472,1,1,2) [2025-01-24 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319472', 'tblTempUsageDetail_20' ) start [2025-01-24 11:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319472', 'tblTempUsageDetail_20' ) end [2025-01-24 11:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:51:32] Production.INFO: ==18217== Releasing lock... [2025-01-24 11:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:51:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:52:06 [end_date_ymd] => 2025-01-24 11:52:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:52:06' and `end` < '2025-01-24 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-24 11:52:26] Production.INFO: count ==4767 [2025-01-24 11:52:28] Production.ERROR: pbx CDR StartTime 2025-01-24 08:52:06 - End Time 2025-01-24 11:52:06 [2025-01-24 11:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319477', 'tblTempUsageDetail_20' ) start [2025-01-24 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319477', 'tblTempUsageDetail_20' ) end [2025-01-24 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319477', 'tblTempVendorCDR_20' ) start [2025-01-24 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319477', 'tblTempVendorCDR_20' ) end [2025-01-24 11:52:28] Production.INFO: ProcessCDR(1,14319477,1,1,2) [2025-01-24 11:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319477', 'tblTempUsageDetail_20' ) start [2025-01-24 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319477', 'tblTempUsageDetail_20' ) end [2025-01-24 11:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:52:33] Production.INFO: ==18292== Releasing lock... [2025-01-24 11:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:52:33] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:53:05 [end_date_ymd] => 2025-01-24 11:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:53:05' and `end` < '2025-01-24 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-24 11:53:27] Production.INFO: count ==4762 [2025-01-24 11:53:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:53:05 - End Time 2025-01-24 11:53:05 [2025-01-24 11:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319482', 'tblTempUsageDetail_20' ) start [2025-01-24 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319482', 'tblTempUsageDetail_20' ) end [2025-01-24 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319482', 'tblTempVendorCDR_20' ) start [2025-01-24 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319482', 'tblTempVendorCDR_20' ) end [2025-01-24 11:53:29] Production.INFO: ProcessCDR(1,14319482,1,1,2) [2025-01-24 11:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319482', 'tblTempUsageDetail_20' ) start [2025-01-24 11:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319482', 'tblTempUsageDetail_20' ) end [2025-01-24 11:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:53:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:53:35] Production.INFO: ==18367== Releasing lock... [2025-01-24 11:53:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:53:35] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:54:05 [end_date_ymd] => 2025-01-24 11:54:05 [RateCDR] => 1 ) [2025-01-24 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:54:05' and `end` < '2025-01-24 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:54:27] Production.INFO: count ==4766 [2025-01-24 11:54:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:54:05 - End Time 2025-01-24 11:54:05 [2025-01-24 11:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319487', 'tblTempUsageDetail_20' ) start [2025-01-24 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319487', 'tblTempUsageDetail_20' ) end [2025-01-24 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319487', 'tblTempVendorCDR_20' ) start [2025-01-24 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319487', 'tblTempVendorCDR_20' ) end [2025-01-24 11:54:29] Production.INFO: ProcessCDR(1,14319487,1,1,2) [2025-01-24 11:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319487', 'tblTempUsageDetail_20' ) start [2025-01-24 11:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319487', 'tblTempUsageDetail_20' ) end [2025-01-24 11:54:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:54:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:54:35] Production.INFO: ==18440== Releasing lock... [2025-01-24 11:54:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:54:35] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:55:06 [end_date_ymd] => 2025-01-24 11:55:06 [RateCDR] => 1 ) [2025-01-24 11: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-24 08:55:06' and `end` < '2025-01-24 11: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-24 11:55:27] Production.INFO: count ==4758 [2025-01-24 11:55:29] Production.ERROR: pbx CDR StartTime 2025-01-24 08:55:06 - End Time 2025-01-24 11:55:06 [2025-01-24 11:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319492', 'tblTempUsageDetail_20' ) start [2025-01-24 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319492', 'tblTempUsageDetail_20' ) end [2025-01-24 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319492', 'tblTempVendorCDR_20' ) start [2025-01-24 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319492', 'tblTempVendorCDR_20' ) end [2025-01-24 11:55:29] Production.INFO: ProcessCDR(1,14319492,1,1,2) [2025-01-24 11:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319492', 'tblTempUsageDetail_20' ) start [2025-01-24 11:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319492', 'tblTempUsageDetail_20' ) end [2025-01-24 11:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:55:34] Production.INFO: ==18516== Releasing lock... [2025-01-24 11:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:55:34] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:56:06 [end_date_ymd] => 2025-01-24 11:56:06 [RateCDR] => 1 ) [2025-01-24 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-24 08:56:06' and `end` < '2025-01-24 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-24 11:56:21] Production.INFO: count ==4753 [2025-01-24 11:56:23] Production.ERROR: pbx CDR StartTime 2025-01-24 08:56:06 - End Time 2025-01-24 11:56:06 [2025-01-24 11:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319497', 'tblTempUsageDetail_20' ) start [2025-01-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319497', 'tblTempUsageDetail_20' ) end [2025-01-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319497', 'tblTempVendorCDR_20' ) start [2025-01-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319497', 'tblTempVendorCDR_20' ) end [2025-01-24 11:56:23] Production.INFO: ProcessCDR(1,14319497,1,1,2) [2025-01-24 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319497', 'tblTempUsageDetail_20' ) start [2025-01-24 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319497', 'tblTempUsageDetail_20' ) end [2025-01-24 11:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:56:28] Production.INFO: ==18591== Releasing lock... [2025-01-24 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:56:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:57:05 [end_date_ymd] => 2025-01-24 11:57:05 [RateCDR] => 1 ) [2025-01-24 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:57:05' and `end` < '2025-01-24 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-24 11:57:25] Production.INFO: count ==4751 [2025-01-24 11:57:27] Production.ERROR: pbx CDR StartTime 2025-01-24 08:57:05 - End Time 2025-01-24 11:57:05 [2025-01-24 11:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319502', 'tblTempUsageDetail_20' ) start [2025-01-24 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319502', 'tblTempUsageDetail_20' ) end [2025-01-24 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319502', 'tblTempVendorCDR_20' ) start [2025-01-24 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319502', 'tblTempVendorCDR_20' ) end [2025-01-24 11:57:27] Production.INFO: ProcessCDR(1,14319502,1,1,2) [2025-01-24 11:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319502', 'tblTempUsageDetail_20' ) start [2025-01-24 11:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319502', 'tblTempUsageDetail_20' ) end [2025-01-24 11:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:57:32] Production.INFO: ==18666== Releasing lock... [2025-01-24 11:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:57:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:58:05 [end_date_ymd] => 2025-01-24 11:58:05 [RateCDR] => 1 ) [2025-01-24 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 08:58:05' and `end` < '2025-01-24 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 11:58:23] Production.INFO: count ==4745 [2025-01-24 11:58:25] Production.ERROR: pbx CDR StartTime 2025-01-24 08:58:05 - End Time 2025-01-24 11:58:05 [2025-01-24 11:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319507', 'tblTempUsageDetail_20' ) start [2025-01-24 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319507', 'tblTempUsageDetail_20' ) end [2025-01-24 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319507', 'tblTempVendorCDR_20' ) start [2025-01-24 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319507', 'tblTempVendorCDR_20' ) end [2025-01-24 11:58:25] Production.INFO: ProcessCDR(1,14319507,1,1,2) [2025-01-24 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319507', 'tblTempUsageDetail_20' ) start [2025-01-24 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319507', 'tblTempUsageDetail_20' ) end [2025-01-24 11:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:58:30] Production.INFO: ==18742== Releasing lock... [2025-01-24 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:58:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 08:59:05 [end_date_ymd] => 2025-01-24 11:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 08:59:05' and `end` < '2025-01-24 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-24 11:59:19] Production.INFO: count ==4741 [2025-01-24 11:59:21] Production.ERROR: pbx CDR StartTime 2025-01-24 08:59:05 - End Time 2025-01-24 11:59:05 [2025-01-24 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319512', 'tblTempUsageDetail_20' ) start [2025-01-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319512', 'tblTempUsageDetail_20' ) end [2025-01-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319512', 'tblTempVendorCDR_20' ) start [2025-01-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319512', 'tblTempVendorCDR_20' ) end [2025-01-24 11:59:21] Production.INFO: ProcessCDR(1,14319512,1,1,2) [2025-01-24 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319512', 'tblTempUsageDetail_20' ) start [2025-01-24 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319512', 'tblTempUsageDetail_20' ) end [2025-01-24 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 11:59:25] Production.INFO: ==18859== Releasing lock... [2025-01-24 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 11:59:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:00:07 [end_date_ymd] => 2025-01-24 12:00:07 [RateCDR] => 1 ) [2025-01-24 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-24 09:00:07' and `end` < '2025-01-24 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-24 12:00:30] Production.INFO: count ==4743 [2025-01-24 12:00:32] Production.ERROR: pbx CDR StartTime 2025-01-24 09:00:07 - End Time 2025-01-24 12:00:07 [2025-01-24 12:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319518', 'tblTempUsageDetail_20' ) start [2025-01-24 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319518', 'tblTempUsageDetail_20' ) end [2025-01-24 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319518', 'tblTempVendorCDR_20' ) start [2025-01-24 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319518', 'tblTempVendorCDR_20' ) end [2025-01-24 12:00:32] Production.INFO: ProcessCDR(1,14319518,1,1,2) [2025-01-24 12:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319518', 'tblTempUsageDetail_20' ) start [2025-01-24 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319518', 'tblTempUsageDetail_20' ) end [2025-01-24 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:00:37] Production.INFO: ==18938== Releasing lock... [2025-01-24 12:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:00:37] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:01:06 [end_date_ymd] => 2025-01-24 12:01:06 [RateCDR] => 1 ) [2025-01-24 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:01:06' and `end` < '2025-01-24 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:01:22] Production.INFO: count ==4827 [2025-01-24 12:01:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:01:06 - End Time 2025-01-24 12:01:06 [2025-01-24 12:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319523', 'tblTempUsageDetail_20' ) start [2025-01-24 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319523', 'tblTempUsageDetail_20' ) end [2025-01-24 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319523', 'tblTempVendorCDR_20' ) start [2025-01-24 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319523', 'tblTempVendorCDR_20' ) end [2025-01-24 12:01:25] Production.INFO: ProcessCDR(1,14319523,1,1,2) [2025-01-24 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319523', 'tblTempUsageDetail_20' ) start [2025-01-24 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319523', 'tblTempUsageDetail_20' ) end [2025-01-24 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:01:30] Production.INFO: ==19031== Releasing lock... [2025-01-24 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:01:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:02:06 [end_date_ymd] => 2025-01-24 12:02:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:02:06' and `end` < '2025-01-24 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-24 12:02:30] Production.INFO: count ==4830 [2025-01-24 12:02:32] Production.ERROR: pbx CDR StartTime 2025-01-24 09:02:06 - End Time 2025-01-24 12:02:06 [2025-01-24 12:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319528', 'tblTempUsageDetail_20' ) start [2025-01-24 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319528', 'tblTempUsageDetail_20' ) end [2025-01-24 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319528', 'tblTempVendorCDR_20' ) start [2025-01-24 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319528', 'tblTempVendorCDR_20' ) end [2025-01-24 12:02:32] Production.INFO: ProcessCDR(1,14319528,1,1,2) [2025-01-24 12:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319528', 'tblTempUsageDetail_20' ) start [2025-01-24 12:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319528', 'tblTempUsageDetail_20' ) end [2025-01-24 12:02:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:02:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:02:38] Production.INFO: ==19111== Releasing lock... [2025-01-24 12:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:02:38] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:03:05 [end_date_ymd] => 2025-01-24 12:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:03:05' and `end` < '2025-01-24 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-24 12:03:31] Production.INFO: count ==4838 [2025-01-24 12:03:33] Production.ERROR: pbx CDR StartTime 2025-01-24 09:03:05 - End Time 2025-01-24 12:03:05 [2025-01-24 12:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319533', 'tblTempUsageDetail_20' ) start [2025-01-24 12:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319533', 'tblTempUsageDetail_20' ) end [2025-01-24 12:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319533', 'tblTempVendorCDR_20' ) start [2025-01-24 12:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319533', 'tblTempVendorCDR_20' ) end [2025-01-24 12:03:33] Production.INFO: ProcessCDR(1,14319533,1,1,2) [2025-01-24 12:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319533', 'tblTempUsageDetail_20' ) start [2025-01-24 12:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319533', 'tblTempUsageDetail_20' ) end [2025-01-24 12:03:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:03:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:03:39] Production.INFO: ==19188== Releasing lock... [2025-01-24 12:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:03:39] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:04:05 [end_date_ymd] => 2025-01-24 12:04:05 [RateCDR] => 1 ) [2025-01-24 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:04:05' and `end` < '2025-01-24 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:04:28] Production.INFO: count ==4845 [2025-01-24 12:04:30] Production.ERROR: pbx CDR StartTime 2025-01-24 09:04:05 - End Time 2025-01-24 12:04:05 [2025-01-24 12:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319538', 'tblTempUsageDetail_20' ) start [2025-01-24 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319538', 'tblTempUsageDetail_20' ) end [2025-01-24 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319538', 'tblTempVendorCDR_20' ) start [2025-01-24 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319538', 'tblTempVendorCDR_20' ) end [2025-01-24 12:04:30] Production.INFO: ProcessCDR(1,14319538,1,1,2) [2025-01-24 12:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319538', 'tblTempUsageDetail_20' ) start [2025-01-24 12:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319538', 'tblTempUsageDetail_20' ) end [2025-01-24 12:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:04:36] Production.INFO: ==19264== Releasing lock... [2025-01-24 12:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:04:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:05:06 [end_date_ymd] => 2025-01-24 12:05:06 [RateCDR] => 1 ) [2025-01-24 12: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-24 09:05:06' and `end` < '2025-01-24 12: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-24 12:05:26] Production.INFO: count ==4846 [2025-01-24 12:05:28] Production.ERROR: pbx CDR StartTime 2025-01-24 09:05:06 - End Time 2025-01-24 12:05:06 [2025-01-24 12:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319543', 'tblTempUsageDetail_20' ) start [2025-01-24 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319543', 'tblTempUsageDetail_20' ) end [2025-01-24 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319543', 'tblTempVendorCDR_20' ) start [2025-01-24 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319543', 'tblTempVendorCDR_20' ) end [2025-01-24 12:05:29] Production.INFO: ProcessCDR(1,14319543,1,1,2) [2025-01-24 12:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319543', 'tblTempUsageDetail_20' ) start [2025-01-24 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319543', 'tblTempUsageDetail_20' ) end [2025-01-24 12:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:05:34] Production.INFO: ==19339== Releasing lock... [2025-01-24 12:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:05:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:06:06 [end_date_ymd] => 2025-01-24 12:06:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:06:06' and `end` < '2025-01-24 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-24 12:06:22] Production.INFO: count ==4855 [2025-01-24 12:06:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:06:06 - End Time 2025-01-24 12:06:06 [2025-01-24 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319548', 'tblTempUsageDetail_20' ) start [2025-01-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319548', 'tblTempUsageDetail_20' ) end [2025-01-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319548', 'tblTempVendorCDR_20' ) start [2025-01-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319548', 'tblTempVendorCDR_20' ) end [2025-01-24 12:06:24] Production.INFO: ProcessCDR(1,14319548,1,1,2) [2025-01-24 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319548', 'tblTempUsageDetail_20' ) start [2025-01-24 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319548', 'tblTempUsageDetail_20' ) end [2025-01-24 12:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:06:30] Production.INFO: ==19413== Releasing lock... [2025-01-24 12:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:06:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-24 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:07:06 [end_date_ymd] => 2025-01-24 12:07:06 [RateCDR] => 1 ) [2025-01-24 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:07:06' and `end` < '2025-01-24 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:07:20] Production.INFO: count ==4886 [2025-01-24 12:07:22] Production.ERROR: pbx CDR StartTime 2025-01-24 09:07:06 - End Time 2025-01-24 12:07:06 [2025-01-24 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319553', 'tblTempUsageDetail_20' ) start [2025-01-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319553', 'tblTempUsageDetail_20' ) end [2025-01-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319553', 'tblTempVendorCDR_20' ) start [2025-01-24 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319553', 'tblTempVendorCDR_20' ) end [2025-01-24 12:07:22] Production.INFO: ProcessCDR(1,14319553,1,1,2) [2025-01-24 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319553', 'tblTempUsageDetail_20' ) start [2025-01-24 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319553', 'tblTempUsageDetail_20' ) end [2025-01-24 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:07:28] Production.INFO: ==19489== Releasing lock... [2025-01-24 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:07:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-24 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:08:06 [end_date_ymd] => 2025-01-24 12:08:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:08:06' and `end` < '2025-01-24 12: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-24 12:08:23] Production.INFO: count ==4878 [2025-01-24 12:08:25] Production.ERROR: pbx CDR StartTime 2025-01-24 09:08:06 - End Time 2025-01-24 12:08:06 [2025-01-24 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319558', 'tblTempUsageDetail_20' ) start [2025-01-24 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319558', 'tblTempUsageDetail_20' ) end [2025-01-24 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319558', 'tblTempVendorCDR_20' ) start [2025-01-24 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319558', 'tblTempVendorCDR_20' ) end [2025-01-24 12:08:25] Production.INFO: ProcessCDR(1,14319558,1,1,2) [2025-01-24 12:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319558', 'tblTempUsageDetail_20' ) start [2025-01-24 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319558', 'tblTempUsageDetail_20' ) end [2025-01-24 12:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:08:31] Production.INFO: ==19562== Releasing lock... [2025-01-24 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:08:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-24 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:09:05 [end_date_ymd] => 2025-01-24 12:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:09:05' and `end` < '2025-01-24 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-24 12:09:28] Production.INFO: count ==4891 [2025-01-24 12:09:30] Production.ERROR: pbx CDR StartTime 2025-01-24 09:09:05 - End Time 2025-01-24 12:09:05 [2025-01-24 12:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319563', 'tblTempUsageDetail_20' ) start [2025-01-24 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319563', 'tblTempUsageDetail_20' ) end [2025-01-24 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319563', 'tblTempVendorCDR_20' ) start [2025-01-24 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319563', 'tblTempVendorCDR_20' ) end [2025-01-24 12:09:30] Production.INFO: ProcessCDR(1,14319563,1,1,2) [2025-01-24 12:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319563', 'tblTempUsageDetail_20' ) start [2025-01-24 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319563', 'tblTempUsageDetail_20' ) end [2025-01-24 12:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:09:35] Production.INFO: ==19640== Releasing lock... [2025-01-24 12:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:09:35] Production.INFO: 64.75 MB #Memory Used# [2025-01-24 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:10:06 [end_date_ymd] => 2025-01-24 12:10:06 [RateCDR] => 1 ) [2025-01-24 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:10:06' and `end` < '2025-01-24 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:10:34] Production.INFO: count ==4914 [2025-01-24 12:10:36] Production.ERROR: pbx CDR StartTime 2025-01-24 09:10:06 - End Time 2025-01-24 12:10:06 [2025-01-24 12:10:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319569', 'tblTempUsageDetail_20' ) start [2025-01-24 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319569', 'tblTempUsageDetail_20' ) end [2025-01-24 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319569', 'tblTempVendorCDR_20' ) start [2025-01-24 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319569', 'tblTempVendorCDR_20' ) end [2025-01-24 12:10:36] Production.INFO: ProcessCDR(1,14319569,1,1,2) [2025-01-24 12:10:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319569', 'tblTempUsageDetail_20' ) start [2025-01-24 12:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319569', 'tblTempUsageDetail_20' ) end [2025-01-24 12:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:10:42] Production.INFO: ==19721== Releasing lock... [2025-01-24 12:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:10:42] Production.INFO: 64.75 MB #Memory Used# [2025-01-24 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:11:05 [end_date_ymd] => 2025-01-24 12:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:11:05' and `end` < '2025-01-24 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-24 12:11:28] Production.INFO: count ==5013 [2025-01-24 12:11:30] Production.ERROR: pbx CDR StartTime 2025-01-24 09:11:05 - End Time 2025-01-24 12:11:05 [2025-01-24 12:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319574', 'tblTempUsageDetail_20' ) start [2025-01-24 12:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319574', 'tblTempUsageDetail_20' ) end [2025-01-24 12:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319574', 'tblTempVendorCDR_20' ) start [2025-01-24 12:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319574', 'tblTempVendorCDR_20' ) end [2025-01-24 12:11:30] Production.INFO: ProcessCDR(1,14319574,1,1,2) [2025-01-24 12:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319574', 'tblTempUsageDetail_20' ) start [2025-01-24 12:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319574', 'tblTempUsageDetail_20' ) end [2025-01-24 12:11:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:11:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:11:36] Production.INFO: ==19797== Releasing lock... [2025-01-24 12:11:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:11:36] Production.INFO: 65.5 MB #Memory Used# [2025-01-24 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:12:06 [end_date_ymd] => 2025-01-24 12:12:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:12:06' and `end` < '2025-01-24 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-24 12:12:25] Production.INFO: count ==5017 [2025-01-24 12:12:27] Production.ERROR: pbx CDR StartTime 2025-01-24 09:12:06 - End Time 2025-01-24 12:12:06 [2025-01-24 12:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319579', 'tblTempUsageDetail_20' ) start [2025-01-24 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319579', 'tblTempUsageDetail_20' ) end [2025-01-24 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319579', 'tblTempVendorCDR_20' ) start [2025-01-24 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319579', 'tblTempVendorCDR_20' ) end [2025-01-24 12:12:27] Production.INFO: ProcessCDR(1,14319579,1,1,2) [2025-01-24 12:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319579', 'tblTempUsageDetail_20' ) start [2025-01-24 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319579', 'tblTempUsageDetail_20' ) end [2025-01-24 12:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:12:32] Production.INFO: ==19879== Releasing lock... [2025-01-24 12:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:12:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-24 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:13:06 [end_date_ymd] => 2025-01-24 12:13:06 [RateCDR] => 1 ) [2025-01-24 12: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-24 09:13:06' and `end` < '2025-01-24 12: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-24 12:13:24] Production.INFO: count ==5011 [2025-01-24 12:13:26] Production.ERROR: pbx CDR StartTime 2025-01-24 09:13:06 - End Time 2025-01-24 12:13:06 [2025-01-24 12:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319584', 'tblTempUsageDetail_20' ) start [2025-01-24 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319584', 'tblTempUsageDetail_20' ) end [2025-01-24 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319584', 'tblTempVendorCDR_20' ) start [2025-01-24 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319584', 'tblTempVendorCDR_20' ) end [2025-01-24 12:13:26] Production.INFO: ProcessCDR(1,14319584,1,1,2) [2025-01-24 12:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319584', 'tblTempUsageDetail_20' ) start [2025-01-24 12:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319584', 'tblTempUsageDetail_20' ) end [2025-01-24 12:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:13:32] Production.INFO: ==19953== Releasing lock... [2025-01-24 12:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:13:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-24 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:14:05 [end_date_ymd] => 2025-01-24 12:14:05 [RateCDR] => 1 ) [2025-01-24 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:14:05' and `end` < '2025-01-24 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:14:19] Production.INFO: count ==5017 [2025-01-24 12:14:21] Production.ERROR: pbx CDR StartTime 2025-01-24 09:14:05 - End Time 2025-01-24 12:14:05 [2025-01-24 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319589', 'tblTempUsageDetail_20' ) start [2025-01-24 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319589', 'tblTempUsageDetail_20' ) end [2025-01-24 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319589', 'tblTempVendorCDR_20' ) start [2025-01-24 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319589', 'tblTempVendorCDR_20' ) end [2025-01-24 12:14:21] Production.INFO: ProcessCDR(1,14319589,1,1,2) [2025-01-24 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319589', 'tblTempUsageDetail_20' ) start [2025-01-24 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319589', 'tblTempUsageDetail_20' ) end [2025-01-24 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:14:27] Production.INFO: ==20024== Releasing lock... [2025-01-24 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:14:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:15:05 [end_date_ymd] => 2025-01-24 12:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:15:05' and `end` < '2025-01-24 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-24 12:15:29] Production.INFO: count ==5020 [2025-01-24 12:15:31] Production.ERROR: pbx CDR StartTime 2025-01-24 09:15:05 - End Time 2025-01-24 12:15:05 [2025-01-24 12:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319594', 'tblTempUsageDetail_20' ) start [2025-01-24 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319594', 'tblTempUsageDetail_20' ) end [2025-01-24 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319594', 'tblTempVendorCDR_20' ) start [2025-01-24 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319594', 'tblTempVendorCDR_20' ) end [2025-01-24 12:15:32] Production.INFO: ProcessCDR(1,14319594,1,1,2) [2025-01-24 12:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319594', 'tblTempUsageDetail_20' ) start [2025-01-24 12:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319594', 'tblTempUsageDetail_20' ) end [2025-01-24 12:15:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:15:37] Production.INFO: ==20137== Releasing lock... [2025-01-24 12:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:15:37] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:16:05 [end_date_ymd] => 2025-01-24 12:16:05 [RateCDR] => 1 ) [2025-01-24 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:16:05' and `end` < '2025-01-24 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:16:32] Production.INFO: count ==5024 [2025-01-24 12:16:34] Production.ERROR: pbx CDR StartTime 2025-01-24 09:16:05 - End Time 2025-01-24 12:16:05 [2025-01-24 12:16:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319599', 'tblTempUsageDetail_20' ) start [2025-01-24 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319599', 'tblTempUsageDetail_20' ) end [2025-01-24 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319599', 'tblTempVendorCDR_20' ) start [2025-01-24 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319599', 'tblTempVendorCDR_20' ) end [2025-01-24 12:16:34] Production.INFO: ProcessCDR(1,14319599,1,1,2) [2025-01-24 12:16:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:16:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:16:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:16:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319599', 'tblTempUsageDetail_20' ) start [2025-01-24 12:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319599', 'tblTempUsageDetail_20' ) end [2025-01-24 12:16:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:16:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:16:39] Production.INFO: ==20211== Releasing lock... [2025-01-24 12:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:16:39] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:17:05 [end_date_ymd] => 2025-01-24 12:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:17:05' and `end` < '2025-01-24 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-24 12:17:29] Production.INFO: count ==5038 [2025-01-24 12:17:31] Production.ERROR: pbx CDR StartTime 2025-01-24 09:17:05 - End Time 2025-01-24 12:17:05 [2025-01-24 12:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319604', 'tblTempUsageDetail_20' ) start [2025-01-24 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319604', 'tblTempUsageDetail_20' ) end [2025-01-24 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319604', 'tblTempVendorCDR_20' ) start [2025-01-24 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319604', 'tblTempVendorCDR_20' ) end [2025-01-24 12:17:31] Production.INFO: ProcessCDR(1,14319604,1,1,2) [2025-01-24 12:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319604', 'tblTempUsageDetail_20' ) start [2025-01-24 12:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319604', 'tblTempUsageDetail_20' ) end [2025-01-24 12:17:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:17:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:17:36] Production.INFO: ==20291== Releasing lock... [2025-01-24 12:17:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:17:36] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:18:06 [end_date_ymd] => 2025-01-24 12:18:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:18:06' and `end` < '2025-01-24 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-24 12:18:31] Production.INFO: count ==5048 [2025-01-24 12:18:33] Production.ERROR: pbx CDR StartTime 2025-01-24 09:18:06 - End Time 2025-01-24 12:18:06 [2025-01-24 12:18:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319609', 'tblTempUsageDetail_20' ) start [2025-01-24 12:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319609', 'tblTempUsageDetail_20' ) end [2025-01-24 12:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319609', 'tblTempVendorCDR_20' ) start [2025-01-24 12:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319609', 'tblTempVendorCDR_20' ) end [2025-01-24 12:18:33] Production.INFO: ProcessCDR(1,14319609,1,1,2) [2025-01-24 12:18:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:18:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:18:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:18:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319609', 'tblTempUsageDetail_20' ) start [2025-01-24 12:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319609', 'tblTempUsageDetail_20' ) end [2025-01-24 12:18:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:18:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:18:39] Production.INFO: ==20377== Releasing lock... [2025-01-24 12:18:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:18:39] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:19:05 [end_date_ymd] => 2025-01-24 12:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:19:05' and `end` < '2025-01-24 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-24 12:19:27] Production.INFO: count ==5060 [2025-01-24 12:19:29] Production.ERROR: pbx CDR StartTime 2025-01-24 09:19:05 - End Time 2025-01-24 12:19:05 [2025-01-24 12:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319614', 'tblTempUsageDetail_20' ) start [2025-01-24 12:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319614', 'tblTempUsageDetail_20' ) end [2025-01-24 12:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319614', 'tblTempVendorCDR_20' ) start [2025-01-24 12:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319614', 'tblTempVendorCDR_20' ) end [2025-01-24 12:19:29] Production.INFO: ProcessCDR(1,14319614,1,1,2) [2025-01-24 12:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319614', 'tblTempUsageDetail_20' ) start [2025-01-24 12:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319614', 'tblTempUsageDetail_20' ) end [2025-01-24 12:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:19:35] Production.INFO: ==20448== Releasing lock... [2025-01-24 12:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:19:35] Production.INFO: 66 MB #Memory Used# [2025-01-24 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:20:07 [end_date_ymd] => 2025-01-24 12:20:07 [RateCDR] => 1 ) [2025-01-24 12:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:20:07' and `end` < '2025-01-24 12:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:20:33] Production.INFO: count ==5063 [2025-01-24 12:20:36] Production.ERROR: pbx CDR StartTime 2025-01-24 09:20:07 - End Time 2025-01-24 12:20:07 [2025-01-24 12:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319620', 'tblTempUsageDetail_20' ) start [2025-01-24 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319620', 'tblTempUsageDetail_20' ) end [2025-01-24 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319620', 'tblTempVendorCDR_20' ) start [2025-01-24 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319620', 'tblTempVendorCDR_20' ) end [2025-01-24 12:20:36] Production.INFO: ProcessCDR(1,14319620,1,1,2) [2025-01-24 12:20:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:20:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:20:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319620', 'tblTempUsageDetail_20' ) start [2025-01-24 12:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319620', 'tblTempUsageDetail_20' ) end [2025-01-24 12:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:20:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:20:41] Production.INFO: ==20524== Releasing lock... [2025-01-24 12:20:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:20:41] Production.INFO: 66 MB #Memory Used# [2025-01-24 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:21:05 [end_date_ymd] => 2025-01-24 12:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:21:05' and `end` < '2025-01-24 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-24 12:21:23] Production.INFO: count ==5153 [2025-01-24 12:21:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:21:05 - End Time 2025-01-24 12:21:05 [2025-01-24 12:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319625', 'tblTempUsageDetail_20' ) start [2025-01-24 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319625', 'tblTempUsageDetail_20' ) end [2025-01-24 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319625', 'tblTempVendorCDR_20' ) start [2025-01-24 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319625', 'tblTempVendorCDR_20' ) end [2025-01-24 12:21:25] Production.INFO: ProcessCDR(1,14319625,1,1,2) [2025-01-24 12:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319625', 'tblTempUsageDetail_20' ) start [2025-01-24 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319625', 'tblTempUsageDetail_20' ) end [2025-01-24 12:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:21:30] Production.INFO: ==20596== Releasing lock... [2025-01-24 12:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:21:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:22:06 [end_date_ymd] => 2025-01-24 12:22:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:22:06' and `end` < '2025-01-24 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-24 12:22:28] Production.INFO: count ==5150 [2025-01-24 12:22:30] Production.ERROR: pbx CDR StartTime 2025-01-24 09:22:06 - End Time 2025-01-24 12:22:06 [2025-01-24 12:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319630', 'tblTempUsageDetail_20' ) start [2025-01-24 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319630', 'tblTempUsageDetail_20' ) end [2025-01-24 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319630', 'tblTempVendorCDR_20' ) start [2025-01-24 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319630', 'tblTempVendorCDR_20' ) end [2025-01-24 12:22:30] Production.INFO: ProcessCDR(1,14319630,1,1,2) [2025-01-24 12:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319630', 'tblTempUsageDetail_20' ) start [2025-01-24 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319630', 'tblTempUsageDetail_20' ) end [2025-01-24 12:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:22:35] Production.INFO: ==20669== Releasing lock... [2025-01-24 12:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:22:35] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:23:05 [end_date_ymd] => 2025-01-24 12:23:05 [RateCDR] => 1 ) [2025-01-24 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:23:05' and `end` < '2025-01-24 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:23:35] Production.INFO: count ==5169 [2025-01-24 12:23:37] Production.ERROR: pbx CDR StartTime 2025-01-24 09:23:05 - End Time 2025-01-24 12:23:05 [2025-01-24 12:23:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:23:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319635', 'tblTempUsageDetail_20' ) start [2025-01-24 12:23:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319635', 'tblTempUsageDetail_20' ) end [2025-01-24 12:23:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319635', 'tblTempVendorCDR_20' ) start [2025-01-24 12:23:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319635', 'tblTempVendorCDR_20' ) end [2025-01-24 12:23:38] Production.INFO: ProcessCDR(1,14319635,1,1,2) [2025-01-24 12:23:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:23:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:23:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:23:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:23:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319635', 'tblTempUsageDetail_20' ) start [2025-01-24 12:23:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319635', 'tblTempUsageDetail_20' ) end [2025-01-24 12:23:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:23:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:23:43] Production.INFO: ==20745== Releasing lock... [2025-01-24 12:23:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:23:43] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:24:06 [end_date_ymd] => 2025-01-24 12:24:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:24:06' and `end` < '2025-01-24 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-24 12:24:27] Production.INFO: count ==5160 [2025-01-24 12:24:29] Production.ERROR: pbx CDR StartTime 2025-01-24 09:24:06 - End Time 2025-01-24 12:24:06 [2025-01-24 12:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319640', 'tblTempUsageDetail_20' ) start [2025-01-24 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319640', 'tblTempUsageDetail_20' ) end [2025-01-24 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319640', 'tblTempVendorCDR_20' ) start [2025-01-24 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319640', 'tblTempVendorCDR_20' ) end [2025-01-24 12:24:29] Production.INFO: ProcessCDR(1,14319640,1,1,2) [2025-01-24 12:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319640', 'tblTempUsageDetail_20' ) start [2025-01-24 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319640', 'tblTempUsageDetail_20' ) end [2025-01-24 12:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:24:33] Production.INFO: ==20817== Releasing lock... [2025-01-24 12:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:24:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:25:05 [end_date_ymd] => 2025-01-24 12:25:05 [RateCDR] => 1 ) [2025-01-24 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:25:05' and `end` < '2025-01-24 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:25:29] Production.INFO: count ==5182 [2025-01-24 12:25:31] Production.ERROR: pbx CDR StartTime 2025-01-24 09:25:05 - End Time 2025-01-24 12:25:05 [2025-01-24 12:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319645', 'tblTempUsageDetail_20' ) start [2025-01-24 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319645', 'tblTempUsageDetail_20' ) end [2025-01-24 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319645', 'tblTempVendorCDR_20' ) start [2025-01-24 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319645', 'tblTempVendorCDR_20' ) end [2025-01-24 12:25:32] Production.INFO: ProcessCDR(1,14319645,1,1,2) [2025-01-24 12:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319645', 'tblTempUsageDetail_20' ) start [2025-01-24 12:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319645', 'tblTempUsageDetail_20' ) end [2025-01-24 12:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:25:37] Production.INFO: ==20889== Releasing lock... [2025-01-24 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:25:37] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:26:05 [end_date_ymd] => 2025-01-24 12:26:05 [RateCDR] => 1 ) [2025-01-24 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:26:05' and `end` < '2025-01-24 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:26:23] Production.INFO: count ==5187 [2025-01-24 12:26:25] Production.ERROR: pbx CDR StartTime 2025-01-24 09:26:05 - End Time 2025-01-24 12:26:05 [2025-01-24 12:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319650', 'tblTempUsageDetail_20' ) start [2025-01-24 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319650', 'tblTempUsageDetail_20' ) end [2025-01-24 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319650', 'tblTempVendorCDR_20' ) start [2025-01-24 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319650', 'tblTempVendorCDR_20' ) end [2025-01-24 12:26:25] Production.INFO: ProcessCDR(1,14319650,1,1,2) [2025-01-24 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319650', 'tblTempUsageDetail_20' ) start [2025-01-24 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319650', 'tblTempUsageDetail_20' ) end [2025-01-24 12:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:26:30] Production.INFO: ==20962== Releasing lock... [2025-01-24 12:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:26:30] Production.INFO: 67 MB #Memory Used# [2025-01-24 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:27:06 [end_date_ymd] => 2025-01-24 12:27:06 [RateCDR] => 1 ) [2025-01-24 12: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-24 09:27:06' and `end` < '2025-01-24 12: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-24 12:27:22] Production.INFO: count ==5191 [2025-01-24 12:27:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:27:06 - End Time 2025-01-24 12:27:06 [2025-01-24 12:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319655', 'tblTempUsageDetail_20' ) start [2025-01-24 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319655', 'tblTempUsageDetail_20' ) end [2025-01-24 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319655', 'tblTempVendorCDR_20' ) start [2025-01-24 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319655', 'tblTempVendorCDR_20' ) end [2025-01-24 12:27:24] Production.INFO: ProcessCDR(1,14319655,1,1,2) [2025-01-24 12:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319655', 'tblTempUsageDetail_20' ) start [2025-01-24 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319655', 'tblTempUsageDetail_20' ) end [2025-01-24 12:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:27:29] Production.INFO: ==21036== Releasing lock... [2025-01-24 12:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:27:29] Production.INFO: 67 MB #Memory Used# [2025-01-24 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:28:05 [end_date_ymd] => 2025-01-24 12:28:05 [RateCDR] => 1 ) [2025-01-24 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:28:05' and `end` < '2025-01-24 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:28:19] Production.INFO: count ==5180 [2025-01-24 12:28:21] Production.ERROR: pbx CDR StartTime 2025-01-24 09:28:05 - End Time 2025-01-24 12:28:05 [2025-01-24 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319660', 'tblTempUsageDetail_20' ) start [2025-01-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319660', 'tblTempUsageDetail_20' ) end [2025-01-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319660', 'tblTempVendorCDR_20' ) start [2025-01-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319660', 'tblTempVendorCDR_20' ) end [2025-01-24 12:28:22] Production.INFO: ProcessCDR(1,14319660,1,1,2) [2025-01-24 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319660', 'tblTempUsageDetail_20' ) start [2025-01-24 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319660', 'tblTempUsageDetail_20' ) end [2025-01-24 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:28:25] Production.INFO: ==21105== Releasing lock... [2025-01-24 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:28:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:29:06 [end_date_ymd] => 2025-01-24 12:29:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:29:06' and `end` < '2025-01-24 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-24 12:29:22] Production.INFO: count ==5175 [2025-01-24 12:29:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:29:06 - End Time 2025-01-24 12:29:06 [2025-01-24 12:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319665', 'tblTempUsageDetail_20' ) start [2025-01-24 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319665', 'tblTempUsageDetail_20' ) end [2025-01-24 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319665', 'tblTempVendorCDR_20' ) start [2025-01-24 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319665', 'tblTempVendorCDR_20' ) end [2025-01-24 12:29:25] Production.INFO: ProcessCDR(1,14319665,1,1,2) [2025-01-24 12:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319665', 'tblTempUsageDetail_20' ) start [2025-01-24 12:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319665', 'tblTempUsageDetail_20' ) end [2025-01-24 12:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:29:30] Production.INFO: ==21178== Releasing lock... [2025-01-24 12:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:29:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:30:06 [end_date_ymd] => 2025-01-24 12:30:06 [RateCDR] => 1 ) [2025-01-24 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:30:06' and `end` < '2025-01-24 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:30:26] Production.INFO: count ==5188 [2025-01-24 12:30:28] Production.ERROR: pbx CDR StartTime 2025-01-24 09:30:06 - End Time 2025-01-24 12:30:06 [2025-01-24 12:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319670', 'tblTempUsageDetail_20' ) start [2025-01-24 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319670', 'tblTempUsageDetail_20' ) end [2025-01-24 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319670', 'tblTempVendorCDR_20' ) start [2025-01-24 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319670', 'tblTempVendorCDR_20' ) end [2025-01-24 12:30:29] Production.INFO: ProcessCDR(1,14319670,1,1,2) [2025-01-24 12:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319670', 'tblTempUsageDetail_20' ) start [2025-01-24 12:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319670', 'tblTempUsageDetail_20' ) end [2025-01-24 12:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:30:34] Production.INFO: ==21299== Releasing lock... [2025-01-24 12:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:30:34] Production.INFO: 67 MB #Memory Used# [2025-01-24 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:31:06 [end_date_ymd] => 2025-01-24 12:31:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:31:06' and `end` < '2025-01-24 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-24 12:31:24] Production.INFO: count ==5258 [2025-01-24 12:31:26] Production.ERROR: pbx CDR StartTime 2025-01-24 09:31:06 - End Time 2025-01-24 12:31:06 [2025-01-24 12:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319676', 'tblTempUsageDetail_20' ) start [2025-01-24 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319676', 'tblTempUsageDetail_20' ) end [2025-01-24 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319676', 'tblTempVendorCDR_20' ) start [2025-01-24 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319676', 'tblTempVendorCDR_20' ) end [2025-01-24 12:31:26] Production.INFO: ProcessCDR(1,14319676,1,1,2) [2025-01-24 12:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319676', 'tblTempUsageDetail_20' ) start [2025-01-24 12:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319676', 'tblTempUsageDetail_20' ) end [2025-01-24 12:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:31:31] Production.INFO: ==21377== Releasing lock... [2025-01-24 12:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:31:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:32:05 [end_date_ymd] => 2025-01-24 12:32:05 [RateCDR] => 1 ) [2025-01-24 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:32:05' and `end` < '2025-01-24 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:32:29] Production.INFO: count ==5266 [2025-01-24 12:32:31] Production.ERROR: pbx CDR StartTime 2025-01-24 09:32:05 - End Time 2025-01-24 12:32:05 [2025-01-24 12:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319681', 'tblTempUsageDetail_20' ) start [2025-01-24 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319681', 'tblTempUsageDetail_20' ) end [2025-01-24 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319681', 'tblTempVendorCDR_20' ) start [2025-01-24 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319681', 'tblTempVendorCDR_20' ) end [2025-01-24 12:32:31] Production.INFO: ProcessCDR(1,14319681,1,1,2) [2025-01-24 12:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:32:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:32:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:32:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319681', 'tblTempUsageDetail_20' ) start [2025-01-24 12:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319681', 'tblTempUsageDetail_20' ) end [2025-01-24 12:32:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:32:37] Production.INFO: ==21446== Releasing lock... [2025-01-24 12:32:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:32:37] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:33:05 [end_date_ymd] => 2025-01-24 12:33:05 [RateCDR] => 1 ) [2025-01-24 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:33:05' and `end` < '2025-01-24 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:33:22] Production.INFO: count ==5280 [2025-01-24 12:33:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:33:05 - End Time 2025-01-24 12:33:05 [2025-01-24 12:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319686', 'tblTempUsageDetail_20' ) start [2025-01-24 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319686', 'tblTempUsageDetail_20' ) end [2025-01-24 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319686', 'tblTempVendorCDR_20' ) start [2025-01-24 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319686', 'tblTempVendorCDR_20' ) end [2025-01-24 12:33:24] Production.INFO: ProcessCDR(1,14319686,1,1,2) [2025-01-24 12:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319686', 'tblTempUsageDetail_20' ) start [2025-01-24 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319686', 'tblTempUsageDetail_20' ) end [2025-01-24 12:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:33:29] Production.INFO: ==21520== Releasing lock... [2025-01-24 12:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:33:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:34:05 [end_date_ymd] => 2025-01-24 12:34:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:34:05' and `end` < '2025-01-24 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-24 12:34:27] Production.INFO: count ==5292 [2025-01-24 12:34:29] Production.ERROR: pbx CDR StartTime 2025-01-24 09:34:05 - End Time 2025-01-24 12:34:05 [2025-01-24 12:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319691', 'tblTempUsageDetail_20' ) start [2025-01-24 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319691', 'tblTempUsageDetail_20' ) end [2025-01-24 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319691', 'tblTempVendorCDR_20' ) start [2025-01-24 12:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319691', 'tblTempVendorCDR_20' ) end [2025-01-24 12:34:29] Production.INFO: ProcessCDR(1,14319691,1,1,2) [2025-01-24 12:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319691', 'tblTempUsageDetail_20' ) start [2025-01-24 12:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319691', 'tblTempUsageDetail_20' ) end [2025-01-24 12:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:34:34] Production.INFO: ==21596== Releasing lock... [2025-01-24 12:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:34:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:35:06 [end_date_ymd] => 2025-01-24 12:35:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:35:06' and `end` < '2025-01-24 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-24 12:35:31] Production.INFO: count ==5312 [2025-01-24 12:35:33] Production.ERROR: pbx CDR StartTime 2025-01-24 09:35:06 - End Time 2025-01-24 12:35:06 [2025-01-24 12:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319696', 'tblTempUsageDetail_20' ) start [2025-01-24 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319696', 'tblTempUsageDetail_20' ) end [2025-01-24 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319696', 'tblTempVendorCDR_20' ) start [2025-01-24 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319696', 'tblTempVendorCDR_20' ) end [2025-01-24 12:35:33] Production.INFO: ProcessCDR(1,14319696,1,1,2) [2025-01-24 12:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319696', 'tblTempUsageDetail_20' ) start [2025-01-24 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319696', 'tblTempUsageDetail_20' ) end [2025-01-24 12:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:35:38] Production.INFO: ==21666== Releasing lock... [2025-01-24 12:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:35:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:36:05 [end_date_ymd] => 2025-01-24 12:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:36:05' and `end` < '2025-01-24 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-24 12:36:26] Production.INFO: count ==5302 [2025-01-24 12:36:29] Production.ERROR: pbx CDR StartTime 2025-01-24 09:36:05 - End Time 2025-01-24 12:36:05 [2025-01-24 12:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319701', 'tblTempUsageDetail_20' ) start [2025-01-24 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319701', 'tblTempUsageDetail_20' ) end [2025-01-24 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319701', 'tblTempVendorCDR_20' ) start [2025-01-24 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319701', 'tblTempVendorCDR_20' ) end [2025-01-24 12:36:29] Production.INFO: ProcessCDR(1,14319701,1,1,2) [2025-01-24 12:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319701', 'tblTempUsageDetail_20' ) start [2025-01-24 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319701', 'tblTempUsageDetail_20' ) end [2025-01-24 12:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:36:34] Production.INFO: ==21739== Releasing lock... [2025-01-24 12:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:36:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:37:06 [end_date_ymd] => 2025-01-24 12:37:06 [RateCDR] => 1 ) [2025-01-24 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:37:06' and `end` < '2025-01-24 12: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-24 12:37:32] Production.INFO: count ==5303 [2025-01-24 12:37:34] Production.ERROR: pbx CDR StartTime 2025-01-24 09:37:06 - End Time 2025-01-24 12:37:06 [2025-01-24 12:37:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319706', 'tblTempUsageDetail_20' ) start [2025-01-24 12:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319706', 'tblTempUsageDetail_20' ) end [2025-01-24 12:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319706', 'tblTempVendorCDR_20' ) start [2025-01-24 12:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319706', 'tblTempVendorCDR_20' ) end [2025-01-24 12:37:35] Production.INFO: ProcessCDR(1,14319706,1,1,2) [2025-01-24 12:37:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:37:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:37:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:37:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319706', 'tblTempUsageDetail_20' ) start [2025-01-24 12:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319706', 'tblTempUsageDetail_20' ) end [2025-01-24 12:37:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:37:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:37:39] Production.INFO: ==21809== Releasing lock... [2025-01-24 12:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:37:39] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:38:05 [end_date_ymd] => 2025-01-24 12:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:38:05' and `end` < '2025-01-24 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-24 12:38:24] Production.INFO: count ==5323 [2025-01-24 12:38:26] Production.ERROR: pbx CDR StartTime 2025-01-24 09:38:05 - End Time 2025-01-24 12:38:05 [2025-01-24 12:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319711', 'tblTempUsageDetail_20' ) start [2025-01-24 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319711', 'tblTempUsageDetail_20' ) end [2025-01-24 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319711', 'tblTempVendorCDR_20' ) start [2025-01-24 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319711', 'tblTempVendorCDR_20' ) end [2025-01-24 12:38:26] Production.INFO: ProcessCDR(1,14319711,1,1,2) [2025-01-24 12:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319711', 'tblTempUsageDetail_20' ) start [2025-01-24 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319711', 'tblTempUsageDetail_20' ) end [2025-01-24 12:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:38:30] Production.INFO: ==21882== Releasing lock... [2025-01-24 12:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:38:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:39:05 [end_date_ymd] => 2025-01-24 12:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:39:05' and `end` < '2025-01-24 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-24 12:39:19] Production.INFO: count ==5313 [2025-01-24 12:39:22] Production.ERROR: pbx CDR StartTime 2025-01-24 09:39:05 - End Time 2025-01-24 12:39:05 [2025-01-24 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319716', 'tblTempUsageDetail_20' ) start [2025-01-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319716', 'tblTempUsageDetail_20' ) end [2025-01-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319716', 'tblTempVendorCDR_20' ) start [2025-01-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319716', 'tblTempVendorCDR_20' ) end [2025-01-24 12:39:22] Production.INFO: ProcessCDR(1,14319716,1,1,2) [2025-01-24 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319716', 'tblTempUsageDetail_20' ) start [2025-01-24 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319716', 'tblTempUsageDetail_20' ) end [2025-01-24 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:39:27] Production.INFO: ==21959== Releasing lock... [2025-01-24 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:39:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:40:06 [end_date_ymd] => 2025-01-24 12:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:40:06' and `end` < '2025-01-24 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-24 12:40:20] Production.INFO: count ==5329 [2025-01-24 12:40:23] Production.ERROR: pbx CDR StartTime 2025-01-24 09:40:06 - End Time 2025-01-24 12:40:06 [2025-01-24 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319722', 'tblTempUsageDetail_20' ) start [2025-01-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319722', 'tblTempUsageDetail_20' ) end [2025-01-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319722', 'tblTempVendorCDR_20' ) start [2025-01-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319722', 'tblTempVendorCDR_20' ) end [2025-01-24 12:40:23] Production.INFO: ProcessCDR(1,14319722,1,1,2) [2025-01-24 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319722', 'tblTempUsageDetail_20' ) start [2025-01-24 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319722', 'tblTempUsageDetail_20' ) end [2025-01-24 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:40:27] Production.INFO: ==22034== Releasing lock... [2025-01-24 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:40:27] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:41:05 [end_date_ymd] => 2025-01-24 12:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:41:05' and `end` < '2025-01-24 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-24 12:41:21] Production.INFO: count ==5343 [2025-01-24 12:41:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:41:05 - End Time 2025-01-24 12:41:05 [2025-01-24 12:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319727', 'tblTempUsageDetail_20' ) start [2025-01-24 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319727', 'tblTempUsageDetail_20' ) end [2025-01-24 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319727', 'tblTempVendorCDR_20' ) start [2025-01-24 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319727', 'tblTempVendorCDR_20' ) end [2025-01-24 12:41:24] Production.INFO: ProcessCDR(1,14319727,1,1,2) [2025-01-24 12:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319727', 'tblTempUsageDetail_20' ) start [2025-01-24 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319727', 'tblTempUsageDetail_20' ) end [2025-01-24 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:41:27] Production.INFO: ==22110== Releasing lock... [2025-01-24 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:41:27] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:42:05 [end_date_ymd] => 2025-01-24 12:42:05 [RateCDR] => 1 ) [2025-01-24 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:42:05' and `end` < '2025-01-24 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:42:22] Production.INFO: count ==5350 [2025-01-24 12:42:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:42:05 - End Time 2025-01-24 12:42:05 [2025-01-24 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319732', 'tblTempUsageDetail_20' ) start [2025-01-24 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319732', 'tblTempUsageDetail_20' ) end [2025-01-24 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319732', 'tblTempVendorCDR_20' ) start [2025-01-24 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319732', 'tblTempVendorCDR_20' ) end [2025-01-24 12:42:24] Production.INFO: ProcessCDR(1,14319732,1,1,2) [2025-01-24 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319732', 'tblTempUsageDetail_20' ) start [2025-01-24 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319732', 'tblTempUsageDetail_20' ) end [2025-01-24 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:42:29] Production.INFO: ==22182== Releasing lock... [2025-01-24 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:42:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:43:06 [end_date_ymd] => 2025-01-24 12:43:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:43:06' and `end` < '2025-01-24 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-24 12:43:22] Production.INFO: count ==5354 [2025-01-24 12:43:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:43:06 - End Time 2025-01-24 12:43:06 [2025-01-24 12:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319737', 'tblTempUsageDetail_20' ) start [2025-01-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319737', 'tblTempUsageDetail_20' ) end [2025-01-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319737', 'tblTempVendorCDR_20' ) start [2025-01-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319737', 'tblTempVendorCDR_20' ) end [2025-01-24 12:43:24] Production.INFO: ProcessCDR(1,14319737,1,1,2) [2025-01-24 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319737', 'tblTempUsageDetail_20' ) start [2025-01-24 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319737', 'tblTempUsageDetail_20' ) end [2025-01-24 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:43:29] Production.INFO: ==22255== Releasing lock... [2025-01-24 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:43:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:44:05 [end_date_ymd] => 2025-01-24 12:44:05 [RateCDR] => 1 ) [2025-01-24 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:44:05' and `end` < '2025-01-24 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-24 12:44:25] Production.INFO: count ==5351 [2025-01-24 12:44:27] Production.ERROR: pbx CDR StartTime 2025-01-24 09:44:05 - End Time 2025-01-24 12:44:05 [2025-01-24 12:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319742', 'tblTempUsageDetail_20' ) start [2025-01-24 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319742', 'tblTempUsageDetail_20' ) end [2025-01-24 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319742', 'tblTempVendorCDR_20' ) start [2025-01-24 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319742', 'tblTempVendorCDR_20' ) end [2025-01-24 12:44:27] Production.INFO: ProcessCDR(1,14319742,1,1,2) [2025-01-24 12:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319742', 'tblTempUsageDetail_20' ) start [2025-01-24 12:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319742', 'tblTempUsageDetail_20' ) end [2025-01-24 12:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:44:32] Production.INFO: ==22330== Releasing lock... [2025-01-24 12:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:44:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:45:05 [end_date_ymd] => 2025-01-24 12:45:05 [RateCDR] => 1 ) [2025-01-24 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:45:05' and `end` < '2025-01-24 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:45:33] Production.INFO: count ==5380 [2025-01-24 12:45:35] Production.ERROR: pbx CDR StartTime 2025-01-24 09:45:05 - End Time 2025-01-24 12:45:05 [2025-01-24 12:45:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319747', 'tblTempUsageDetail_20' ) start [2025-01-24 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319747', 'tblTempUsageDetail_20' ) end [2025-01-24 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319747', 'tblTempVendorCDR_20' ) start [2025-01-24 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319747', 'tblTempVendorCDR_20' ) end [2025-01-24 12:45:35] Production.INFO: ProcessCDR(1,14319747,1,1,2) [2025-01-24 12:45:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:45:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:45:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319747', 'tblTempUsageDetail_20' ) start [2025-01-24 12:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319747', 'tblTempUsageDetail_20' ) end [2025-01-24 12:45:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:45:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:45:40] Production.INFO: ==22404== Releasing lock... [2025-01-24 12:45:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:45:40] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:46:05 [end_date_ymd] => 2025-01-24 12:46:05 [RateCDR] => 1 ) [2025-01-24 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:46:05' and `end` < '2025-01-24 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:46:31] Production.INFO: count ==5372 [2025-01-24 12:46:33] Production.ERROR: pbx CDR StartTime 2025-01-24 09:46:05 - End Time 2025-01-24 12:46:05 [2025-01-24 12:46:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319752', 'tblTempUsageDetail_20' ) start [2025-01-24 12:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319752', 'tblTempUsageDetail_20' ) end [2025-01-24 12:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319752', 'tblTempVendorCDR_20' ) start [2025-01-24 12:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319752', 'tblTempVendorCDR_20' ) end [2025-01-24 12:46:33] Production.INFO: ProcessCDR(1,14319752,1,1,2) [2025-01-24 12:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:46:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:46:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:46:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319752', 'tblTempUsageDetail_20' ) start [2025-01-24 12:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319752', 'tblTempUsageDetail_20' ) end [2025-01-24 12:46:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:46:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:46:38] Production.INFO: ==22519== Releasing lock... [2025-01-24 12:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:46:38] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:47:05 [end_date_ymd] => 2025-01-24 12:47:05 [RateCDR] => 1 ) [2025-01-24 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:47:05' and `end` < '2025-01-24 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:47:23] Production.INFO: count ==5378 [2025-01-24 12:47:25] Production.ERROR: pbx CDR StartTime 2025-01-24 09:47:05 - End Time 2025-01-24 12:47:05 [2025-01-24 12:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319757', 'tblTempUsageDetail_20' ) start [2025-01-24 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319757', 'tblTempUsageDetail_20' ) end [2025-01-24 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319757', 'tblTempVendorCDR_20' ) start [2025-01-24 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319757', 'tblTempVendorCDR_20' ) end [2025-01-24 12:47:25] Production.INFO: ProcessCDR(1,14319757,1,1,2) [2025-01-24 12:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319757', 'tblTempUsageDetail_20' ) start [2025-01-24 12:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319757', 'tblTempUsageDetail_20' ) end [2025-01-24 12:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:47:30] Production.INFO: ==22595== Releasing lock... [2025-01-24 12:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:47:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:48:05 [end_date_ymd] => 2025-01-24 12:48:05 [RateCDR] => 1 ) [2025-01-24 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:48:05' and `end` < '2025-01-24 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:48:28] Production.INFO: count ==5363 [2025-01-24 12:48:30] Production.ERROR: pbx CDR StartTime 2025-01-24 09:48:05 - End Time 2025-01-24 12:48:05 [2025-01-24 12:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319762', 'tblTempUsageDetail_20' ) start [2025-01-24 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319762', 'tblTempUsageDetail_20' ) end [2025-01-24 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319762', 'tblTempVendorCDR_20' ) start [2025-01-24 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319762', 'tblTempVendorCDR_20' ) end [2025-01-24 12:48:31] Production.INFO: ProcessCDR(1,14319762,1,1,2) [2025-01-24 12:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319762', 'tblTempUsageDetail_20' ) start [2025-01-24 12:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319762', 'tblTempUsageDetail_20' ) end [2025-01-24 12:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:48:35] Production.INFO: ==22668== Releasing lock... [2025-01-24 12:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:48:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:49:05 [end_date_ymd] => 2025-01-24 12:49:05 [RateCDR] => 1 ) [2025-01-24 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:49:05' and `end` < '2025-01-24 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:49:22] Production.INFO: count ==5353 [2025-01-24 12:49:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:49:05 - End Time 2025-01-24 12:49:05 [2025-01-24 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319767', 'tblTempUsageDetail_20' ) start [2025-01-24 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319767', 'tblTempUsageDetail_20' ) end [2025-01-24 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319767', 'tblTempVendorCDR_20' ) start [2025-01-24 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319767', 'tblTempVendorCDR_20' ) end [2025-01-24 12:49:24] Production.INFO: ProcessCDR(1,14319767,1,1,2) [2025-01-24 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319767', 'tblTempUsageDetail_20' ) start [2025-01-24 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319767', 'tblTempUsageDetail_20' ) end [2025-01-24 12:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:49:29] Production.INFO: ==22750== Releasing lock... [2025-01-24 12:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:49:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:50:06 [end_date_ymd] => 2025-01-24 12:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 09:50:06' and `end` < '2025-01-24 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-24 12:50:28] Production.INFO: count ==5367 [2025-01-24 12:50:30] Production.ERROR: pbx CDR StartTime 2025-01-24 09:50:06 - End Time 2025-01-24 12:50:06 [2025-01-24 12:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319773', 'tblTempUsageDetail_20' ) start [2025-01-24 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319773', 'tblTempUsageDetail_20' ) end [2025-01-24 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319773', 'tblTempVendorCDR_20' ) start [2025-01-24 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319773', 'tblTempVendorCDR_20' ) end [2025-01-24 12:50:30] Production.INFO: ProcessCDR(1,14319773,1,1,2) [2025-01-24 12:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319773', 'tblTempUsageDetail_20' ) start [2025-01-24 12:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319773', 'tblTempUsageDetail_20' ) end [2025-01-24 12:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:50:36] Production.INFO: ==22824== Releasing lock... [2025-01-24 12:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:50:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:51:05 [end_date_ymd] => 2025-01-24 12:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:51:05' and `end` < '2025-01-24 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-24 12:51:27] Production.INFO: count ==5360 [2025-01-24 12:51:29] Production.ERROR: pbx CDR StartTime 2025-01-24 09:51:05 - End Time 2025-01-24 12:51:05 [2025-01-24 12:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319778', 'tblTempUsageDetail_20' ) start [2025-01-24 12:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319778', 'tblTempUsageDetail_20' ) end [2025-01-24 12:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319778', 'tblTempVendorCDR_20' ) start [2025-01-24 12:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319778', 'tblTempVendorCDR_20' ) end [2025-01-24 12:51:29] Production.INFO: ProcessCDR(1,14319778,1,1,2) [2025-01-24 12:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319778', 'tblTempUsageDetail_20' ) start [2025-01-24 12:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319778', 'tblTempUsageDetail_20' ) end [2025-01-24 12:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:51:34] Production.INFO: ==22902== Releasing lock... [2025-01-24 12:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:51:34] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:52:05 [end_date_ymd] => 2025-01-24 12:52:05 [RateCDR] => 1 ) [2025-01-24 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:52:05' and `end` < '2025-01-24 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:52:24] Production.INFO: count ==5352 [2025-01-24 12:52:26] Production.ERROR: pbx CDR StartTime 2025-01-24 09:52:05 - End Time 2025-01-24 12:52:05 [2025-01-24 12:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319783', 'tblTempUsageDetail_20' ) start [2025-01-24 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319783', 'tblTempUsageDetail_20' ) end [2025-01-24 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319783', 'tblTempVendorCDR_20' ) start [2025-01-24 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319783', 'tblTempVendorCDR_20' ) end [2025-01-24 12:52:27] Production.INFO: ProcessCDR(1,14319783,1,1,2) [2025-01-24 12:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319783', 'tblTempUsageDetail_20' ) start [2025-01-24 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319783', 'tblTempUsageDetail_20' ) end [2025-01-24 12:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:52:31] Production.INFO: ==22976== Releasing lock... [2025-01-24 12:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:52:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:53:05 [end_date_ymd] => 2025-01-24 12:53:05 [RateCDR] => 1 ) [2025-01-24 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:53:05' and `end` < '2025-01-24 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:53:19] Production.INFO: count ==5344 [2025-01-24 12:53:22] Production.ERROR: pbx CDR StartTime 2025-01-24 09:53:05 - End Time 2025-01-24 12:53:05 [2025-01-24 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319788', 'tblTempUsageDetail_20' ) start [2025-01-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319788', 'tblTempUsageDetail_20' ) end [2025-01-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319788', 'tblTempVendorCDR_20' ) start [2025-01-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319788', 'tblTempVendorCDR_20' ) end [2025-01-24 12:53:22] Production.INFO: ProcessCDR(1,14319788,1,1,2) [2025-01-24 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319788', 'tblTempUsageDetail_20' ) start [2025-01-24 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319788', 'tblTempUsageDetail_20' ) end [2025-01-24 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:53:27] Production.INFO: ==23048== Releasing lock... [2025-01-24 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:53:27] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:54:06 [end_date_ymd] => 2025-01-24 12:54:06 [RateCDR] => 1 ) [2025-01-24 12: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-24 09:54:06' and `end` < '2025-01-24 12: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-24 12:54:21] Production.INFO: count ==5333 [2025-01-24 12:54:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:54:06 - End Time 2025-01-24 12:54:06 [2025-01-24 12:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319793', 'tblTempUsageDetail_20' ) start [2025-01-24 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319793', 'tblTempUsageDetail_20' ) end [2025-01-24 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319793', 'tblTempVendorCDR_20' ) start [2025-01-24 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319793', 'tblTempVendorCDR_20' ) end [2025-01-24 12:54:24] Production.INFO: ProcessCDR(1,14319793,1,1,2) [2025-01-24 12:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319793', 'tblTempUsageDetail_20' ) start [2025-01-24 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319793', 'tblTempUsageDetail_20' ) end [2025-01-24 12:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:54:29] Production.INFO: ==23140== Releasing lock... [2025-01-24 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:54:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:55:05 [end_date_ymd] => 2025-01-24 12:55:05 [RateCDR] => 1 ) [2025-01-24 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:55:05' and `end` < '2025-01-24 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:55:18] Production.INFO: count ==5322 [2025-01-24 12:55:21] Production.ERROR: pbx CDR StartTime 2025-01-24 09:55:05 - End Time 2025-01-24 12:55:05 [2025-01-24 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319798', 'tblTempUsageDetail_20' ) start [2025-01-24 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319798', 'tblTempUsageDetail_20' ) end [2025-01-24 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319798', 'tblTempVendorCDR_20' ) start [2025-01-24 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319798', 'tblTempVendorCDR_20' ) end [2025-01-24 12:55:21] Production.INFO: ProcessCDR(1,14319798,1,1,2) [2025-01-24 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319798', 'tblTempUsageDetail_20' ) start [2025-01-24 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319798', 'tblTempUsageDetail_20' ) end [2025-01-24 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:55:26] Production.INFO: ==23214== Releasing lock... [2025-01-24 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:55:26] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:56:05 [end_date_ymd] => 2025-01-24 12:56:05 [RateCDR] => 1 ) [2025-01-24 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 09:56:05' and `end` < '2025-01-24 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 12:56:31] Production.INFO: count ==5322 [2025-01-24 12:56:33] Production.ERROR: pbx CDR StartTime 2025-01-24 09:56:05 - End Time 2025-01-24 12:56:05 [2025-01-24 12:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319803', 'tblTempUsageDetail_20' ) start [2025-01-24 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319803', 'tblTempUsageDetail_20' ) end [2025-01-24 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319803', 'tblTempVendorCDR_20' ) start [2025-01-24 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319803', 'tblTempVendorCDR_20' ) end [2025-01-24 12:56:33] Production.INFO: ProcessCDR(1,14319803,1,1,2) [2025-01-24 12:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319803', 'tblTempUsageDetail_20' ) start [2025-01-24 12:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319803', 'tblTempUsageDetail_20' ) end [2025-01-24 12:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:56:38] Production.INFO: ==23288== Releasing lock... [2025-01-24 12:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:56:38] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:57:05 [end_date_ymd] => 2025-01-24 12:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:57:05' and `end` < '2025-01-24 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-24 12:57:22] Production.INFO: count ==5325 [2025-01-24 12:57:24] Production.ERROR: pbx CDR StartTime 2025-01-24 09:57:05 - End Time 2025-01-24 12:57:05 [2025-01-24 12:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319808', 'tblTempUsageDetail_20' ) start [2025-01-24 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319808', 'tblTempUsageDetail_20' ) end [2025-01-24 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319808', 'tblTempVendorCDR_20' ) start [2025-01-24 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319808', 'tblTempVendorCDR_20' ) end [2025-01-24 12:57:24] Production.INFO: ProcessCDR(1,14319808,1,1,2) [2025-01-24 12:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319808', 'tblTempUsageDetail_20' ) start [2025-01-24 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319808', 'tblTempUsageDetail_20' ) end [2025-01-24 12:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:57:29] Production.INFO: ==23363== Releasing lock... [2025-01-24 12:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:57:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:58:05 [end_date_ymd] => 2025-01-24 12:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:58:05' and `end` < '2025-01-24 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-24 12:58:23] Production.INFO: count ==5309 [2025-01-24 12:58:26] Production.ERROR: pbx CDR StartTime 2025-01-24 09:58:05 - End Time 2025-01-24 12:58:05 [2025-01-24 12:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319813', 'tblTempUsageDetail_20' ) start [2025-01-24 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319813', 'tblTempUsageDetail_20' ) end [2025-01-24 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319813', 'tblTempVendorCDR_20' ) start [2025-01-24 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319813', 'tblTempVendorCDR_20' ) end [2025-01-24 12:58:26] Production.INFO: ProcessCDR(1,14319813,1,1,2) [2025-01-24 12:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319813', 'tblTempUsageDetail_20' ) start [2025-01-24 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319813', 'tblTempUsageDetail_20' ) end [2025-01-24 12:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:58:31] Production.INFO: ==23439== Releasing lock... [2025-01-24 12:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:58:31] Production.INFO: 68 MB #Memory Used# [2025-01-24 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 09:59:05 [end_date_ymd] => 2025-01-24 12:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 09:59:05' and `end` < '2025-01-24 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-24 12:59:20] Production.INFO: count ==5316 [2025-01-24 12:59:22] Production.ERROR: pbx CDR StartTime 2025-01-24 09:59:05 - End Time 2025-01-24 12:59:05 [2025-01-24 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319818', 'tblTempUsageDetail_20' ) start [2025-01-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319818', 'tblTempUsageDetail_20' ) end [2025-01-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319818', 'tblTempVendorCDR_20' ) start [2025-01-24 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319818', 'tblTempVendorCDR_20' ) end [2025-01-24 12:59:22] Production.INFO: ProcessCDR(1,14319818,1,1,2) [2025-01-24 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319818', 'tblTempUsageDetail_20' ) start [2025-01-24 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319818', 'tblTempUsageDetail_20' ) end [2025-01-24 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 12:59:27] Production.INFO: ==23511== Releasing lock... [2025-01-24 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 12:59:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:00:07 [end_date_ymd] => 2025-01-24 13:00:07 [RateCDR] => 1 ) [2025-01-24 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:00:07' and `end` < '2025-01-24 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:00:26] Production.INFO: count ==5324 [2025-01-24 13:00:29] Production.ERROR: pbx CDR StartTime 2025-01-24 10:00:07 - End Time 2025-01-24 13:00:07 [2025-01-24 13:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319824', 'tblTempUsageDetail_20' ) start [2025-01-24 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319824', 'tblTempUsageDetail_20' ) end [2025-01-24 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319824', 'tblTempVendorCDR_20' ) start [2025-01-24 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319824', 'tblTempVendorCDR_20' ) end [2025-01-24 13:00:29] Production.INFO: ProcessCDR(1,14319824,1,1,2) [2025-01-24 13:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319824', 'tblTempUsageDetail_20' ) start [2025-01-24 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319824', 'tblTempUsageDetail_20' ) end [2025-01-24 13:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:00:33] Production.INFO: ==23588== Releasing lock... [2025-01-24 13:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:00:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:01:05 [end_date_ymd] => 2025-01-24 13:01:05 [RateCDR] => 1 ) [2025-01-24 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:01:05' and `end` < '2025-01-24 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:01:26] Production.INFO: count ==5319 [2025-01-24 13:01:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:01:05 - End Time 2025-01-24 13:01:05 [2025-01-24 13:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319829', 'tblTempUsageDetail_20' ) start [2025-01-24 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319829', 'tblTempUsageDetail_20' ) end [2025-01-24 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319829', 'tblTempVendorCDR_20' ) start [2025-01-24 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319829', 'tblTempVendorCDR_20' ) end [2025-01-24 13:01:28] Production.INFO: ProcessCDR(1,14319829,1,1,2) [2025-01-24 13:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319829', 'tblTempUsageDetail_20' ) start [2025-01-24 13:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319829', 'tblTempUsageDetail_20' ) end [2025-01-24 13:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:01:33] Production.INFO: ==23714== Releasing lock... [2025-01-24 13:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:01:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:02:06 [end_date_ymd] => 2025-01-24 13:02:06 [RateCDR] => 1 ) [2025-01-24 13: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-24 10:02:06' and `end` < '2025-01-24 13: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-24 13:02:22] Production.INFO: count ==5329 [2025-01-24 13:02:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:02:06 - End Time 2025-01-24 13:02:06 [2025-01-24 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319834', 'tblTempUsageDetail_20' ) start [2025-01-24 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319834', 'tblTempUsageDetail_20' ) end [2025-01-24 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319834', 'tblTempVendorCDR_20' ) start [2025-01-24 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319834', 'tblTempVendorCDR_20' ) end [2025-01-24 13:02:25] Production.INFO: ProcessCDR(1,14319834,1,1,2) [2025-01-24 13:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319834', 'tblTempUsageDetail_20' ) start [2025-01-24 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319834', 'tblTempUsageDetail_20' ) end [2025-01-24 13:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:02:30] Production.INFO: ==23789== Releasing lock... [2025-01-24 13:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:02:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:03:05 [end_date_ymd] => 2025-01-24 13:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:03:05' and `end` < '2025-01-24 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-24 13:03:22] Production.INFO: count ==5331 [2025-01-24 13:03:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:03:05 - End Time 2025-01-24 13:03:05 [2025-01-24 13:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319839', 'tblTempUsageDetail_20' ) start [2025-01-24 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319839', 'tblTempUsageDetail_20' ) end [2025-01-24 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319839', 'tblTempVendorCDR_20' ) start [2025-01-24 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319839', 'tblTempVendorCDR_20' ) end [2025-01-24 13:03:24] Production.INFO: ProcessCDR(1,14319839,1,1,2) [2025-01-24 13:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319839', 'tblTempUsageDetail_20' ) start [2025-01-24 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319839', 'tblTempUsageDetail_20' ) end [2025-01-24 13:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:03:29] Production.INFO: ==23863== Releasing lock... [2025-01-24 13:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:03:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:04:07 [end_date_ymd] => 2025-01-24 13:04:07 [RateCDR] => 1 ) [2025-01-24 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-24 10:04:07' and `end` < '2025-01-24 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-24 13:04:20] Production.INFO: count ==5338 [2025-01-24 13:04:23] Production.ERROR: pbx CDR StartTime 2025-01-24 10:04:07 - End Time 2025-01-24 13:04:07 [2025-01-24 13:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319844', 'tblTempUsageDetail_20' ) start [2025-01-24 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319844', 'tblTempUsageDetail_20' ) end [2025-01-24 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319844', 'tblTempVendorCDR_20' ) start [2025-01-24 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319844', 'tblTempVendorCDR_20' ) end [2025-01-24 13:04:23] Production.INFO: ProcessCDR(1,14319844,1,1,2) [2025-01-24 13:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319844', 'tblTempUsageDetail_20' ) start [2025-01-24 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319844', 'tblTempUsageDetail_20' ) end [2025-01-24 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:04:28] Production.INFO: ==23938== Releasing lock... [2025-01-24 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:04:28] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:05:05 [end_date_ymd] => 2025-01-24 13:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:05:05' and `end` < '2025-01-24 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-24 13:05:29] Production.INFO: count ==5321 [2025-01-24 13:05:31] Production.ERROR: pbx CDR StartTime 2025-01-24 10:05:05 - End Time 2025-01-24 13:05:05 [2025-01-24 13:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319849', 'tblTempUsageDetail_20' ) start [2025-01-24 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319849', 'tblTempUsageDetail_20' ) end [2025-01-24 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319849', 'tblTempVendorCDR_20' ) start [2025-01-24 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319849', 'tblTempVendorCDR_20' ) end [2025-01-24 13:05:31] Production.INFO: ProcessCDR(1,14319849,1,1,2) [2025-01-24 13:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319849', 'tblTempUsageDetail_20' ) start [2025-01-24 13:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319849', 'tblTempUsageDetail_20' ) end [2025-01-24 13:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:05:36] Production.INFO: ==24011== Releasing lock... [2025-01-24 13:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:05:36] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:06:06 [end_date_ymd] => 2025-01-24 13:06:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:06:06' and `end` < '2025-01-24 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-24 13:06:33] Production.INFO: count ==5332 [2025-01-24 13:06:35] Production.ERROR: pbx CDR StartTime 2025-01-24 10:06:06 - End Time 2025-01-24 13:06:06 [2025-01-24 13:06:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319853', 'tblTempUsageDetail_20' ) start [2025-01-24 13:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319853', 'tblTempUsageDetail_20' ) end [2025-01-24 13:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319853', 'tblTempVendorCDR_20' ) start [2025-01-24 13:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319853', 'tblTempVendorCDR_20' ) end [2025-01-24 13:06:36] Production.INFO: ProcessCDR(1,14319853,1,1,2) [2025-01-24 13:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:06:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:06:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319853', 'tblTempUsageDetail_20' ) start [2025-01-24 13:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319853', 'tblTempUsageDetail_20' ) end [2025-01-24 13:06:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:06:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:06:41] Production.INFO: ==24131== Releasing lock... [2025-01-24 13:06:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:06:41] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:07:05 [end_date_ymd] => 2025-01-24 13:07:05 [RateCDR] => 1 ) [2025-01-24 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:07:05' and `end` < '2025-01-24 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:07:32] Production.INFO: count ==5327 [2025-01-24 13:07:34] Production.ERROR: pbx CDR StartTime 2025-01-24 10:07:05 - End Time 2025-01-24 13:07:05 [2025-01-24 13:07:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319859', 'tblTempUsageDetail_20' ) start [2025-01-24 13:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319859', 'tblTempUsageDetail_20' ) end [2025-01-24 13:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319859', 'tblTempVendorCDR_20' ) start [2025-01-24 13:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319859', 'tblTempVendorCDR_20' ) end [2025-01-24 13:07:35] Production.INFO: ProcessCDR(1,14319859,1,1,2) [2025-01-24 13:07:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:07:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:07:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:07:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319859', 'tblTempUsageDetail_20' ) start [2025-01-24 13:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319859', 'tblTempUsageDetail_20' ) end [2025-01-24 13:07:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:07:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:07:40] Production.INFO: ==24242== Releasing lock... [2025-01-24 13:07:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:07:40] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:08:05 [end_date_ymd] => 2025-01-24 13:08:05 [RateCDR] => 1 ) [2025-01-24 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:08:05' and `end` < '2025-01-24 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:08:26] Production.INFO: count ==5334 [2025-01-24 13:08:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:08:05 - End Time 2025-01-24 13:08:05 [2025-01-24 13:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319864', 'tblTempUsageDetail_20' ) start [2025-01-24 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319864', 'tblTempUsageDetail_20' ) end [2025-01-24 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319864', 'tblTempVendorCDR_20' ) start [2025-01-24 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319864', 'tblTempVendorCDR_20' ) end [2025-01-24 13:08:28] Production.INFO: ProcessCDR(1,14319864,1,1,2) [2025-01-24 13:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319864', 'tblTempUsageDetail_20' ) start [2025-01-24 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319864', 'tblTempUsageDetail_20' ) end [2025-01-24 13:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:08:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:08:34] Production.INFO: ==24366== Releasing lock... [2025-01-24 13:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:08:34] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:09:06 [end_date_ymd] => 2025-01-24 13:09:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:09:06' and `end` < '2025-01-24 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-24 13:09:26] Production.INFO: count ==5355 [2025-01-24 13:09:29] Production.ERROR: pbx CDR StartTime 2025-01-24 10:09:06 - End Time 2025-01-24 13:09:06 [2025-01-24 13:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319869', 'tblTempUsageDetail_20' ) start [2025-01-24 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319869', 'tblTempUsageDetail_20' ) end [2025-01-24 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319869', 'tblTempVendorCDR_20' ) start [2025-01-24 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319869', 'tblTempVendorCDR_20' ) end [2025-01-24 13:09:29] Production.INFO: ProcessCDR(1,14319869,1,1,2) [2025-01-24 13:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319869', 'tblTempUsageDetail_20' ) start [2025-01-24 13:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319869', 'tblTempUsageDetail_20' ) end [2025-01-24 13:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:09:35] Production.INFO: ==24487== Releasing lock... [2025-01-24 13:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:09:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:10:06 [end_date_ymd] => 2025-01-24 13:10:06 [RateCDR] => 1 ) [2025-01-24 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:10:06' and `end` < '2025-01-24 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:10:26] Production.INFO: count ==5342 [2025-01-24 13:10:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:10:06 - End Time 2025-01-24 13:10:06 [2025-01-24 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319875', 'tblTempUsageDetail_20' ) start [2025-01-24 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319875', 'tblTempUsageDetail_20' ) end [2025-01-24 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319875', 'tblTempVendorCDR_20' ) start [2025-01-24 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319875', 'tblTempVendorCDR_20' ) end [2025-01-24 13:10:28] Production.INFO: ProcessCDR(1,14319875,1,1,2) [2025-01-24 13:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319875', 'tblTempUsageDetail_20' ) start [2025-01-24 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319875', 'tblTempUsageDetail_20' ) end [2025-01-24 13:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:10:33] Production.INFO: ==24610== Releasing lock... [2025-01-24 13:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:10:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:11:06 [end_date_ymd] => 2025-01-24 13:11:06 [RateCDR] => 1 ) [2025-01-24 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:11:06' and `end` < '2025-01-24 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:11:24] Production.INFO: count ==5324 [2025-01-24 13:11:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:11:06 - End Time 2025-01-24 13:11:06 [2025-01-24 13:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319880', 'tblTempUsageDetail_20' ) start [2025-01-24 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319880', 'tblTempUsageDetail_20' ) end [2025-01-24 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319880', 'tblTempVendorCDR_20' ) start [2025-01-24 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319880', 'tblTempVendorCDR_20' ) end [2025-01-24 13:11:27] Production.INFO: ProcessCDR(1,14319880,1,1,2) [2025-01-24 13:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319880', 'tblTempUsageDetail_20' ) start [2025-01-24 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319880', 'tblTempUsageDetail_20' ) end [2025-01-24 13:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:11:32] Production.INFO: ==24732== Releasing lock... [2025-01-24 13:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:11:32] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:12:05 [end_date_ymd] => 2025-01-24 13:12:05 [RateCDR] => 1 ) [2025-01-24 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:12:05' and `end` < '2025-01-24 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:12:19] Production.INFO: count ==5330 [2025-01-24 13:12:22] Production.ERROR: pbx CDR StartTime 2025-01-24 10:12:05 - End Time 2025-01-24 13:12:05 [2025-01-24 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319885', 'tblTempUsageDetail_20' ) start [2025-01-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319885', 'tblTempUsageDetail_20' ) end [2025-01-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319885', 'tblTempVendorCDR_20' ) start [2025-01-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319885', 'tblTempVendorCDR_20' ) end [2025-01-24 13:12:22] Production.INFO: ProcessCDR(1,14319885,1,1,2) [2025-01-24 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319885', 'tblTempUsageDetail_20' ) start [2025-01-24 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319885', 'tblTempUsageDetail_20' ) end [2025-01-24 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:12:27] Production.INFO: ==24843== Releasing lock... [2025-01-24 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:12:27] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:13:06 [end_date_ymd] => 2025-01-24 13:13:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:13:06' and `end` < '2025-01-24 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-24 13:13:23] Production.INFO: count ==5332 [2025-01-24 13:13:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:13:06 - End Time 2025-01-24 13:13:06 [2025-01-24 13:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319890', 'tblTempUsageDetail_20' ) start [2025-01-24 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319890', 'tblTempUsageDetail_20' ) end [2025-01-24 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319890', 'tblTempVendorCDR_20' ) start [2025-01-24 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319890', 'tblTempVendorCDR_20' ) end [2025-01-24 13:13:26] Production.INFO: ProcessCDR(1,14319890,1,1,2) [2025-01-24 13:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319890', 'tblTempUsageDetail_20' ) start [2025-01-24 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319890', 'tblTempUsageDetail_20' ) end [2025-01-24 13:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:13:31] Production.INFO: ==24964== Releasing lock... [2025-01-24 13:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:13:31] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:14:05 [end_date_ymd] => 2025-01-24 13:14:05 [RateCDR] => 1 ) [2025-01-24 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:14:05' and `end` < '2025-01-24 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:14:21] Production.INFO: count ==5320 [2025-01-24 13:14:23] Production.ERROR: pbx CDR StartTime 2025-01-24 10:14:05 - End Time 2025-01-24 13:14:05 [2025-01-24 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319895', 'tblTempUsageDetail_20' ) start [2025-01-24 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319895', 'tblTempUsageDetail_20' ) end [2025-01-24 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319895', 'tblTempVendorCDR_20' ) start [2025-01-24 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319895', 'tblTempVendorCDR_20' ) end [2025-01-24 13:14:23] Production.INFO: ProcessCDR(1,14319895,1,1,2) [2025-01-24 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319895', 'tblTempUsageDetail_20' ) start [2025-01-24 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319895', 'tblTempUsageDetail_20' ) end [2025-01-24 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:14:29] Production.INFO: ==25083== Releasing lock... [2025-01-24 13:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:14:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:15:06 [end_date_ymd] => 2025-01-24 13:15:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:15:06' and `end` < '2025-01-24 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-24 13:15:19] Production.INFO: count ==5304 [2025-01-24 13:15:22] Production.ERROR: pbx CDR StartTime 2025-01-24 10:15:06 - End Time 2025-01-24 13:15:06 [2025-01-24 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319900', 'tblTempUsageDetail_20' ) start [2025-01-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319900', 'tblTempUsageDetail_20' ) end [2025-01-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319900', 'tblTempVendorCDR_20' ) start [2025-01-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319900', 'tblTempVendorCDR_20' ) end [2025-01-24 13:15:22] Production.INFO: ProcessCDR(1,14319900,1,1,2) [2025-01-24 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319900', 'tblTempUsageDetail_20' ) start [2025-01-24 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319900', 'tblTempUsageDetail_20' ) end [2025-01-24 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:15:28] Production.INFO: ==25204== Releasing lock... [2025-01-24 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:15:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:16:06 [end_date_ymd] => 2025-01-24 13:16:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:16:06' and `end` < '2025-01-24 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-24 13:16:20] Production.INFO: count ==5299 [2025-01-24 13:16:23] Production.ERROR: pbx CDR StartTime 2025-01-24 10:16:06 - End Time 2025-01-24 13:16:06 [2025-01-24 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319905', 'tblTempUsageDetail_20' ) start [2025-01-24 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319905', 'tblTempUsageDetail_20' ) end [2025-01-24 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319905', 'tblTempVendorCDR_20' ) start [2025-01-24 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319905', 'tblTempVendorCDR_20' ) end [2025-01-24 13:16:23] Production.INFO: ProcessCDR(1,14319905,1,1,2) [2025-01-24 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319905', 'tblTempUsageDetail_20' ) start [2025-01-24 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319905', 'tblTempUsageDetail_20' ) end [2025-01-24 13:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:16:28] Production.INFO: ==25323== Releasing lock... [2025-01-24 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:16:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:17:06 [end_date_ymd] => 2025-01-24 13:17:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:17:06' and `end` < '2025-01-24 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-24 13:17:22] Production.INFO: count ==5288 [2025-01-24 13:17:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:17:06 - End Time 2025-01-24 13:17:06 [2025-01-24 13:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319910', 'tblTempUsageDetail_20' ) start [2025-01-24 13:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319910', 'tblTempUsageDetail_20' ) end [2025-01-24 13:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319910', 'tblTempVendorCDR_20' ) start [2025-01-24 13:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319910', 'tblTempVendorCDR_20' ) end [2025-01-24 13:17:25] Production.INFO: ProcessCDR(1,14319910,1,1,2) [2025-01-24 13:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319910', 'tblTempUsageDetail_20' ) start [2025-01-24 13:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319910', 'tblTempUsageDetail_20' ) end [2025-01-24 13:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:17:30] Production.INFO: ==25483== Releasing lock... [2025-01-24 13:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:17:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:18:06 [end_date_ymd] => 2025-01-24 13:18:06 [RateCDR] => 1 ) [2025-01-24 13: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-24 10:18:06' and `end` < '2025-01-24 13: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-24 13:18:20] Production.INFO: count ==5264 [2025-01-24 13:18:23] Production.ERROR: pbx CDR StartTime 2025-01-24 10:18:06 - End Time 2025-01-24 13:18:06 [2025-01-24 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319915', 'tblTempUsageDetail_20' ) start [2025-01-24 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319915', 'tblTempUsageDetail_20' ) end [2025-01-24 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319915', 'tblTempVendorCDR_20' ) start [2025-01-24 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319915', 'tblTempVendorCDR_20' ) end [2025-01-24 13:18:23] Production.INFO: ProcessCDR(1,14319915,1,1,2) [2025-01-24 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319915', 'tblTempUsageDetail_20' ) start [2025-01-24 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319915', 'tblTempUsageDetail_20' ) end [2025-01-24 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:18:28] Production.INFO: ==25597== Releasing lock... [2025-01-24 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:18:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:19:06 [end_date_ymd] => 2025-01-24 13:19:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:19:06' and `end` < '2025-01-24 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-24 13:19:29] Production.INFO: count ==5260 [2025-01-24 13:19:32] Production.ERROR: pbx CDR StartTime 2025-01-24 10:19:06 - End Time 2025-01-24 13:19:06 [2025-01-24 13:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319920', 'tblTempUsageDetail_20' ) start [2025-01-24 13:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319920', 'tblTempUsageDetail_20' ) end [2025-01-24 13:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319920', 'tblTempVendorCDR_20' ) start [2025-01-24 13:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319920', 'tblTempVendorCDR_20' ) end [2025-01-24 13:19:32] Production.INFO: ProcessCDR(1,14319920,1,1,2) [2025-01-24 13:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:19:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:19:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319920', 'tblTempUsageDetail_20' ) start [2025-01-24 13:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319920', 'tblTempUsageDetail_20' ) end [2025-01-24 13:19:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:19:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:19:38] Production.INFO: ==25715== Releasing lock... [2025-01-24 13:19:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:19:38] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:20:06 [end_date_ymd] => 2025-01-24 13:20:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:20:06' and `end` < '2025-01-24 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-24 13:20:27] Production.INFO: count ==5262 [2025-01-24 13:20:29] Production.ERROR: pbx CDR StartTime 2025-01-24 10:20:06 - End Time 2025-01-24 13:20:06 [2025-01-24 13:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319925', 'tblTempUsageDetail_20' ) start [2025-01-24 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319925', 'tblTempUsageDetail_20' ) end [2025-01-24 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319925', 'tblTempVendorCDR_20' ) start [2025-01-24 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319925', 'tblTempVendorCDR_20' ) end [2025-01-24 13:20:29] Production.INFO: ProcessCDR(1,14319925,1,1,2) [2025-01-24 13:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319925', 'tblTempUsageDetail_20' ) start [2025-01-24 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319925', 'tblTempUsageDetail_20' ) end [2025-01-24 13:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:20:34] Production.INFO: ==25829== Releasing lock... [2025-01-24 13:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:20:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:21:05 [end_date_ymd] => 2025-01-24 13:21:05 [RateCDR] => 1 ) [2025-01-24 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:21:05' and `end` < '2025-01-24 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:21:29] Production.INFO: count ==5258 [2025-01-24 13:21:31] Production.ERROR: pbx CDR StartTime 2025-01-24 10:21:05 - End Time 2025-01-24 13:21:05 [2025-01-24 13:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319931', 'tblTempUsageDetail_20' ) start [2025-01-24 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319931', 'tblTempUsageDetail_20' ) end [2025-01-24 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319931', 'tblTempVendorCDR_20' ) start [2025-01-24 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319931', 'tblTempVendorCDR_20' ) end [2025-01-24 13:21:31] Production.INFO: ProcessCDR(1,14319931,1,1,2) [2025-01-24 13:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319931', 'tblTempUsageDetail_20' ) start [2025-01-24 13:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319931', 'tblTempUsageDetail_20' ) end [2025-01-24 13:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:21:36] Production.INFO: ==25950== Releasing lock... [2025-01-24 13:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:21:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:22:05 [end_date_ymd] => 2025-01-24 13:22:05 [RateCDR] => 1 ) [2025-01-24 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:22:05' and `end` < '2025-01-24 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:22:26] Production.INFO: count ==5252 [2025-01-24 13:22:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:22:05 - End Time 2025-01-24 13:22:05 [2025-01-24 13:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319936', 'tblTempUsageDetail_20' ) start [2025-01-24 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319936', 'tblTempUsageDetail_20' ) end [2025-01-24 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319936', 'tblTempVendorCDR_20' ) start [2025-01-24 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319936', 'tblTempVendorCDR_20' ) end [2025-01-24 13:22:28] Production.INFO: ProcessCDR(1,14319936,1,1,2) [2025-01-24 13:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319936', 'tblTempUsageDetail_20' ) start [2025-01-24 13:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319936', 'tblTempUsageDetail_20' ) end [2025-01-24 13:22:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:22:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:22:33] Production.INFO: ==26068== Releasing lock... [2025-01-24 13:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:22:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:23:05 [end_date_ymd] => 2025-01-24 13:23:05 [RateCDR] => 1 ) [2025-01-24 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:23:05' and `end` < '2025-01-24 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:23:29] Production.INFO: count ==5265 [2025-01-24 13:23:31] Production.ERROR: pbx CDR StartTime 2025-01-24 10:23:05 - End Time 2025-01-24 13:23:05 [2025-01-24 13:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319941', 'tblTempUsageDetail_20' ) start [2025-01-24 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319941', 'tblTempUsageDetail_20' ) end [2025-01-24 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319941', 'tblTempVendorCDR_20' ) start [2025-01-24 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319941', 'tblTempVendorCDR_20' ) end [2025-01-24 13:23:31] Production.INFO: ProcessCDR(1,14319941,1,1,2) [2025-01-24 13:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319941', 'tblTempUsageDetail_20' ) start [2025-01-24 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319941', 'tblTempUsageDetail_20' ) end [2025-01-24 13:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:23:36] Production.INFO: ==26187== Releasing lock... [2025-01-24 13:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:23:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:24:05 [end_date_ymd] => 2025-01-24 13:24:05 [RateCDR] => 1 ) [2025-01-24 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:24:05' and `end` < '2025-01-24 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:24:29] Production.INFO: count ==5261 [2025-01-24 13:24:31] Production.ERROR: pbx CDR StartTime 2025-01-24 10:24:05 - End Time 2025-01-24 13:24:05 [2025-01-24 13:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319946', 'tblTempUsageDetail_20' ) start [2025-01-24 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319946', 'tblTempUsageDetail_20' ) end [2025-01-24 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319946', 'tblTempVendorCDR_20' ) start [2025-01-24 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319946', 'tblTempVendorCDR_20' ) end [2025-01-24 13:24:31] Production.INFO: ProcessCDR(1,14319946,1,1,2) [2025-01-24 13:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319946', 'tblTempUsageDetail_20' ) start [2025-01-24 13:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319946', 'tblTempUsageDetail_20' ) end [2025-01-24 13:24:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:24:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:24:36] Production.INFO: ==26301== Releasing lock... [2025-01-24 13:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:24:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:25:04 [end_date_ymd] => 2025-01-24 13:25:04 [RateCDR] => 1 ) [2025-01-24 13: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-24 10:25:04' and `end` < '2025-01-24 13: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-24 13:25:25] Production.INFO: count ==5256 [2025-01-24 13:25:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:25:04 - End Time 2025-01-24 13:25:04 [2025-01-24 13:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319951', 'tblTempUsageDetail_20' ) start [2025-01-24 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319951', 'tblTempUsageDetail_20' ) end [2025-01-24 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319951', 'tblTempVendorCDR_20' ) start [2025-01-24 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319951', 'tblTempVendorCDR_20' ) end [2025-01-24 13:25:28] Production.INFO: ProcessCDR(1,14319951,1,1,2) [2025-01-24 13:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319951', 'tblTempUsageDetail_20' ) start [2025-01-24 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319951', 'tblTempUsageDetail_20' ) end [2025-01-24 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:25:32] Production.INFO: ==26370== Releasing lock... [2025-01-24 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:25:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:26:06 [end_date_ymd] => 2025-01-24 13:26:06 [RateCDR] => 1 ) [2025-01-24 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:26:06' and `end` < '2025-01-24 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:26:23] Production.INFO: count ==5269 [2025-01-24 13:26:25] Production.ERROR: pbx CDR StartTime 2025-01-24 10:26:06 - End Time 2025-01-24 13:26:06 [2025-01-24 13:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319956', 'tblTempUsageDetail_20' ) start [2025-01-24 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319956', 'tblTempUsageDetail_20' ) end [2025-01-24 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319956', 'tblTempVendorCDR_20' ) start [2025-01-24 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319956', 'tblTempVendorCDR_20' ) end [2025-01-24 13:26:25] Production.INFO: ProcessCDR(1,14319956,1,1,2) [2025-01-24 13:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319956', 'tblTempUsageDetail_20' ) start [2025-01-24 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319956', 'tblTempUsageDetail_20' ) end [2025-01-24 13:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:26:30] Production.INFO: ==26441== Releasing lock... [2025-01-24 13:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:26:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:27:05 [end_date_ymd] => 2025-01-24 13:27:05 [RateCDR] => 1 ) [2025-01-24 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:27:05' and `end` < '2025-01-24 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:27:26] Production.INFO: count ==5289 [2025-01-24 13:27:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:27:05 - End Time 2025-01-24 13:27:05 [2025-01-24 13:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319961', 'tblTempUsageDetail_20' ) start [2025-01-24 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319961', 'tblTempUsageDetail_20' ) end [2025-01-24 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319961', 'tblTempVendorCDR_20' ) start [2025-01-24 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319961', 'tblTempVendorCDR_20' ) end [2025-01-24 13:27:28] Production.INFO: ProcessCDR(1,14319961,1,1,2) [2025-01-24 13:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319961', 'tblTempUsageDetail_20' ) start [2025-01-24 13:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319961', 'tblTempUsageDetail_20' ) end [2025-01-24 13:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:27:33] Production.INFO: ==26515== Releasing lock... [2025-01-24 13:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:27:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:28:05 [end_date_ymd] => 2025-01-24 13:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:28:05' and `end` < '2025-01-24 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-24 13:28:23] Production.INFO: count ==5293 [2025-01-24 13:28:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:28:05 - End Time 2025-01-24 13:28:05 [2025-01-24 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319966', 'tblTempUsageDetail_20' ) start [2025-01-24 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319966', 'tblTempUsageDetail_20' ) end [2025-01-24 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319966', 'tblTempVendorCDR_20' ) start [2025-01-24 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319966', 'tblTempVendorCDR_20' ) end [2025-01-24 13:28:26] Production.INFO: ProcessCDR(1,14319966,1,1,2) [2025-01-24 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319966', 'tblTempUsageDetail_20' ) start [2025-01-24 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319966', 'tblTempUsageDetail_20' ) end [2025-01-24 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:28:31] Production.INFO: ==26596== Releasing lock... [2025-01-24 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:28:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:29:05 [end_date_ymd] => 2025-01-24 13:29:05 [RateCDR] => 1 ) [2025-01-24 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:29:05' and `end` < '2025-01-24 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:29:22] Production.INFO: count ==5291 [2025-01-24 13:29:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:29:05 - End Time 2025-01-24 13:29:05 [2025-01-24 13:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319971', 'tblTempUsageDetail_20' ) start [2025-01-24 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319971', 'tblTempUsageDetail_20' ) end [2025-01-24 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319971', 'tblTempVendorCDR_20' ) start [2025-01-24 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319971', 'tblTempVendorCDR_20' ) end [2025-01-24 13:29:24] Production.INFO: ProcessCDR(1,14319971,1,1,2) [2025-01-24 13:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319971', 'tblTempUsageDetail_20' ) start [2025-01-24 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319971', 'tblTempUsageDetail_20' ) end [2025-01-24 13:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:29:29] Production.INFO: ==26673== Releasing lock... [2025-01-24 13:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:29:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:30:06 [end_date_ymd] => 2025-01-24 13:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:30:06' and `end` < '2025-01-24 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-24 13:30:28] Production.INFO: count ==5275 [2025-01-24 13:30:30] Production.ERROR: pbx CDR StartTime 2025-01-24 10:30:06 - End Time 2025-01-24 13:30:06 [2025-01-24 13:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319977', 'tblTempUsageDetail_20' ) start [2025-01-24 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319977', 'tblTempUsageDetail_20' ) end [2025-01-24 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319977', 'tblTempVendorCDR_20' ) start [2025-01-24 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319977', 'tblTempVendorCDR_20' ) end [2025-01-24 13:30:30] Production.INFO: ProcessCDR(1,14319977,1,1,2) [2025-01-24 13:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319977', 'tblTempUsageDetail_20' ) start [2025-01-24 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319977', 'tblTempUsageDetail_20' ) end [2025-01-24 13:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:30:35] Production.INFO: ==26749== Releasing lock... [2025-01-24 13:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:30:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:31:05 [end_date_ymd] => 2025-01-24 13:31:05 [RateCDR] => 1 ) [2025-01-24 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:31:05' and `end` < '2025-01-24 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:31:22] Production.INFO: count ==5309 [2025-01-24 13:31:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:31:05 - End Time 2025-01-24 13:31:05 [2025-01-24 13:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319982', 'tblTempUsageDetail_20' ) start [2025-01-24 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319982', 'tblTempUsageDetail_20' ) end [2025-01-24 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319982', 'tblTempVendorCDR_20' ) start [2025-01-24 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319982', 'tblTempVendorCDR_20' ) end [2025-01-24 13:31:24] Production.INFO: ProcessCDR(1,14319982,1,1,2) [2025-01-24 13:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319982', 'tblTempUsageDetail_20' ) start [2025-01-24 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319982', 'tblTempUsageDetail_20' ) end [2025-01-24 13:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:31:29] Production.INFO: ==26824== Releasing lock... [2025-01-24 13:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:31:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:32:05 [end_date_ymd] => 2025-01-24 13:32:05 [RateCDR] => 1 ) [2025-01-24 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:32:05' and `end` < '2025-01-24 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:32:22] Production.INFO: count ==5320 [2025-01-24 13:32:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:32:05 - End Time 2025-01-24 13:32:05 [2025-01-24 13:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319987', 'tblTempUsageDetail_20' ) start [2025-01-24 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319987', 'tblTempUsageDetail_20' ) end [2025-01-24 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319987', 'tblTempVendorCDR_20' ) start [2025-01-24 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319987', 'tblTempVendorCDR_20' ) end [2025-01-24 13:32:24] Production.INFO: ProcessCDR(1,14319987,1,1,2) [2025-01-24 13:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319987', 'tblTempUsageDetail_20' ) start [2025-01-24 13:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319987', 'tblTempUsageDetail_20' ) end [2025-01-24 13:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:32:30] Production.INFO: ==26936== Releasing lock... [2025-01-24 13:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:32:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:33:05 [end_date_ymd] => 2025-01-24 13:33:05 [RateCDR] => 1 ) [2025-01-24 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:33:05' and `end` < '2025-01-24 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:33:22] Production.INFO: count ==5331 [2025-01-24 13:33:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:33:05 - End Time 2025-01-24 13:33:05 [2025-01-24 13:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319992', 'tblTempUsageDetail_20' ) start [2025-01-24 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319992', 'tblTempUsageDetail_20' ) end [2025-01-24 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319992', 'tblTempVendorCDR_20' ) start [2025-01-24 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319992', 'tblTempVendorCDR_20' ) end [2025-01-24 13:33:24] Production.INFO: ProcessCDR(1,14319992,1,1,2) [2025-01-24 13:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319992', 'tblTempUsageDetail_20' ) start [2025-01-24 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319992', 'tblTempUsageDetail_20' ) end [2025-01-24 13:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:33:30] Production.INFO: ==27008== Releasing lock... [2025-01-24 13:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:33:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:34:06 [end_date_ymd] => 2025-01-24 13:34:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:34:06' and `end` < '2025-01-24 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-24 13:34:23] Production.INFO: count ==5339 [2025-01-24 13:34:25] Production.ERROR: pbx CDR StartTime 2025-01-24 10:34:06 - End Time 2025-01-24 13:34:06 [2025-01-24 13:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319997', 'tblTempUsageDetail_20' ) start [2025-01-24 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14319997', 'tblTempUsageDetail_20' ) end [2025-01-24 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319997', 'tblTempVendorCDR_20' ) start [2025-01-24 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14319997', 'tblTempVendorCDR_20' ) end [2025-01-24 13:34:25] Production.INFO: ProcessCDR(1,14319997,1,1,2) [2025-01-24 13:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14319997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14319997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14319997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14319997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319997', 'tblTempUsageDetail_20' ) start [2025-01-24 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14319997', 'tblTempUsageDetail_20' ) end [2025-01-24 13:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:34:30] Production.INFO: ==27092== Releasing lock... [2025-01-24 13:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:34:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:35:05 [end_date_ymd] => 2025-01-24 13:35:05 [RateCDR] => 1 ) [2025-01-24 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:35:05' and `end` < '2025-01-24 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:35:30] Production.INFO: count ==5345 [2025-01-24 13:35:32] Production.ERROR: pbx CDR StartTime 2025-01-24 10:35:05 - End Time 2025-01-24 13:35:05 [2025-01-24 13:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320002', 'tblTempUsageDetail_20' ) start [2025-01-24 13:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320002', 'tblTempUsageDetail_20' ) end [2025-01-24 13:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320002', 'tblTempVendorCDR_20' ) start [2025-01-24 13:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320002', 'tblTempVendorCDR_20' ) end [2025-01-24 13:35:33] Production.INFO: ProcessCDR(1,14320002,1,1,2) [2025-01-24 13:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320002', 'tblTempUsageDetail_20' ) start [2025-01-24 13:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320002', 'tblTempUsageDetail_20' ) end [2025-01-24 13:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:35:37] Production.INFO: ==27193== Releasing lock... [2025-01-24 13:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:35:37] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:36:05 [end_date_ymd] => 2025-01-24 13:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:36:05' and `end` < '2025-01-24 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-24 13:36:23] Production.INFO: count ==5358 [2025-01-24 13:36:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:36:05 - End Time 2025-01-24 13:36:05 [2025-01-24 13:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320007', 'tblTempUsageDetail_20' ) start [2025-01-24 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320007', 'tblTempUsageDetail_20' ) end [2025-01-24 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320007', 'tblTempVendorCDR_20' ) start [2025-01-24 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320007', 'tblTempVendorCDR_20' ) end [2025-01-24 13:36:26] Production.INFO: ProcessCDR(1,14320007,1,1,2) [2025-01-24 13:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320007', 'tblTempUsageDetail_20' ) start [2025-01-24 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320007', 'tblTempUsageDetail_20' ) end [2025-01-24 13:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:36:30] Production.INFO: ==27293== Releasing lock... [2025-01-24 13:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:36:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:37:05 [end_date_ymd] => 2025-01-24 13:37:05 [RateCDR] => 1 ) [2025-01-24 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:37:05' and `end` < '2025-01-24 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:37:26] Production.INFO: count ==5377 [2025-01-24 13:37:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:37:05 - End Time 2025-01-24 13:37:05 [2025-01-24 13:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320012', 'tblTempUsageDetail_20' ) start [2025-01-24 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320012', 'tblTempUsageDetail_20' ) end [2025-01-24 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320012', 'tblTempVendorCDR_20' ) start [2025-01-24 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320012', 'tblTempVendorCDR_20' ) end [2025-01-24 13:37:28] Production.INFO: ProcessCDR(1,14320012,1,1,2) [2025-01-24 13:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320012', 'tblTempUsageDetail_20' ) start [2025-01-24 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320012', 'tblTempUsageDetail_20' ) end [2025-01-24 13:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:37:33] Production.INFO: ==27393== Releasing lock... [2025-01-24 13:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:37:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:38:05 [end_date_ymd] => 2025-01-24 13:38:05 [RateCDR] => 1 ) [2025-01-24 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:38:05' and `end` < '2025-01-24 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:38:21] Production.INFO: count ==5385 [2025-01-24 13:38:23] Production.ERROR: pbx CDR StartTime 2025-01-24 10:38:05 - End Time 2025-01-24 13:38:05 [2025-01-24 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320017', 'tblTempUsageDetail_20' ) start [2025-01-24 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320017', 'tblTempUsageDetail_20' ) end [2025-01-24 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320017', 'tblTempVendorCDR_20' ) start [2025-01-24 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320017', 'tblTempVendorCDR_20' ) end [2025-01-24 13:38:23] Production.INFO: ProcessCDR(1,14320017,1,1,2) [2025-01-24 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320017', 'tblTempUsageDetail_20' ) start [2025-01-24 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320017', 'tblTempUsageDetail_20' ) end [2025-01-24 13:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:38:28] Production.INFO: ==27495== Releasing lock... [2025-01-24 13:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:38:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:39:05 [end_date_ymd] => 2025-01-24 13:39:05 [RateCDR] => 1 ) [2025-01-24 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:39:05' and `end` < '2025-01-24 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:39:20] Production.INFO: count ==5371 [2025-01-24 13:39:22] Production.ERROR: pbx CDR StartTime 2025-01-24 10:39:05 - End Time 2025-01-24 13:39:05 [2025-01-24 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320022', 'tblTempUsageDetail_20' ) start [2025-01-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320022', 'tblTempUsageDetail_20' ) end [2025-01-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320022', 'tblTempVendorCDR_20' ) start [2025-01-24 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320022', 'tblTempVendorCDR_20' ) end [2025-01-24 13:39:22] Production.INFO: ProcessCDR(1,14320022,1,1,2) [2025-01-24 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320022', 'tblTempUsageDetail_20' ) start [2025-01-24 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320022', 'tblTempUsageDetail_20' ) end [2025-01-24 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:39:27] Production.INFO: ==27595== Releasing lock... [2025-01-24 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:39:27] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:40:06 [end_date_ymd] => 2025-01-24 13:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:40:06' and `end` < '2025-01-24 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-24 13:40:26] Production.INFO: count ==5367 [2025-01-24 13:40:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:40:06 - End Time 2025-01-24 13:40:06 [2025-01-24 13:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320028', 'tblTempUsageDetail_20' ) start [2025-01-24 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320028', 'tblTempUsageDetail_20' ) end [2025-01-24 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320028', 'tblTempVendorCDR_20' ) start [2025-01-24 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320028', 'tblTempVendorCDR_20' ) end [2025-01-24 13:40:28] Production.INFO: ProcessCDR(1,14320028,1,1,2) [2025-01-24 13:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320028', 'tblTempUsageDetail_20' ) start [2025-01-24 13:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320028', 'tblTempUsageDetail_20' ) end [2025-01-24 13:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:40:33] Production.INFO: ==27697== Releasing lock... [2025-01-24 13:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:40:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:41:05 [end_date_ymd] => 2025-01-24 13:41:05 [RateCDR] => 1 ) [2025-01-24 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:41:05' and `end` < '2025-01-24 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:41:22] Production.INFO: count ==5354 [2025-01-24 13:41:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:41:05 - End Time 2025-01-24 13:41:05 [2025-01-24 13:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320033', 'tblTempUsageDetail_20' ) start [2025-01-24 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320033', 'tblTempUsageDetail_20' ) end [2025-01-24 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320033', 'tblTempVendorCDR_20' ) start [2025-01-24 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320033', 'tblTempVendorCDR_20' ) end [2025-01-24 13:41:24] Production.INFO: ProcessCDR(1,14320033,1,1,2) [2025-01-24 13:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320033', 'tblTempUsageDetail_20' ) start [2025-01-24 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320033', 'tblTempUsageDetail_20' ) end [2025-01-24 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:41:28] Production.INFO: ==27800== Releasing lock... [2025-01-24 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:41:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:42:05 [end_date_ymd] => 2025-01-24 13:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:42:05' and `end` < '2025-01-24 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-24 13:42:22] Production.INFO: count ==5342 [2025-01-24 13:42:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:42:05 - End Time 2025-01-24 13:42:05 [2025-01-24 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320038', 'tblTempUsageDetail_20' ) start [2025-01-24 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320038', 'tblTempUsageDetail_20' ) end [2025-01-24 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320038', 'tblTempVendorCDR_20' ) start [2025-01-24 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320038', 'tblTempVendorCDR_20' ) end [2025-01-24 13:42:24] Production.INFO: ProcessCDR(1,14320038,1,1,2) [2025-01-24 13:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320038', 'tblTempUsageDetail_20' ) start [2025-01-24 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320038', 'tblTempUsageDetail_20' ) end [2025-01-24 13:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:42:29] Production.INFO: ==27899== Releasing lock... [2025-01-24 13:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:42:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:43:06 [end_date_ymd] => 2025-01-24 13:43:06 [RateCDR] => 1 ) [2025-01-24 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-24 10:43:06' and `end` < '2025-01-24 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-24 13:43:24] Production.INFO: count ==5329 [2025-01-24 13:43:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:43:06 - End Time 2025-01-24 13:43:06 [2025-01-24 13:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320043', 'tblTempUsageDetail_20' ) start [2025-01-24 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320043', 'tblTempUsageDetail_20' ) end [2025-01-24 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320043', 'tblTempVendorCDR_20' ) start [2025-01-24 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320043', 'tblTempVendorCDR_20' ) end [2025-01-24 13:43:26] Production.INFO: ProcessCDR(1,14320043,1,1,2) [2025-01-24 13:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320043', 'tblTempUsageDetail_20' ) start [2025-01-24 13:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320043', 'tblTempUsageDetail_20' ) end [2025-01-24 13:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:43:31] Production.INFO: ==27999== Releasing lock... [2025-01-24 13:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:43:31] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:44:05 [end_date_ymd] => 2025-01-24 13:44:05 [RateCDR] => 1 ) [2025-01-24 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:44:05' and `end` < '2025-01-24 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:44:22] Production.INFO: count ==5324 [2025-01-24 13:44:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:44:05 - End Time 2025-01-24 13:44:05 [2025-01-24 13:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320048', 'tblTempUsageDetail_20' ) start [2025-01-24 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320048', 'tblTempUsageDetail_20' ) end [2025-01-24 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320048', 'tblTempVendorCDR_20' ) start [2025-01-24 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320048', 'tblTempVendorCDR_20' ) end [2025-01-24 13:44:24] Production.INFO: ProcessCDR(1,14320048,1,1,2) [2025-01-24 13:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320048', 'tblTempUsageDetail_20' ) start [2025-01-24 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320048', 'tblTempUsageDetail_20' ) end [2025-01-24 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:44:29] Production.INFO: ==28103== Releasing lock... [2025-01-24 13:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:44:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:45:05 [end_date_ymd] => 2025-01-24 13:45:05 [RateCDR] => 1 ) [2025-01-24 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:45:05' and `end` < '2025-01-24 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:45:34] Production.INFO: count ==5319 [2025-01-24 13:45:36] Production.ERROR: pbx CDR StartTime 2025-01-24 10:45:05 - End Time 2025-01-24 13:45:05 [2025-01-24 13:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320053', 'tblTempUsageDetail_20' ) start [2025-01-24 13:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320053', 'tblTempUsageDetail_20' ) end [2025-01-24 13:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320053', 'tblTempVendorCDR_20' ) start [2025-01-24 13:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320053', 'tblTempVendorCDR_20' ) end [2025-01-24 13:45:37] Production.INFO: ProcessCDR(1,14320053,1,1,2) [2025-01-24 13:45:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:45:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:45:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:45:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320053', 'tblTempUsageDetail_20' ) start [2025-01-24 13:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320053', 'tblTempUsageDetail_20' ) end [2025-01-24 13:45:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:45:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:45:41] Production.INFO: ==28209== Releasing lock... [2025-01-24 13:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:45:41] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:46:05 [end_date_ymd] => 2025-01-24 13:46:05 [RateCDR] => 1 ) [2025-01-24 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:46:05' and `end` < '2025-01-24 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:46:25] Production.INFO: count ==5316 [2025-01-24 13:46:27] Production.ERROR: pbx CDR StartTime 2025-01-24 10:46:05 - End Time 2025-01-24 13:46:05 [2025-01-24 13:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320058', 'tblTempUsageDetail_20' ) start [2025-01-24 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320058', 'tblTempUsageDetail_20' ) end [2025-01-24 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320058', 'tblTempVendorCDR_20' ) start [2025-01-24 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320058', 'tblTempVendorCDR_20' ) end [2025-01-24 13:46:27] Production.INFO: ProcessCDR(1,14320058,1,1,2) [2025-01-24 13:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320058', 'tblTempUsageDetail_20' ) start [2025-01-24 13:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320058', 'tblTempUsageDetail_20' ) end [2025-01-24 13:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:46:30] Production.INFO: ==28309== Releasing lock... [2025-01-24 13:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:46:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:47:05 [end_date_ymd] => 2025-01-24 13:47:05 [RateCDR] => 1 ) [2025-01-24 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:47:05' and `end` < '2025-01-24 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:47:25] Production.INFO: count ==5311 [2025-01-24 13:47:27] Production.ERROR: pbx CDR StartTime 2025-01-24 10:47:05 - End Time 2025-01-24 13:47:05 [2025-01-24 13:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320063', 'tblTempUsageDetail_20' ) start [2025-01-24 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320063', 'tblTempUsageDetail_20' ) end [2025-01-24 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320063', 'tblTempVendorCDR_20' ) start [2025-01-24 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320063', 'tblTempVendorCDR_20' ) end [2025-01-24 13:47:27] Production.INFO: ProcessCDR(1,14320063,1,1,2) [2025-01-24 13:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320063', 'tblTempUsageDetail_20' ) start [2025-01-24 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320063', 'tblTempUsageDetail_20' ) end [2025-01-24 13:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:47:32] Production.INFO: ==28413== Releasing lock... [2025-01-24 13:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:47:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:48:05 [end_date_ymd] => 2025-01-24 13:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:48:05' and `end` < '2025-01-24 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-24 13:48:24] Production.INFO: count ==5312 [2025-01-24 13:48:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:48:05 - End Time 2025-01-24 13:48:05 [2025-01-24 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320068', 'tblTempUsageDetail_20' ) start [2025-01-24 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320068', 'tblTempUsageDetail_20' ) end [2025-01-24 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320068', 'tblTempVendorCDR_20' ) start [2025-01-24 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320068', 'tblTempVendorCDR_20' ) end [2025-01-24 13:48:27] Production.INFO: ProcessCDR(1,14320068,1,1,2) [2025-01-24 13:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320068', 'tblTempUsageDetail_20' ) start [2025-01-24 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320068', 'tblTempUsageDetail_20' ) end [2025-01-24 13:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:48:32] Production.INFO: ==28550== Releasing lock... [2025-01-24 13:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:48:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:49:05 [end_date_ymd] => 2025-01-24 13:49:05 [RateCDR] => 1 ) [2025-01-24 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:49:05' and `end` < '2025-01-24 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:49:22] Production.INFO: count ==5300 [2025-01-24 13:49:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:49:05 - End Time 2025-01-24 13:49:05 [2025-01-24 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320073', 'tblTempUsageDetail_20' ) start [2025-01-24 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320073', 'tblTempUsageDetail_20' ) end [2025-01-24 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320073', 'tblTempVendorCDR_20' ) start [2025-01-24 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320073', 'tblTempVendorCDR_20' ) end [2025-01-24 13:49:24] Production.INFO: ProcessCDR(1,14320073,1,1,2) [2025-01-24 13:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320073', 'tblTempUsageDetail_20' ) start [2025-01-24 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320073', 'tblTempUsageDetail_20' ) end [2025-01-24 13:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:49:29] Production.INFO: ==28652== Releasing lock... [2025-01-24 13:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:49:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:50:07 [end_date_ymd] => 2025-01-24 13:50:07 [RateCDR] => 1 ) [2025-01-24 13: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-24 10:50:07' and `end` < '2025-01-24 13: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-24 13:50:27] Production.INFO: count ==5318 [2025-01-24 13:50:29] Production.ERROR: pbx CDR StartTime 2025-01-24 10:50:07 - End Time 2025-01-24 13:50:07 [2025-01-24 13:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320079', 'tblTempUsageDetail_20' ) start [2025-01-24 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320079', 'tblTempUsageDetail_20' ) end [2025-01-24 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320079', 'tblTempVendorCDR_20' ) start [2025-01-24 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320079', 'tblTempVendorCDR_20' ) end [2025-01-24 13:50:29] Production.INFO: ProcessCDR(1,14320079,1,1,2) [2025-01-24 13:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320079', 'tblTempUsageDetail_20' ) start [2025-01-24 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320079', 'tblTempUsageDetail_20' ) end [2025-01-24 13:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:50:34] Production.INFO: ==28753== Releasing lock... [2025-01-24 13:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:50:34] Production.INFO: 68 MB #Memory Used# [2025-01-24 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:51:05 [end_date_ymd] => 2025-01-24 13:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:51:05' and `end` < '2025-01-24 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-24 13:51:19] Production.INFO: count ==5294 [2025-01-24 13:51:22] Production.ERROR: pbx CDR StartTime 2025-01-24 10:51:05 - End Time 2025-01-24 13:51:05 [2025-01-24 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320084', 'tblTempUsageDetail_20' ) start [2025-01-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320084', 'tblTempUsageDetail_20' ) end [2025-01-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320084', 'tblTempVendorCDR_20' ) start [2025-01-24 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320084', 'tblTempVendorCDR_20' ) end [2025-01-24 13:51:22] Production.INFO: ProcessCDR(1,14320084,1,1,2) [2025-01-24 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320084', 'tblTempUsageDetail_20' ) start [2025-01-24 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320084', 'tblTempUsageDetail_20' ) end [2025-01-24 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:51:25] Production.INFO: ==28853== Releasing lock... [2025-01-24 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:51:25] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:52:05 [end_date_ymd] => 2025-01-24 13:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:52:05' and `end` < '2025-01-24 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-24 13:52:33] Production.INFO: count ==5292 [2025-01-24 13:52:35] Production.ERROR: pbx CDR StartTime 2025-01-24 10:52:05 - End Time 2025-01-24 13:52:05 [2025-01-24 13:52:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320089', 'tblTempUsageDetail_20' ) start [2025-01-24 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320089', 'tblTempUsageDetail_20' ) end [2025-01-24 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320089', 'tblTempVendorCDR_20' ) start [2025-01-24 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320089', 'tblTempVendorCDR_20' ) end [2025-01-24 13:52:35] Production.INFO: ProcessCDR(1,14320089,1,1,2) [2025-01-24 13:52:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:52:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:52:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:52:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:52:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320089', 'tblTempUsageDetail_20' ) start [2025-01-24 13:52:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320089', 'tblTempUsageDetail_20' ) end [2025-01-24 13:52:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:52:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:52:40] Production.INFO: ==28954== Releasing lock... [2025-01-24 13:52:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:52:40] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:53:04 [end_date_ymd] => 2025-01-24 13:53:04 [RateCDR] => 1 ) [2025-01-24 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:53:04' and `end` < '2025-01-24 13: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-24 13:53:22] Production.INFO: count ==5284 [2025-01-24 13:53:24] Production.ERROR: pbx CDR StartTime 2025-01-24 10:53:04 - End Time 2025-01-24 13:53:04 [2025-01-24 13:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320094', 'tblTempUsageDetail_20' ) start [2025-01-24 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320094', 'tblTempUsageDetail_20' ) end [2025-01-24 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320094', 'tblTempVendorCDR_20' ) start [2025-01-24 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320094', 'tblTempVendorCDR_20' ) end [2025-01-24 13:53:24] Production.INFO: ProcessCDR(1,14320094,1,1,2) [2025-01-24 13:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320094', 'tblTempUsageDetail_20' ) start [2025-01-24 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320094', 'tblTempUsageDetail_20' ) end [2025-01-24 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:53:28] Production.INFO: ==29030== Releasing lock... [2025-01-24 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:53:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:54:06 [end_date_ymd] => 2025-01-24 13:54:06 [RateCDR] => 1 ) [2025-01-24 13: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-24 10:54:06' and `end` < '2025-01-24 13: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-24 13:54:24] Production.INFO: count ==5276 [2025-01-24 13:54:26] Production.ERROR: pbx CDR StartTime 2025-01-24 10:54:06 - End Time 2025-01-24 13:54:06 [2025-01-24 13:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320099', 'tblTempUsageDetail_20' ) start [2025-01-24 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320099', 'tblTempUsageDetail_20' ) end [2025-01-24 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320099', 'tblTempVendorCDR_20' ) start [2025-01-24 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320099', 'tblTempVendorCDR_20' ) end [2025-01-24 13:54:26] Production.INFO: ProcessCDR(1,14320099,1,1,2) [2025-01-24 13:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320099', 'tblTempUsageDetail_20' ) start [2025-01-24 13:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320099', 'tblTempUsageDetail_20' ) end [2025-01-24 13:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:54:31] Production.INFO: ==29103== Releasing lock... [2025-01-24 13:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:54:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:55:05 [end_date_ymd] => 2025-01-24 13:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:55:05' and `end` < '2025-01-24 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-24 13:55:23] Production.INFO: count ==5267 [2025-01-24 13:55:25] Production.ERROR: pbx CDR StartTime 2025-01-24 10:55:05 - End Time 2025-01-24 13:55:05 [2025-01-24 13:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320104', 'tblTempUsageDetail_20' ) start [2025-01-24 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320104', 'tblTempUsageDetail_20' ) end [2025-01-24 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320104', 'tblTempVendorCDR_20' ) start [2025-01-24 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320104', 'tblTempVendorCDR_20' ) end [2025-01-24 13:55:26] Production.INFO: ProcessCDR(1,14320104,1,1,2) [2025-01-24 13:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320104', 'tblTempUsageDetail_20' ) start [2025-01-24 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320104', 'tblTempUsageDetail_20' ) end [2025-01-24 13:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:55:30] Production.INFO: ==29178== Releasing lock... [2025-01-24 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:55:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:56:05 [end_date_ymd] => 2025-01-24 13:56:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:56:05' and `end` < '2025-01-24 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-24 13:56:28] Production.INFO: count ==5248 [2025-01-24 13:56:30] Production.ERROR: pbx CDR StartTime 2025-01-24 10:56:05 - End Time 2025-01-24 13:56:05 [2025-01-24 13:56:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320109', 'tblTempUsageDetail_20' ) start [2025-01-24 13:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320109', 'tblTempUsageDetail_20' ) end [2025-01-24 13:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320109', 'tblTempVendorCDR_20' ) start [2025-01-24 13:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320109', 'tblTempVendorCDR_20' ) end [2025-01-24 13:56:30] Production.INFO: ProcessCDR(1,14320109,1,1,2) [2025-01-24 13:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:56:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:56:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:56:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320109', 'tblTempUsageDetail_20' ) start [2025-01-24 13:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320109', 'tblTempUsageDetail_20' ) end [2025-01-24 13:56:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:56:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:56:35] Production.INFO: ==29253== Releasing lock... [2025-01-24 13:56:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:56:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:57:05 [end_date_ymd] => 2025-01-24 13:57:05 [RateCDR] => 1 ) [2025-01-24 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:57:05' and `end` < '2025-01-24 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:57:23] Production.INFO: count ==5243 [2025-01-24 13:57:25] Production.ERROR: pbx CDR StartTime 2025-01-24 10:57:05 - End Time 2025-01-24 13:57:05 [2025-01-24 13:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320114', 'tblTempUsageDetail_20' ) start [2025-01-24 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320114', 'tblTempUsageDetail_20' ) end [2025-01-24 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320114', 'tblTempVendorCDR_20' ) start [2025-01-24 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320114', 'tblTempVendorCDR_20' ) end [2025-01-24 13:57:25] Production.INFO: ProcessCDR(1,14320114,1,1,2) [2025-01-24 13:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320114', 'tblTempUsageDetail_20' ) start [2025-01-24 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320114', 'tblTempUsageDetail_20' ) end [2025-01-24 13:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:57:30] Production.INFO: ==29325== Releasing lock... [2025-01-24 13:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:57:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:58:05 [end_date_ymd] => 2025-01-24 13:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 10:58:05' and `end` < '2025-01-24 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-24 13:58:20] Production.INFO: count ==5227 [2025-01-24 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-24 10:58:05 - End Time 2025-01-24 13:58:05 [2025-01-24 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320119', 'tblTempUsageDetail_20' ) start [2025-01-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320119', 'tblTempUsageDetail_20' ) end [2025-01-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320119', 'tblTempVendorCDR_20' ) start [2025-01-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320119', 'tblTempVendorCDR_20' ) end [2025-01-24 13:58:22] Production.INFO: ProcessCDR(1,14320119,1,1,2) [2025-01-24 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320119', 'tblTempUsageDetail_20' ) start [2025-01-24 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320119', 'tblTempUsageDetail_20' ) end [2025-01-24 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:58:27] Production.INFO: ==29401== Releasing lock... [2025-01-24 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:58:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 10:59:05 [end_date_ymd] => 2025-01-24 13:59:05 [RateCDR] => 1 ) [2025-01-24 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 10:59:05' and `end` < '2025-01-24 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 13:59:26] Production.INFO: count ==5225 [2025-01-24 13:59:28] Production.ERROR: pbx CDR StartTime 2025-01-24 10:59:05 - End Time 2025-01-24 13:59:05 [2025-01-24 13:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320124', 'tblTempUsageDetail_20' ) start [2025-01-24 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320124', 'tblTempUsageDetail_20' ) end [2025-01-24 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320124', 'tblTempVendorCDR_20' ) start [2025-01-24 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320124', 'tblTempVendorCDR_20' ) end [2025-01-24 13:59:28] Production.INFO: ProcessCDR(1,14320124,1,1,2) [2025-01-24 13:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 13:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 13:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320124', 'tblTempUsageDetail_20' ) start [2025-01-24 13:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320124', 'tblTempUsageDetail_20' ) end [2025-01-24 13:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 13:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 13:59:33] Production.INFO: ==29475== Releasing lock... [2025-01-24 13:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 13:59:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:00:07 [end_date_ymd] => 2025-01-24 14:00:07 [RateCDR] => 1 ) [2025-01-24 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-24 11:00:07' and `end` < '2025-01-24 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-24 14:00:28] Production.INFO: count ==5236 [2025-01-24 14:00:30] Production.ERROR: pbx CDR StartTime 2025-01-24 11:00:07 - End Time 2025-01-24 14:00:07 [2025-01-24 14:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320130', 'tblTempUsageDetail_20' ) start [2025-01-24 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320130', 'tblTempUsageDetail_20' ) end [2025-01-24 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320130', 'tblTempVendorCDR_20' ) start [2025-01-24 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320130', 'tblTempVendorCDR_20' ) end [2025-01-24 14:00:30] Production.INFO: ProcessCDR(1,14320130,1,1,2) [2025-01-24 14:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320130', 'tblTempUsageDetail_20' ) start [2025-01-24 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320130', 'tblTempUsageDetail_20' ) end [2025-01-24 14:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:00:35] Production.INFO: ==29555== Releasing lock... [2025-01-24 14:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:00:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:01:04 [end_date_ymd] => 2025-01-24 14:01:04 [RateCDR] => 1 ) [2025-01-24 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-24 11:01:04' and `end` < '2025-01-24 14:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:01:24] Production.INFO: count ==5210 [2025-01-24 14:01:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:01:04 - End Time 2025-01-24 14:01:04 [2025-01-24 14:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320135', 'tblTempUsageDetail_20' ) start [2025-01-24 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320135', 'tblTempUsageDetail_20' ) end [2025-01-24 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320135', 'tblTempVendorCDR_20' ) start [2025-01-24 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320135', 'tblTempVendorCDR_20' ) end [2025-01-24 14:01:26] Production.INFO: ProcessCDR(1,14320135,1,1,2) [2025-01-24 14:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320135', 'tblTempUsageDetail_20' ) start [2025-01-24 14:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320135', 'tblTempUsageDetail_20' ) end [2025-01-24 14:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:01:31] Production.INFO: ==29641== Releasing lock... [2025-01-24 14:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:01:31] Production.INFO: 67 MB #Memory Used# [2025-01-24 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:02:06 [end_date_ymd] => 2025-01-24 14:02:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:02:06' and `end` < '2025-01-24 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-24 14:02:23] Production.INFO: count ==5231 [2025-01-24 14:02:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:02:06 - End Time 2025-01-24 14:02:06 [2025-01-24 14:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320140', 'tblTempUsageDetail_20' ) start [2025-01-24 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320140', 'tblTempUsageDetail_20' ) end [2025-01-24 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320140', 'tblTempVendorCDR_20' ) start [2025-01-24 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320140', 'tblTempVendorCDR_20' ) end [2025-01-24 14:02:26] Production.INFO: ProcessCDR(1,14320140,1,1,2) [2025-01-24 14:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320140', 'tblTempUsageDetail_20' ) start [2025-01-24 14:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320140', 'tblTempUsageDetail_20' ) end [2025-01-24 14:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:02:31] Production.INFO: ==29714== Releasing lock... [2025-01-24 14:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:02:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:03:05 [end_date_ymd] => 2025-01-24 14:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:03:05' and `end` < '2025-01-24 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-24 14:03:27] Production.INFO: count ==5236 [2025-01-24 14:03:29] Production.ERROR: pbx CDR StartTime 2025-01-24 11:03:05 - End Time 2025-01-24 14:03:05 [2025-01-24 14:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320145', 'tblTempUsageDetail_20' ) start [2025-01-24 14:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320145', 'tblTempUsageDetail_20' ) end [2025-01-24 14:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320145', 'tblTempVendorCDR_20' ) start [2025-01-24 14:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320145', 'tblTempVendorCDR_20' ) end [2025-01-24 14:03:30] Production.INFO: ProcessCDR(1,14320145,1,1,2) [2025-01-24 14:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320145', 'tblTempUsageDetail_20' ) start [2025-01-24 14:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320145', 'tblTempUsageDetail_20' ) end [2025-01-24 14:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:03:34] Production.INFO: ==29822== Releasing lock... [2025-01-24 14:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:03:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:04:06 [end_date_ymd] => 2025-01-24 14:04:06 [RateCDR] => 1 ) [2025-01-24 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:04:06' and `end` < '2025-01-24 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:04:27] Production.INFO: count ==5275 [2025-01-24 14:04:29] Production.ERROR: pbx CDR StartTime 2025-01-24 11:04:06 - End Time 2025-01-24 14:04:06 [2025-01-24 14:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320150', 'tblTempUsageDetail_20' ) start [2025-01-24 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320150', 'tblTempUsageDetail_20' ) end [2025-01-24 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320150', 'tblTempVendorCDR_20' ) start [2025-01-24 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320150', 'tblTempVendorCDR_20' ) end [2025-01-24 14:04:29] Production.INFO: ProcessCDR(1,14320150,1,1,2) [2025-01-24 14:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320150', 'tblTempUsageDetail_20' ) start [2025-01-24 14:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320150', 'tblTempUsageDetail_20' ) end [2025-01-24 14:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:04:34] Production.INFO: ==29893== Releasing lock... [2025-01-24 14:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:04:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:05:05 [end_date_ymd] => 2025-01-24 14:05:05 [RateCDR] => 1 ) [2025-01-24 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:05:05' and `end` < '2025-01-24 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:05:31] Production.INFO: count ==5285 [2025-01-24 14:05:33] Production.ERROR: pbx CDR StartTime 2025-01-24 11:05:05 - End Time 2025-01-24 14:05:05 [2025-01-24 14:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320155', 'tblTempUsageDetail_20' ) start [2025-01-24 14:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320155', 'tblTempUsageDetail_20' ) end [2025-01-24 14:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320155', 'tblTempVendorCDR_20' ) start [2025-01-24 14:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320155', 'tblTempVendorCDR_20' ) end [2025-01-24 14:05:34] Production.INFO: ProcessCDR(1,14320155,1,1,2) [2025-01-24 14:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320155', 'tblTempUsageDetail_20' ) start [2025-01-24 14:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320155', 'tblTempUsageDetail_20' ) end [2025-01-24 14:05:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:05:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:05:39] Production.INFO: ==29963== Releasing lock... [2025-01-24 14:05:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:05:39] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:06:06 [end_date_ymd] => 2025-01-24 14:06:06 [RateCDR] => 1 ) [2025-01-24 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:06:06' and `end` < '2025-01-24 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:06:26] Production.INFO: count ==5280 [2025-01-24 14:06:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:06:06 - End Time 2025-01-24 14:06:06 [2025-01-24 14:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320160', 'tblTempUsageDetail_20' ) start [2025-01-24 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320160', 'tblTempUsageDetail_20' ) end [2025-01-24 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320160', 'tblTempVendorCDR_20' ) start [2025-01-24 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320160', 'tblTempVendorCDR_20' ) end [2025-01-24 14:06:29] Production.INFO: ProcessCDR(1,14320160,1,1,2) [2025-01-24 14:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320160', 'tblTempUsageDetail_20' ) start [2025-01-24 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320160', 'tblTempUsageDetail_20' ) end [2025-01-24 14:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:06:34] Production.INFO: ==30034== Releasing lock... [2025-01-24 14:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:06:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:07:05 [end_date_ymd] => 2025-01-24 14:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:07:05' and `end` < '2025-01-24 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-24 14:07:21] Production.INFO: count ==5293 [2025-01-24 14:07:23] Production.ERROR: pbx CDR StartTime 2025-01-24 11:07:05 - End Time 2025-01-24 14:07:05 [2025-01-24 14:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320165', 'tblTempUsageDetail_20' ) start [2025-01-24 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320165', 'tblTempUsageDetail_20' ) end [2025-01-24 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320165', 'tblTempVendorCDR_20' ) start [2025-01-24 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320165', 'tblTempVendorCDR_20' ) end [2025-01-24 14:07:23] Production.INFO: ProcessCDR(1,14320165,1,1,2) [2025-01-24 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320165', 'tblTempUsageDetail_20' ) start [2025-01-24 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320165', 'tblTempUsageDetail_20' ) end [2025-01-24 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:07:28] Production.INFO: ==30113== Releasing lock... [2025-01-24 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:07:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:08:05 [end_date_ymd] => 2025-01-24 14:08:05 [RateCDR] => 1 ) [2025-01-24 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:08:05' and `end` < '2025-01-24 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:08:22] Production.INFO: count ==5320 [2025-01-24 14:08:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:08:05 - End Time 2025-01-24 14:08:05 [2025-01-24 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320170', 'tblTempUsageDetail_20' ) start [2025-01-24 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320170', 'tblTempUsageDetail_20' ) end [2025-01-24 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320170', 'tblTempVendorCDR_20' ) start [2025-01-24 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320170', 'tblTempVendorCDR_20' ) end [2025-01-24 14:08:24] Production.INFO: ProcessCDR(1,14320170,1,1,2) [2025-01-24 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320170', 'tblTempUsageDetail_20' ) start [2025-01-24 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320170', 'tblTempUsageDetail_20' ) end [2025-01-24 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:08:30] Production.INFO: ==30190== Releasing lock... [2025-01-24 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:08:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:09:05 [end_date_ymd] => 2025-01-24 14:09:05 [RateCDR] => 1 ) [2025-01-24 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:09:05' and `end` < '2025-01-24 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:09:24] Production.INFO: count ==5315 [2025-01-24 14:09:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:09:05 - End Time 2025-01-24 14:09:05 [2025-01-24 14:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320175', 'tblTempUsageDetail_20' ) start [2025-01-24 14:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320175', 'tblTempUsageDetail_20' ) end [2025-01-24 14:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320175', 'tblTempVendorCDR_20' ) start [2025-01-24 14:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320175', 'tblTempVendorCDR_20' ) end [2025-01-24 14:09:27] Production.INFO: ProcessCDR(1,14320175,1,1,2) [2025-01-24 14:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320175', 'tblTempUsageDetail_20' ) start [2025-01-24 14:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320175', 'tblTempUsageDetail_20' ) end [2025-01-24 14:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:09:32] Production.INFO: ==30262== Releasing lock... [2025-01-24 14:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:09:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:10:06 [end_date_ymd] => 2025-01-24 14:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:10:06' and `end` < '2025-01-24 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-24 14:10:28] Production.INFO: count ==5315 [2025-01-24 14:10:31] Production.ERROR: pbx CDR StartTime 2025-01-24 11:10:06 - End Time 2025-01-24 14:10:06 [2025-01-24 14:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320181', 'tblTempUsageDetail_20' ) start [2025-01-24 14:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320181', 'tblTempUsageDetail_20' ) end [2025-01-24 14:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320181', 'tblTempVendorCDR_20' ) start [2025-01-24 14:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320181', 'tblTempVendorCDR_20' ) end [2025-01-24 14:10:31] Production.INFO: ProcessCDR(1,14320181,1,1,2) [2025-01-24 14:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320181', 'tblTempUsageDetail_20' ) start [2025-01-24 14:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320181', 'tblTempUsageDetail_20' ) end [2025-01-24 14:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:10:35] Production.INFO: ==30336== Releasing lock... [2025-01-24 14:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:10:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:11:05 [end_date_ymd] => 2025-01-24 14:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:11:05' and `end` < '2025-01-24 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-24 14:11:28] Production.INFO: count ==5308 [2025-01-24 14:11:30] Production.ERROR: pbx CDR StartTime 2025-01-24 11:11:05 - End Time 2025-01-24 14:11:05 [2025-01-24 14:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320186', 'tblTempUsageDetail_20' ) start [2025-01-24 14:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320186', 'tblTempUsageDetail_20' ) end [2025-01-24 14:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320186', 'tblTempVendorCDR_20' ) start [2025-01-24 14:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320186', 'tblTempVendorCDR_20' ) end [2025-01-24 14:11:31] Production.INFO: ProcessCDR(1,14320186,1,1,2) [2025-01-24 14:11:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320186', 'tblTempUsageDetail_20' ) start [2025-01-24 14:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320186', 'tblTempUsageDetail_20' ) end [2025-01-24 14:11:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:11:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:11:36] Production.INFO: ==30409== Releasing lock... [2025-01-24 14:11:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:11:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:12:06 [end_date_ymd] => 2025-01-24 14:12:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:12:06' and `end` < '2025-01-24 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-24 14:12:24] Production.INFO: count ==5306 [2025-01-24 14:12:27] Production.ERROR: pbx CDR StartTime 2025-01-24 11:12:06 - End Time 2025-01-24 14:12:06 [2025-01-24 14:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320191', 'tblTempUsageDetail_20' ) start [2025-01-24 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320191', 'tblTempUsageDetail_20' ) end [2025-01-24 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320191', 'tblTempVendorCDR_20' ) start [2025-01-24 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320191', 'tblTempVendorCDR_20' ) end [2025-01-24 14:12:27] Production.INFO: ProcessCDR(1,14320191,1,1,2) [2025-01-24 14:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320191', 'tblTempUsageDetail_20' ) start [2025-01-24 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320191', 'tblTempUsageDetail_20' ) end [2025-01-24 14:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:12:32] Production.INFO: ==30483== Releasing lock... [2025-01-24 14:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:12:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:13:05 [end_date_ymd] => 2025-01-24 14:13:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:13:05' and `end` < '2025-01-24 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-24 14:13:22] Production.INFO: count ==5306 [2025-01-24 14:13:25] Production.ERROR: pbx CDR StartTime 2025-01-24 11:13:05 - End Time 2025-01-24 14:13:05 [2025-01-24 14:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320196', 'tblTempUsageDetail_20' ) start [2025-01-24 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320196', 'tblTempUsageDetail_20' ) end [2025-01-24 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320196', 'tblTempVendorCDR_20' ) start [2025-01-24 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320196', 'tblTempVendorCDR_20' ) end [2025-01-24 14:13:25] Production.INFO: ProcessCDR(1,14320196,1,1,2) [2025-01-24 14:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320196', 'tblTempUsageDetail_20' ) start [2025-01-24 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320196', 'tblTempUsageDetail_20' ) end [2025-01-24 14:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:13:30] Production.INFO: ==30555== Releasing lock... [2025-01-24 14:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:13:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:14:06 [end_date_ymd] => 2025-01-24 14:14:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:14:06' and `end` < '2025-01-24 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-24 14:14:22] Production.INFO: count ==5301 [2025-01-24 14:14:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:14:06 - End Time 2025-01-24 14:14:06 [2025-01-24 14:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320201', 'tblTempUsageDetail_20' ) start [2025-01-24 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320201', 'tblTempUsageDetail_20' ) end [2025-01-24 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320201', 'tblTempVendorCDR_20' ) start [2025-01-24 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320201', 'tblTempVendorCDR_20' ) end [2025-01-24 14:14:24] Production.INFO: ProcessCDR(1,14320201,1,1,2) [2025-01-24 14:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320201', 'tblTempUsageDetail_20' ) start [2025-01-24 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320201', 'tblTempUsageDetail_20' ) end [2025-01-24 14:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:14:29] Production.INFO: ==30630== Releasing lock... [2025-01-24 14:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:14:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:15:05 [end_date_ymd] => 2025-01-24 14:15:05 [RateCDR] => 1 ) [2025-01-24 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:15:05' and `end` < '2025-01-24 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:15:29] Production.INFO: count ==5317 [2025-01-24 14:15:32] Production.ERROR: pbx CDR StartTime 2025-01-24 11:15:05 - End Time 2025-01-24 14:15:05 [2025-01-24 14:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320206', 'tblTempUsageDetail_20' ) start [2025-01-24 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320206', 'tblTempUsageDetail_20' ) end [2025-01-24 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320206', 'tblTempVendorCDR_20' ) start [2025-01-24 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320206', 'tblTempVendorCDR_20' ) end [2025-01-24 14:15:32] Production.INFO: ProcessCDR(1,14320206,1,1,2) [2025-01-24 14:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320206', 'tblTempUsageDetail_20' ) start [2025-01-24 14:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320206', 'tblTempUsageDetail_20' ) end [2025-01-24 14:15:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:15:37] Production.INFO: ==30701== Releasing lock... [2025-01-24 14:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:15:37] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:16:05 [end_date_ymd] => 2025-01-24 14:16:05 [RateCDR] => 1 ) [2025-01-24 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:16:05' and `end` < '2025-01-24 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:16:24] Production.INFO: count ==5312 [2025-01-24 14:16:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:16:05 - End Time 2025-01-24 14:16:05 [2025-01-24 14:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320211', 'tblTempUsageDetail_20' ) start [2025-01-24 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320211', 'tblTempUsageDetail_20' ) end [2025-01-24 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320211', 'tblTempVendorCDR_20' ) start [2025-01-24 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320211', 'tblTempVendorCDR_20' ) end [2025-01-24 14:16:26] Production.INFO: ProcessCDR(1,14320211,1,1,2) [2025-01-24 14:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320211', 'tblTempUsageDetail_20' ) start [2025-01-24 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320211', 'tblTempUsageDetail_20' ) end [2025-01-24 14:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:16:31] Production.INFO: ==30780== Releasing lock... [2025-01-24 14:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:16:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:17:05 [end_date_ymd] => 2025-01-24 14:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:17:05' and `end` < '2025-01-24 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-24 14:17:22] Production.INFO: count ==5305 [2025-01-24 14:17:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:17:05 - End Time 2025-01-24 14:17:05 [2025-01-24 14:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320216', 'tblTempUsageDetail_20' ) start [2025-01-24 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320216', 'tblTempUsageDetail_20' ) end [2025-01-24 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320216', 'tblTempVendorCDR_20' ) start [2025-01-24 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320216', 'tblTempVendorCDR_20' ) end [2025-01-24 14:17:24] Production.INFO: ProcessCDR(1,14320216,1,1,2) [2025-01-24 14:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320216', 'tblTempUsageDetail_20' ) start [2025-01-24 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320216', 'tblTempUsageDetail_20' ) end [2025-01-24 14:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:17:29] Production.INFO: ==30852== Releasing lock... [2025-01-24 14:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:17:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:18:05 [end_date_ymd] => 2025-01-24 14:18:05 [RateCDR] => 1 ) [2025-01-24 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:18:05' and `end` < '2025-01-24 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:18:22] Production.INFO: count ==5312 [2025-01-24 14:18:25] Production.ERROR: pbx CDR StartTime 2025-01-24 11:18:05 - End Time 2025-01-24 14:18:05 [2025-01-24 14:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320221', 'tblTempUsageDetail_20' ) start [2025-01-24 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320221', 'tblTempUsageDetail_20' ) end [2025-01-24 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320221', 'tblTempVendorCDR_20' ) start [2025-01-24 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320221', 'tblTempVendorCDR_20' ) end [2025-01-24 14:18:25] Production.INFO: ProcessCDR(1,14320221,1,1,2) [2025-01-24 14:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320221', 'tblTempUsageDetail_20' ) start [2025-01-24 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320221', 'tblTempUsageDetail_20' ) end [2025-01-24 14:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:18:29] Production.INFO: ==30965== Releasing lock... [2025-01-24 14:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:18:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:19:05 [end_date_ymd] => 2025-01-24 14:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:19:05' and `end` < '2025-01-24 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-24 14:19:30] Production.INFO: count ==5330 [2025-01-24 14:19:32] Production.ERROR: pbx CDR StartTime 2025-01-24 11:19:05 - End Time 2025-01-24 14:19:05 [2025-01-24 14:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320226', 'tblTempUsageDetail_20' ) start [2025-01-24 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320226', 'tblTempUsageDetail_20' ) end [2025-01-24 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320226', 'tblTempVendorCDR_20' ) start [2025-01-24 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320226', 'tblTempVendorCDR_20' ) end [2025-01-24 14:19:32] Production.INFO: ProcessCDR(1,14320226,1,1,2) [2025-01-24 14:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:19:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:19:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320226', 'tblTempUsageDetail_20' ) start [2025-01-24 14:19:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320226', 'tblTempUsageDetail_20' ) end [2025-01-24 14:19:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:19:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:19:38] Production.INFO: ==31037== Releasing lock... [2025-01-24 14:19:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:19:38] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:20:06 [end_date_ymd] => 2025-01-24 14:20:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:20:06' and `end` < '2025-01-24 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-24 14:20:30] Production.INFO: count ==5322 [2025-01-24 14:20:32] Production.ERROR: pbx CDR StartTime 2025-01-24 11:20:06 - End Time 2025-01-24 14:20:06 [2025-01-24 14:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320232', 'tblTempUsageDetail_20' ) start [2025-01-24 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320232', 'tblTempUsageDetail_20' ) end [2025-01-24 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320232', 'tblTempVendorCDR_20' ) start [2025-01-24 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320232', 'tblTempVendorCDR_20' ) end [2025-01-24 14:20:32] Production.INFO: ProcessCDR(1,14320232,1,1,2) [2025-01-24 14:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320232', 'tblTempUsageDetail_20' ) start [2025-01-24 14:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320232', 'tblTempUsageDetail_20' ) end [2025-01-24 14:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:20:37] Production.INFO: ==31113== Releasing lock... [2025-01-24 14:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:20:37] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:21:05 [end_date_ymd] => 2025-01-24 14:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:21:05' and `end` < '2025-01-24 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-24 14:21:22] Production.INFO: count ==5309 [2025-01-24 14:21:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:21:05 - End Time 2025-01-24 14:21:05 [2025-01-24 14:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320237', 'tblTempUsageDetail_20' ) start [2025-01-24 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320237', 'tblTempUsageDetail_20' ) end [2025-01-24 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320237', 'tblTempVendorCDR_20' ) start [2025-01-24 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320237', 'tblTempVendorCDR_20' ) end [2025-01-24 14:21:24] Production.INFO: ProcessCDR(1,14320237,1,1,2) [2025-01-24 14:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320237', 'tblTempUsageDetail_20' ) start [2025-01-24 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320237', 'tblTempUsageDetail_20' ) end [2025-01-24 14:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:21:29] Production.INFO: ==31188== Releasing lock... [2025-01-24 14:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:21:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:22:05 [end_date_ymd] => 2025-01-24 14:22:05 [RateCDR] => 1 ) [2025-01-24 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:22:05' and `end` < '2025-01-24 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:22:20] Production.INFO: count ==5327 [2025-01-24 14:22:23] Production.ERROR: pbx CDR StartTime 2025-01-24 11:22:05 - End Time 2025-01-24 14:22:05 [2025-01-24 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320242', 'tblTempUsageDetail_20' ) start [2025-01-24 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320242', 'tblTempUsageDetail_20' ) end [2025-01-24 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320242', 'tblTempVendorCDR_20' ) start [2025-01-24 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320242', 'tblTempVendorCDR_20' ) end [2025-01-24 14:22:23] Production.INFO: ProcessCDR(1,14320242,1,1,2) [2025-01-24 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320242', 'tblTempUsageDetail_20' ) start [2025-01-24 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320242', 'tblTempUsageDetail_20' ) end [2025-01-24 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:22:28] Production.INFO: ==31260== Releasing lock... [2025-01-24 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:22:28] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:23:05 [end_date_ymd] => 2025-01-24 14:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:23:05' and `end` < '2025-01-24 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-24 14:23:26] Production.INFO: count ==5319 [2025-01-24 14:23:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:23:05 - End Time 2025-01-24 14:23:05 [2025-01-24 14:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320247', 'tblTempUsageDetail_20' ) start [2025-01-24 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320247', 'tblTempUsageDetail_20' ) end [2025-01-24 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320247', 'tblTempVendorCDR_20' ) start [2025-01-24 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320247', 'tblTempVendorCDR_20' ) end [2025-01-24 14:23:28] Production.INFO: ProcessCDR(1,14320247,1,1,2) [2025-01-24 14:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320247', 'tblTempUsageDetail_20' ) start [2025-01-24 14:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320247', 'tblTempUsageDetail_20' ) end [2025-01-24 14:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:23:33] Production.INFO: ==31335== Releasing lock... [2025-01-24 14:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:23:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:24:05 [end_date_ymd] => 2025-01-24 14:24:05 [RateCDR] => 1 ) [2025-01-24 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:24:05' and `end` < '2025-01-24 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:24:24] Production.INFO: count ==5323 [2025-01-24 14:24:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:24:05 - End Time 2025-01-24 14:24:05 [2025-01-24 14:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320252', 'tblTempUsageDetail_20' ) start [2025-01-24 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320252', 'tblTempUsageDetail_20' ) end [2025-01-24 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320252', 'tblTempVendorCDR_20' ) start [2025-01-24 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320252', 'tblTempVendorCDR_20' ) end [2025-01-24 14:24:26] Production.INFO: ProcessCDR(1,14320252,1,1,2) [2025-01-24 14:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320252', 'tblTempUsageDetail_20' ) start [2025-01-24 14:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320252', 'tblTempUsageDetail_20' ) end [2025-01-24 14:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:24:31] Production.INFO: ==31408== Releasing lock... [2025-01-24 14:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:24:31] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:25:05 [end_date_ymd] => 2025-01-24 14:25:05 [RateCDR] => 1 ) [2025-01-24 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:25:05' and `end` < '2025-01-24 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:25:31] Production.INFO: count ==5329 [2025-01-24 14:25:33] Production.ERROR: pbx CDR StartTime 2025-01-24 11:25:05 - End Time 2025-01-24 14:25:05 [2025-01-24 14:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320257', 'tblTempUsageDetail_20' ) start [2025-01-24 14:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320257', 'tblTempUsageDetail_20' ) end [2025-01-24 14:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320257', 'tblTempVendorCDR_20' ) start [2025-01-24 14:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320257', 'tblTempVendorCDR_20' ) end [2025-01-24 14:25:33] Production.INFO: ProcessCDR(1,14320257,1,1,2) [2025-01-24 14:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320257', 'tblTempUsageDetail_20' ) start [2025-01-24 14:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320257', 'tblTempUsageDetail_20' ) end [2025-01-24 14:25:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:25:38] Production.INFO: ==31482== Releasing lock... [2025-01-24 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:25:38] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:26:05 [end_date_ymd] => 2025-01-24 14:26:05 [RateCDR] => 1 ) [2025-01-24 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:26:05' and `end` < '2025-01-24 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:26:23] Production.INFO: count ==5317 [2025-01-24 14:26:25] Production.ERROR: pbx CDR StartTime 2025-01-24 11:26:05 - End Time 2025-01-24 14:26:05 [2025-01-24 14:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320262', 'tblTempUsageDetail_20' ) start [2025-01-24 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320262', 'tblTempUsageDetail_20' ) end [2025-01-24 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320262', 'tblTempVendorCDR_20' ) start [2025-01-24 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320262', 'tblTempVendorCDR_20' ) end [2025-01-24 14:26:25] Production.INFO: ProcessCDR(1,14320262,1,1,2) [2025-01-24 14:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320262', 'tblTempUsageDetail_20' ) start [2025-01-24 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320262', 'tblTempUsageDetail_20' ) end [2025-01-24 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:26:28] Production.INFO: ==31565== Releasing lock... [2025-01-24 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:26:28] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:27:05 [end_date_ymd] => 2025-01-24 14:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:27:05' and `end` < '2025-01-24 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-24 14:27:19] Production.INFO: count ==5313 [2025-01-24 14:27:21] Production.ERROR: pbx CDR StartTime 2025-01-24 11:27:05 - End Time 2025-01-24 14:27:05 [2025-01-24 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320267', 'tblTempUsageDetail_20' ) start [2025-01-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320267', 'tblTempUsageDetail_20' ) end [2025-01-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320267', 'tblTempVendorCDR_20' ) start [2025-01-24 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320267', 'tblTempVendorCDR_20' ) end [2025-01-24 14:27:21] Production.INFO: ProcessCDR(1,14320267,1,1,2) [2025-01-24 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320267', 'tblTempUsageDetail_20' ) start [2025-01-24 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320267', 'tblTempUsageDetail_20' ) end [2025-01-24 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:27:26] Production.INFO: ==31638== Releasing lock... [2025-01-24 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:27:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:28:05 [end_date_ymd] => 2025-01-24 14:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:28:05' and `end` < '2025-01-24 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-24 14:28:24] Production.INFO: count ==5319 [2025-01-24 14:28:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:28:05 - End Time 2025-01-24 14:28:05 [2025-01-24 14:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320272', 'tblTempUsageDetail_20' ) start [2025-01-24 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320272', 'tblTempUsageDetail_20' ) end [2025-01-24 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320272', 'tblTempVendorCDR_20' ) start [2025-01-24 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320272', 'tblTempVendorCDR_20' ) end [2025-01-24 14:28:26] Production.INFO: ProcessCDR(1,14320272,1,1,2) [2025-01-24 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320272', 'tblTempUsageDetail_20' ) start [2025-01-24 14:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320272', 'tblTempUsageDetail_20' ) end [2025-01-24 14:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:28:31] Production.INFO: ==31712== Releasing lock... [2025-01-24 14:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:28:31] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:29:05 [end_date_ymd] => 2025-01-24 14:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:29:05' and `end` < '2025-01-24 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-24 14:29:22] Production.INFO: count ==5327 [2025-01-24 14:29:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:29:05 - End Time 2025-01-24 14:29:05 [2025-01-24 14:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320277', 'tblTempUsageDetail_20' ) start [2025-01-24 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320277', 'tblTempUsageDetail_20' ) end [2025-01-24 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320277', 'tblTempVendorCDR_20' ) start [2025-01-24 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320277', 'tblTempVendorCDR_20' ) end [2025-01-24 14:29:24] Production.INFO: ProcessCDR(1,14320277,1,1,2) [2025-01-24 14:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320277', 'tblTempUsageDetail_20' ) start [2025-01-24 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320277', 'tblTempUsageDetail_20' ) end [2025-01-24 14:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:29:29] Production.INFO: ==31790== Releasing lock... [2025-01-24 14:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:29:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:30:06 [end_date_ymd] => 2025-01-24 14:30:06 [RateCDR] => 1 ) [2025-01-24 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:30:06' and `end` < '2025-01-24 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:30:25] Production.INFO: count ==5316 [2025-01-24 14:30:27] Production.ERROR: pbx CDR StartTime 2025-01-24 11:30:06 - End Time 2025-01-24 14:30:06 [2025-01-24 14:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320282', 'tblTempUsageDetail_20' ) start [2025-01-24 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320282', 'tblTempUsageDetail_20' ) end [2025-01-24 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320282', 'tblTempVendorCDR_20' ) start [2025-01-24 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320282', 'tblTempVendorCDR_20' ) end [2025-01-24 14:30:27] Production.INFO: ProcessCDR(1,14320282,1,1,2) [2025-01-24 14:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320282', 'tblTempUsageDetail_20' ) start [2025-01-24 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320282', 'tblTempUsageDetail_20' ) end [2025-01-24 14:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:30:32] Production.INFO: ==31872== Releasing lock... [2025-01-24 14:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:30:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:31:05 [end_date_ymd] => 2025-01-24 14:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:31:05' and `end` < '2025-01-24 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-24 14:31:29] Production.INFO: count ==5340 [2025-01-24 14:31:31] Production.ERROR: pbx CDR StartTime 2025-01-24 11:31:05 - End Time 2025-01-24 14:31:05 [2025-01-24 14:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320288', 'tblTempUsageDetail_20' ) start [2025-01-24 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320288', 'tblTempUsageDetail_20' ) end [2025-01-24 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320288', 'tblTempVendorCDR_20' ) start [2025-01-24 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320288', 'tblTempVendorCDR_20' ) end [2025-01-24 14:31:31] Production.INFO: ProcessCDR(1,14320288,1,1,2) [2025-01-24 14:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320288', 'tblTempUsageDetail_20' ) start [2025-01-24 14:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320288', 'tblTempUsageDetail_20' ) end [2025-01-24 14:31:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:31:37] Production.INFO: ==31951== Releasing lock... [2025-01-24 14:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:31:37] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:32:05 [end_date_ymd] => 2025-01-24 14:32:05 [RateCDR] => 1 ) [2025-01-24 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:32:05' and `end` < '2025-01-24 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:32:23] Production.INFO: count ==5341 [2025-01-24 14:32:25] Production.ERROR: pbx CDR StartTime 2025-01-24 11:32:05 - End Time 2025-01-24 14:32:05 [2025-01-24 14:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320293', 'tblTempUsageDetail_20' ) start [2025-01-24 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320293', 'tblTempUsageDetail_20' ) end [2025-01-24 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320293', 'tblTempVendorCDR_20' ) start [2025-01-24 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320293', 'tblTempVendorCDR_20' ) end [2025-01-24 14:32:26] Production.INFO: ProcessCDR(1,14320293,1,1,2) [2025-01-24 14:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320293', 'tblTempUsageDetail_20' ) start [2025-01-24 14:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320293', 'tblTempUsageDetail_20' ) end [2025-01-24 14:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:32:31] Production.INFO: ==32040== Releasing lock... [2025-01-24 14:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:32:31] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:33:04 [end_date_ymd] => 2025-01-24 14:33:04 [RateCDR] => 1 ) [2025-01-24 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:33:04' and `end` < '2025-01-24 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:33:23] Production.INFO: count ==5313 [2025-01-24 14:33:25] Production.ERROR: pbx CDR StartTime 2025-01-24 11:33:04 - End Time 2025-01-24 14:33:04 [2025-01-24 14:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320298', 'tblTempUsageDetail_20' ) start [2025-01-24 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320298', 'tblTempUsageDetail_20' ) end [2025-01-24 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320298', 'tblTempVendorCDR_20' ) start [2025-01-24 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320298', 'tblTempVendorCDR_20' ) end [2025-01-24 14:33:25] Production.INFO: ProcessCDR(1,14320298,1,1,2) [2025-01-24 14:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320298', 'tblTempUsageDetail_20' ) start [2025-01-24 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320298', 'tblTempUsageDetail_20' ) end [2025-01-24 14:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:33:30] Production.INFO: ==32121== Releasing lock... [2025-01-24 14:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:33:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:34:05 [end_date_ymd] => 2025-01-24 14:34:05 [RateCDR] => 1 ) [2025-01-24 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:34:05' and `end` < '2025-01-24 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:34:24] Production.INFO: count ==5314 [2025-01-24 14:34:26] Production.ERROR: pbx CDR StartTime 2025-01-24 11:34:05 - End Time 2025-01-24 14:34:05 [2025-01-24 14:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320303', 'tblTempUsageDetail_20' ) start [2025-01-24 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320303', 'tblTempUsageDetail_20' ) end [2025-01-24 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320303', 'tblTempVendorCDR_20' ) start [2025-01-24 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320303', 'tblTempVendorCDR_20' ) end [2025-01-24 14:34:26] Production.INFO: ProcessCDR(1,14320303,1,1,2) [2025-01-24 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320303', 'tblTempUsageDetail_20' ) start [2025-01-24 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320303', 'tblTempUsageDetail_20' ) end [2025-01-24 14:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:34:31] Production.INFO: ==32243== Releasing lock... [2025-01-24 14:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:34:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:35:05 [end_date_ymd] => 2025-01-24 14:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:35:05' and `end` < '2025-01-24 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-24 14:35:26] Production.INFO: count ==5300 [2025-01-24 14:35:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:35:05 - End Time 2025-01-24 14:35:05 [2025-01-24 14:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320308', 'tblTempUsageDetail_20' ) start [2025-01-24 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320308', 'tblTempUsageDetail_20' ) end [2025-01-24 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320308', 'tblTempVendorCDR_20' ) start [2025-01-24 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320308', 'tblTempVendorCDR_20' ) end [2025-01-24 14:35:28] Production.INFO: ProcessCDR(1,14320308,1,1,2) [2025-01-24 14:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320308', 'tblTempUsageDetail_20' ) start [2025-01-24 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320308', 'tblTempUsageDetail_20' ) end [2025-01-24 14:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:35:32] Production.INFO: ==32339== Releasing lock... [2025-01-24 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:35:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:36:06 [end_date_ymd] => 2025-01-24 14:36:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:36:06' and `end` < '2025-01-24 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-24 14:36:26] Production.INFO: count ==5307 [2025-01-24 14:36:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:36:06 - End Time 2025-01-24 14:36:06 [2025-01-24 14:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320312', 'tblTempUsageDetail_20' ) start [2025-01-24 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320312', 'tblTempUsageDetail_20' ) end [2025-01-24 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320312', 'tblTempVendorCDR_20' ) start [2025-01-24 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320312', 'tblTempVendorCDR_20' ) end [2025-01-24 14:36:28] Production.INFO: ProcessCDR(1,14320312,1,1,2) [2025-01-24 14:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320312', 'tblTempUsageDetail_20' ) start [2025-01-24 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320312', 'tblTempUsageDetail_20' ) end [2025-01-24 14:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:36:33] Production.INFO: ==32418== Releasing lock... [2025-01-24 14:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:36:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:37:05 [end_date_ymd] => 2025-01-24 14:37:05 [RateCDR] => 1 ) [2025-01-24 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:37:05' and `end` < '2025-01-24 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:37:33] Production.INFO: count ==5313 [2025-01-24 14:37:36] Production.ERROR: pbx CDR StartTime 2025-01-24 11:37:05 - End Time 2025-01-24 14:37:05 [2025-01-24 14:37:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320318', 'tblTempUsageDetail_20' ) start [2025-01-24 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320318', 'tblTempUsageDetail_20' ) end [2025-01-24 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320318', 'tblTempVendorCDR_20' ) start [2025-01-24 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320318', 'tblTempVendorCDR_20' ) end [2025-01-24 14:37:36] Production.INFO: ProcessCDR(1,14320318,1,1,2) [2025-01-24 14:37:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:37:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:37:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:37:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:37:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320318', 'tblTempUsageDetail_20' ) start [2025-01-24 14:37:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320318', 'tblTempUsageDetail_20' ) end [2025-01-24 14:37:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:37:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:37:41] Production.INFO: ==32496== Releasing lock... [2025-01-24 14:37:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:37:41] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:38:05 [end_date_ymd] => 2025-01-24 14:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:38:05' and `end` < '2025-01-24 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-24 14:38:34] Production.INFO: count ==5315 [2025-01-24 14:38:36] Production.ERROR: pbx CDR StartTime 2025-01-24 11:38:05 - End Time 2025-01-24 14:38:05 [2025-01-24 14:38:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:38:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320323', 'tblTempUsageDetail_20' ) start [2025-01-24 14:38:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320323', 'tblTempUsageDetail_20' ) end [2025-01-24 14:38:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320323', 'tblTempVendorCDR_20' ) start [2025-01-24 14:38:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320323', 'tblTempVendorCDR_20' ) end [2025-01-24 14:38:37] Production.INFO: ProcessCDR(1,14320323,1,1,2) [2025-01-24 14:38:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:38:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:38:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:38:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320323', 'tblTempUsageDetail_20' ) start [2025-01-24 14:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320323', 'tblTempUsageDetail_20' ) end [2025-01-24 14:38:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:38:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:38:42] Production.INFO: ==32585== Releasing lock... [2025-01-24 14:38:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:38:42] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:39:04 [end_date_ymd] => 2025-01-24 14:39:04 [RateCDR] => 1 ) [2025-01-24 14: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-24 11:39:04' and `end` < '2025-01-24 14: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-24 14:39:27] Production.INFO: count ==5300 [2025-01-24 14:39:29] Production.ERROR: pbx CDR StartTime 2025-01-24 11:39:04 - End Time 2025-01-24 14:39:04 [2025-01-24 14:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320325', 'tblTempUsageDetail_20' ) start [2025-01-24 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320325', 'tblTempUsageDetail_20' ) end [2025-01-24 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320325', 'tblTempVendorCDR_20' ) start [2025-01-24 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320325', 'tblTempVendorCDR_20' ) end [2025-01-24 14:39:29] Production.INFO: ProcessCDR(1,14320325,1,1,2) [2025-01-24 14:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320325', 'tblTempUsageDetail_20' ) start [2025-01-24 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320325', 'tblTempUsageDetail_20' ) end [2025-01-24 14:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:39:33] Production.INFO: ==32672== Releasing lock... [2025-01-24 14:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:39:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:40:06 [end_date_ymd] => 2025-01-24 14:40:06 [RateCDR] => 1 ) [2025-01-24 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:40:06' and `end` < '2025-01-24 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:40:27] Production.INFO: count ==5307 [2025-01-24 14:40:29] Production.ERROR: pbx CDR StartTime 2025-01-24 11:40:06 - End Time 2025-01-24 14:40:06 [2025-01-24 14:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320334', 'tblTempUsageDetail_20' ) start [2025-01-24 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320334', 'tblTempUsageDetail_20' ) end [2025-01-24 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320334', 'tblTempVendorCDR_20' ) start [2025-01-24 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320334', 'tblTempVendorCDR_20' ) end [2025-01-24 14:40:29] Production.INFO: ProcessCDR(1,14320334,1,1,2) [2025-01-24 14:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320334', 'tblTempUsageDetail_20' ) start [2025-01-24 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320334', 'tblTempUsageDetail_20' ) end [2025-01-24 14:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:40:34] Production.INFO: ==317== Releasing lock... [2025-01-24 14:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:40:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:41:05 [end_date_ymd] => 2025-01-24 14:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:41:05' and `end` < '2025-01-24 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-24 14:41:29] Production.INFO: count ==5308 [2025-01-24 14:41:31] Production.ERROR: pbx CDR StartTime 2025-01-24 11:41:05 - End Time 2025-01-24 14:41:05 [2025-01-24 14:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320339', 'tblTempUsageDetail_20' ) start [2025-01-24 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320339', 'tblTempUsageDetail_20' ) end [2025-01-24 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320339', 'tblTempVendorCDR_20' ) start [2025-01-24 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320339', 'tblTempVendorCDR_20' ) end [2025-01-24 14:41:31] Production.INFO: ProcessCDR(1,14320339,1,1,2) [2025-01-24 14:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320339', 'tblTempUsageDetail_20' ) start [2025-01-24 14:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320339', 'tblTempUsageDetail_20' ) end [2025-01-24 14:41:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:41:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:41:36] Production.INFO: ==432== Releasing lock... [2025-01-24 14:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:41:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:42:05 [end_date_ymd] => 2025-01-24 14:42:05 [RateCDR] => 1 ) [2025-01-24 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:42:05' and `end` < '2025-01-24 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:42:22] Production.INFO: count ==5300 [2025-01-24 14:42:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:42:05 - End Time 2025-01-24 14:42:05 [2025-01-24 14:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320344', 'tblTempUsageDetail_20' ) start [2025-01-24 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320344', 'tblTempUsageDetail_20' ) end [2025-01-24 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320344', 'tblTempVendorCDR_20' ) start [2025-01-24 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320344', 'tblTempVendorCDR_20' ) end [2025-01-24 14:42:24] Production.INFO: ProcessCDR(1,14320344,1,1,2) [2025-01-24 14:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320344', 'tblTempUsageDetail_20' ) start [2025-01-24 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320344', 'tblTempUsageDetail_20' ) end [2025-01-24 14:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:42:29] Production.INFO: ==535== Releasing lock... [2025-01-24 14:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:42:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:43:05 [end_date_ymd] => 2025-01-24 14:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:43:05' and `end` < '2025-01-24 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-24 14:43:28] Production.INFO: count ==5299 [2025-01-24 14:43:30] Production.ERROR: pbx CDR StartTime 2025-01-24 11:43:05 - End Time 2025-01-24 14:43:05 [2025-01-24 14:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320349', 'tblTempUsageDetail_20' ) start [2025-01-24 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320349', 'tblTempUsageDetail_20' ) end [2025-01-24 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320349', 'tblTempVendorCDR_20' ) start [2025-01-24 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320349', 'tblTempVendorCDR_20' ) end [2025-01-24 14:43:30] Production.INFO: ProcessCDR(1,14320349,1,1,2) [2025-01-24 14:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320349', 'tblTempUsageDetail_20' ) start [2025-01-24 14:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320349', 'tblTempUsageDetail_20' ) end [2025-01-24 14:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:43:35] Production.INFO: ==630== Releasing lock... [2025-01-24 14:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:43:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:44:06 [end_date_ymd] => 2025-01-24 14:44:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:44:06' and `end` < '2025-01-24 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-24 14:44:26] Production.INFO: count ==5315 [2025-01-24 14:44:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:44:06 - End Time 2025-01-24 14:44:06 [2025-01-24 14:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320354', 'tblTempUsageDetail_20' ) start [2025-01-24 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320354', 'tblTempUsageDetail_20' ) end [2025-01-24 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320354', 'tblTempVendorCDR_20' ) start [2025-01-24 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320354', 'tblTempVendorCDR_20' ) end [2025-01-24 14:44:28] Production.INFO: ProcessCDR(1,14320354,1,1,2) [2025-01-24 14:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320354', 'tblTempUsageDetail_20' ) start [2025-01-24 14:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320354', 'tblTempUsageDetail_20' ) end [2025-01-24 14:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:44:34] Production.INFO: ==754== Releasing lock... [2025-01-24 14:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:44:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:45:05 [end_date_ymd] => 2025-01-24 14:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:45:05' and `end` < '2025-01-24 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-24 14:45:26] Production.INFO: count ==5319 [2025-01-24 14:45:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:45:05 - End Time 2025-01-24 14:45:05 [2025-01-24 14:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320359', 'tblTempUsageDetail_20' ) start [2025-01-24 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320359', 'tblTempUsageDetail_20' ) end [2025-01-24 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320359', 'tblTempVendorCDR_20' ) start [2025-01-24 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320359', 'tblTempVendorCDR_20' ) end [2025-01-24 14:45:28] Production.INFO: ProcessCDR(1,14320359,1,1,2) [2025-01-24 14:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320359', 'tblTempUsageDetail_20' ) start [2025-01-24 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320359', 'tblTempUsageDetail_20' ) end [2025-01-24 14:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:45:33] Production.INFO: ==857== Releasing lock... [2025-01-24 14:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:45:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:46:06 [end_date_ymd] => 2025-01-24 14:46:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:46:06' and `end` < '2025-01-24 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-24 14:46:21] Production.INFO: count ==5312 [2025-01-24 14:46:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:46:06 - End Time 2025-01-24 14:46:06 [2025-01-24 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320364', 'tblTempUsageDetail_20' ) start [2025-01-24 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320364', 'tblTempUsageDetail_20' ) end [2025-01-24 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320364', 'tblTempVendorCDR_20' ) start [2025-01-24 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320364', 'tblTempVendorCDR_20' ) end [2025-01-24 14:46:24] Production.INFO: ProcessCDR(1,14320364,1,1,2) [2025-01-24 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320364', 'tblTempUsageDetail_20' ) start [2025-01-24 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320364', 'tblTempUsageDetail_20' ) end [2025-01-24 14:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:46:29] Production.INFO: ==954== Releasing lock... [2025-01-24 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:46:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:47:05 [end_date_ymd] => 2025-01-24 14:47:05 [RateCDR] => 1 ) [2025-01-24 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:47:05' and `end` < '2025-01-24 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:47:25] Production.INFO: count ==5322 [2025-01-24 14:47:28] Production.ERROR: pbx CDR StartTime 2025-01-24 11:47:05 - End Time 2025-01-24 14:47:05 [2025-01-24 14:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320369', 'tblTempUsageDetail_20' ) start [2025-01-24 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320369', 'tblTempUsageDetail_20' ) end [2025-01-24 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320369', 'tblTempVendorCDR_20' ) start [2025-01-24 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320369', 'tblTempVendorCDR_20' ) end [2025-01-24 14:47:28] Production.INFO: ProcessCDR(1,14320369,1,1,2) [2025-01-24 14:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320369', 'tblTempUsageDetail_20' ) start [2025-01-24 14:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320369', 'tblTempUsageDetail_20' ) end [2025-01-24 14:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:47:33] Production.INFO: ==1040== Releasing lock... [2025-01-24 14:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:47:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:48:05 [end_date_ymd] => 2025-01-24 14:48:05 [RateCDR] => 1 ) [2025-01-24 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:48:05' and `end` < '2025-01-24 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:48:22] Production.INFO: count ==5313 [2025-01-24 14:48:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:48:05 - End Time 2025-01-24 14:48:05 [2025-01-24 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320374', 'tblTempUsageDetail_20' ) start [2025-01-24 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320374', 'tblTempUsageDetail_20' ) end [2025-01-24 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320374', 'tblTempVendorCDR_20' ) start [2025-01-24 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320374', 'tblTempVendorCDR_20' ) end [2025-01-24 14:48:24] Production.INFO: ProcessCDR(1,14320374,1,1,2) [2025-01-24 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320374', 'tblTempUsageDetail_20' ) start [2025-01-24 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320374', 'tblTempUsageDetail_20' ) end [2025-01-24 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:48:28] Production.INFO: ==1133== Releasing lock... [2025-01-24 14:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:48:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:49:05 [end_date_ymd] => 2025-01-24 14:49:05 [RateCDR] => 1 ) [2025-01-24 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:49:05' and `end` < '2025-01-24 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:49:29] Production.INFO: count ==5328 [2025-01-24 14:49:32] Production.ERROR: pbx CDR StartTime 2025-01-24 11:49:05 - End Time 2025-01-24 14:49:05 [2025-01-24 14:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320379', 'tblTempUsageDetail_20' ) start [2025-01-24 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320379', 'tblTempUsageDetail_20' ) end [2025-01-24 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320379', 'tblTempVendorCDR_20' ) start [2025-01-24 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320379', 'tblTempVendorCDR_20' ) end [2025-01-24 14:49:32] Production.INFO: ProcessCDR(1,14320379,1,1,2) [2025-01-24 14:49:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320379', 'tblTempUsageDetail_20' ) start [2025-01-24 14:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320379', 'tblTempUsageDetail_20' ) end [2025-01-24 14:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:49:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:49:37] Production.INFO: ==1266== Releasing lock... [2025-01-24 14:49:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:49:37] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:50:07 [end_date_ymd] => 2025-01-24 14:50:07 [RateCDR] => 1 ) [2025-01-24 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-24 11:50:07' and `end` < '2025-01-24 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-24 14:50:28] Production.INFO: count ==5326 [2025-01-24 14:50:30] Production.ERROR: pbx CDR StartTime 2025-01-24 11:50:07 - End Time 2025-01-24 14:50:07 [2025-01-24 14:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320385', 'tblTempUsageDetail_20' ) start [2025-01-24 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320385', 'tblTempUsageDetail_20' ) end [2025-01-24 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320385', 'tblTempVendorCDR_20' ) start [2025-01-24 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320385', 'tblTempVendorCDR_20' ) end [2025-01-24 14:50:30] Production.INFO: ProcessCDR(1,14320385,1,1,2) [2025-01-24 14:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320385', 'tblTempUsageDetail_20' ) start [2025-01-24 14:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320385', 'tblTempUsageDetail_20' ) end [2025-01-24 14:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:50:34] Production.INFO: ==1352== Releasing lock... [2025-01-24 14:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:50:34] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:51:05 [end_date_ymd] => 2025-01-24 14:51:05 [RateCDR] => 1 ) [2025-01-24 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:51:05' and `end` < '2025-01-24 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:51:21] Production.INFO: count ==5304 [2025-01-24 14:51:23] Production.ERROR: pbx CDR StartTime 2025-01-24 11:51:05 - End Time 2025-01-24 14:51:05 [2025-01-24 14:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320390', 'tblTempUsageDetail_20' ) start [2025-01-24 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320390', 'tblTempUsageDetail_20' ) end [2025-01-24 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320390', 'tblTempVendorCDR_20' ) start [2025-01-24 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320390', 'tblTempVendorCDR_20' ) end [2025-01-24 14:51:23] Production.INFO: ProcessCDR(1,14320390,1,1,2) [2025-01-24 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320390', 'tblTempUsageDetail_20' ) start [2025-01-24 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320390', 'tblTempUsageDetail_20' ) end [2025-01-24 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:51:28] Production.INFO: ==1440== Releasing lock... [2025-01-24 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:51:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:52:06 [end_date_ymd] => 2025-01-24 14:52:06 [RateCDR] => 1 ) [2025-01-24 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:52:06' and `end` < '2025-01-24 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:52:27] Production.INFO: count ==5302 [2025-01-24 14:52:29] Production.ERROR: pbx CDR StartTime 2025-01-24 11:52:06 - End Time 2025-01-24 14:52:06 [2025-01-24 14:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320395', 'tblTempUsageDetail_20' ) start [2025-01-24 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320395', 'tblTempUsageDetail_20' ) end [2025-01-24 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320395', 'tblTempVendorCDR_20' ) start [2025-01-24 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320395', 'tblTempVendorCDR_20' ) end [2025-01-24 14:52:29] Production.INFO: ProcessCDR(1,14320395,1,1,2) [2025-01-24 14:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320395', 'tblTempUsageDetail_20' ) start [2025-01-24 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320395', 'tblTempUsageDetail_20' ) end [2025-01-24 14:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:52:34] Production.INFO: ==1550== Releasing lock... [2025-01-24 14:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:52:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:53:05 [end_date_ymd] => 2025-01-24 14:53:05 [RateCDR] => 1 ) [2025-01-24 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 11:53:05' and `end` < '2025-01-24 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-24 14:53:22] Production.INFO: count ==5305 [2025-01-24 14:53:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:53:05 - End Time 2025-01-24 14:53:05 [2025-01-24 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320400', 'tblTempUsageDetail_20' ) start [2025-01-24 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320400', 'tblTempUsageDetail_20' ) end [2025-01-24 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320400', 'tblTempVendorCDR_20' ) start [2025-01-24 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320400', 'tblTempVendorCDR_20' ) end [2025-01-24 14:53:24] Production.INFO: ProcessCDR(1,14320400,1,1,2) [2025-01-24 14:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320400', 'tblTempUsageDetail_20' ) start [2025-01-24 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320400', 'tblTempUsageDetail_20' ) end [2025-01-24 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:53:30] Production.INFO: ==1642== Releasing lock... [2025-01-24 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:53:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:54:06 [end_date_ymd] => 2025-01-24 14:54:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:54:06' and `end` < '2025-01-24 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-24 14:54:22] Production.INFO: count ==5319 [2025-01-24 14:54:24] Production.ERROR: pbx CDR StartTime 2025-01-24 11:54:06 - End Time 2025-01-24 14:54:06 [2025-01-24 14:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320405', 'tblTempUsageDetail_20' ) start [2025-01-24 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320405', 'tblTempUsageDetail_20' ) end [2025-01-24 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320405', 'tblTempVendorCDR_20' ) start [2025-01-24 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320405', 'tblTempVendorCDR_20' ) end [2025-01-24 14:54:25] Production.INFO: ProcessCDR(1,14320405,1,1,2) [2025-01-24 14:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320405', 'tblTempUsageDetail_20' ) start [2025-01-24 14:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320405', 'tblTempUsageDetail_20' ) end [2025-01-24 14:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:54:30] Production.INFO: ==1721== Releasing lock... [2025-01-24 14:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:54:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:55:05 [end_date_ymd] => 2025-01-24 14:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:55:05' and `end` < '2025-01-24 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-24 14:55:19] Production.INFO: count ==5313 [2025-01-24 14:55:21] Production.ERROR: pbx CDR StartTime 2025-01-24 11:55:05 - End Time 2025-01-24 14:55:05 [2025-01-24 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320410', 'tblTempUsageDetail_20' ) start [2025-01-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320410', 'tblTempUsageDetail_20' ) end [2025-01-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320410', 'tblTempVendorCDR_20' ) start [2025-01-24 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320410', 'tblTempVendorCDR_20' ) end [2025-01-24 14:55:21] Production.INFO: ProcessCDR(1,14320410,1,1,2) [2025-01-24 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320410', 'tblTempUsageDetail_20' ) start [2025-01-24 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320410', 'tblTempUsageDetail_20' ) end [2025-01-24 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:55:26] Production.INFO: ==1803== Releasing lock... [2025-01-24 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:55:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:56:06 [end_date_ymd] => 2025-01-24 14:56:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:56:06' and `end` < '2025-01-24 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-24 14:56:20] Production.INFO: count ==5319 [2025-01-24 14:56:22] Production.ERROR: pbx CDR StartTime 2025-01-24 11:56:06 - End Time 2025-01-24 14:56:06 [2025-01-24 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320415', 'tblTempUsageDetail_20' ) start [2025-01-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320415', 'tblTempUsageDetail_20' ) end [2025-01-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320415', 'tblTempVendorCDR_20' ) start [2025-01-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320415', 'tblTempVendorCDR_20' ) end [2025-01-24 14:56:22] Production.INFO: ProcessCDR(1,14320415,1,1,2) [2025-01-24 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320415', 'tblTempUsageDetail_20' ) start [2025-01-24 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320415', 'tblTempUsageDetail_20' ) end [2025-01-24 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:56:27] Production.INFO: ==1892== Releasing lock... [2025-01-24 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:56:27] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:57:05 [end_date_ymd] => 2025-01-24 14:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 11:57:05' and `end` < '2025-01-24 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-24 14:57:33] Production.INFO: count ==5312 [2025-01-24 14:57:35] Production.ERROR: pbx CDR StartTime 2025-01-24 11:57:05 - End Time 2025-01-24 14:57:05 [2025-01-24 14:57:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320420', 'tblTempUsageDetail_20' ) start [2025-01-24 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320420', 'tblTempUsageDetail_20' ) end [2025-01-24 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320420', 'tblTempVendorCDR_20' ) start [2025-01-24 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320420', 'tblTempVendorCDR_20' ) end [2025-01-24 14:57:35] Production.INFO: ProcessCDR(1,14320420,1,1,2) [2025-01-24 14:57:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:57:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:57:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:57:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320420', 'tblTempUsageDetail_20' ) start [2025-01-24 14:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320420', 'tblTempUsageDetail_20' ) end [2025-01-24 14:57:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:57:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:57:40] Production.INFO: ==1968== Releasing lock... [2025-01-24 14:57:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:57:40] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:58:06 [end_date_ymd] => 2025-01-24 14:58:06 [RateCDR] => 1 ) [2025-01-24 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-24 11:58:06' and `end` < '2025-01-24 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 14:58:30] Production.INFO: count ==5313 [2025-01-24 14:58:32] Production.ERROR: pbx CDR StartTime 2025-01-24 11:58:06 - End Time 2025-01-24 14:58:06 [2025-01-24 14:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320425', 'tblTempUsageDetail_20' ) start [2025-01-24 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320425', 'tblTempUsageDetail_20' ) end [2025-01-24 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320425', 'tblTempVendorCDR_20' ) start [2025-01-24 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320425', 'tblTempVendorCDR_20' ) end [2025-01-24 14:58:32] Production.INFO: ProcessCDR(1,14320425,1,1,2) [2025-01-24 14:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:58:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:58:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320425', 'tblTempUsageDetail_20' ) start [2025-01-24 14:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320425', 'tblTempUsageDetail_20' ) end [2025-01-24 14:58:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:58:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:58:37] Production.INFO: ==2052== Releasing lock... [2025-01-24 14:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:58:37] Production.INFO: 68 MB #Memory Used# [2025-01-24 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 11:59:05 [end_date_ymd] => 2025-01-24 14:59:05 [RateCDR] => 1 ) [2025-01-24 14: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-24 11:59:05' and `end` < '2025-01-24 14: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-24 14:59:29] Production.INFO: count ==5311 [2025-01-24 14:59:32] Production.ERROR: pbx CDR StartTime 2025-01-24 11:59:05 - End Time 2025-01-24 14:59:05 [2025-01-24 14:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320430', 'tblTempUsageDetail_20' ) start [2025-01-24 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320430', 'tblTempUsageDetail_20' ) end [2025-01-24 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320430', 'tblTempVendorCDR_20' ) start [2025-01-24 14:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320430', 'tblTempVendorCDR_20' ) end [2025-01-24 14:59:32] Production.INFO: ProcessCDR(1,14320430,1,1,2) [2025-01-24 14:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 14:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 14:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320430', 'tblTempUsageDetail_20' ) start [2025-01-24 14:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320430', 'tblTempUsageDetail_20' ) end [2025-01-24 14:59:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 14:59:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 14:59:37] Production.INFO: ==2131== Releasing lock... [2025-01-24 14:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 14:59:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:00:06 [end_date_ymd] => 2025-01-24 15:00:06 [RateCDR] => 1 ) [2025-01-24 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:00:06' and `end` < '2025-01-24 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:00:28] Production.INFO: count ==5304 [2025-01-24 15:00:30] Production.ERROR: pbx CDR StartTime 2025-01-24 12:00:06 - End Time 2025-01-24 15:00:06 [2025-01-24 15:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320436', 'tblTempUsageDetail_20' ) start [2025-01-24 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320436', 'tblTempUsageDetail_20' ) end [2025-01-24 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320436', 'tblTempVendorCDR_20' ) start [2025-01-24 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320436', 'tblTempVendorCDR_20' ) end [2025-01-24 15:00:30] Production.INFO: ProcessCDR(1,14320436,1,1,2) [2025-01-24 15:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320436', 'tblTempUsageDetail_20' ) start [2025-01-24 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320436', 'tblTempUsageDetail_20' ) end [2025-01-24 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:00:35] Production.INFO: ==2215== Releasing lock... [2025-01-24 15:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:00:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:01:05 [end_date_ymd] => 2025-01-24 15:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:01:05' and `end` < '2025-01-24 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-24 15:01:22] Production.INFO: count ==5286 [2025-01-24 15:01:24] Production.ERROR: pbx CDR StartTime 2025-01-24 12:01:05 - End Time 2025-01-24 15:01:05 [2025-01-24 15:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320441', 'tblTempUsageDetail_20' ) start [2025-01-24 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320441', 'tblTempUsageDetail_20' ) end [2025-01-24 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320441', 'tblTempVendorCDR_20' ) start [2025-01-24 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320441', 'tblTempVendorCDR_20' ) end [2025-01-24 15:01:24] Production.INFO: ProcessCDR(1,14320441,1,1,2) [2025-01-24 15:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320441', 'tblTempUsageDetail_20' ) start [2025-01-24 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320441', 'tblTempUsageDetail_20' ) end [2025-01-24 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:01:29] Production.INFO: ==2316== Releasing lock... [2025-01-24 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:01:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:02:05 [end_date_ymd] => 2025-01-24 15:02:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:02:05' and `end` < '2025-01-24 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-24 15:02:22] Production.INFO: count ==5272 [2025-01-24 15:02:25] Production.ERROR: pbx CDR StartTime 2025-01-24 12:02:05 - End Time 2025-01-24 15:02:05 [2025-01-24 15:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320446', 'tblTempUsageDetail_20' ) start [2025-01-24 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320446', 'tblTempUsageDetail_20' ) end [2025-01-24 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320446', 'tblTempVendorCDR_20' ) start [2025-01-24 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320446', 'tblTempVendorCDR_20' ) end [2025-01-24 15:02:25] Production.INFO: ProcessCDR(1,14320446,1,1,2) [2025-01-24 15:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320446', 'tblTempUsageDetail_20' ) start [2025-01-24 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320446', 'tblTempUsageDetail_20' ) end [2025-01-24 15:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:02:30] Production.INFO: ==2475== Releasing lock... [2025-01-24 15:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:02:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:03:05 [end_date_ymd] => 2025-01-24 15:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:03:05' and `end` < '2025-01-24 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-24 15:03:22] Production.INFO: count ==5266 [2025-01-24 15:03:25] Production.ERROR: pbx CDR StartTime 2025-01-24 12:03:05 - End Time 2025-01-24 15:03:05 [2025-01-24 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320451', 'tblTempUsageDetail_20' ) start [2025-01-24 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320451', 'tblTempUsageDetail_20' ) end [2025-01-24 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320451', 'tblTempVendorCDR_20' ) start [2025-01-24 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320451', 'tblTempVendorCDR_20' ) end [2025-01-24 15:03:25] Production.INFO: ProcessCDR(1,14320451,1,1,2) [2025-01-24 15:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320451', 'tblTempUsageDetail_20' ) start [2025-01-24 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320451', 'tblTempUsageDetail_20' ) end [2025-01-24 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:03:30] Production.INFO: ==2559== Releasing lock... [2025-01-24 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:03:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:04:06 [end_date_ymd] => 2025-01-24 15:04:06 [RateCDR] => 1 ) [2025-01-24 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:04:06' and `end` < '2025-01-24 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:04:19] Production.INFO: count ==5253 [2025-01-24 15:04:22] Production.ERROR: pbx CDR StartTime 2025-01-24 12:04:06 - End Time 2025-01-24 15:04:06 [2025-01-24 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320456', 'tblTempUsageDetail_20' ) start [2025-01-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320456', 'tblTempUsageDetail_20' ) end [2025-01-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320456', 'tblTempVendorCDR_20' ) start [2025-01-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320456', 'tblTempVendorCDR_20' ) end [2025-01-24 15:04:22] Production.INFO: ProcessCDR(1,14320456,1,1,2) [2025-01-24 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320456', 'tblTempUsageDetail_20' ) start [2025-01-24 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320456', 'tblTempUsageDetail_20' ) end [2025-01-24 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:04:28] Production.INFO: ==2647== Releasing lock... [2025-01-24 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:04:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:05:05 [end_date_ymd] => 2025-01-24 15:05:05 [RateCDR] => 1 ) [2025-01-24 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:05:05' and `end` < '2025-01-24 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:05:27] Production.INFO: count ==5246 [2025-01-24 15:05:29] Production.ERROR: pbx CDR StartTime 2025-01-24 12:05:05 - End Time 2025-01-24 15:05:05 [2025-01-24 15:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320461', 'tblTempUsageDetail_20' ) start [2025-01-24 15:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320461', 'tblTempUsageDetail_20' ) end [2025-01-24 15:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320461', 'tblTempVendorCDR_20' ) start [2025-01-24 15:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320461', 'tblTempVendorCDR_20' ) end [2025-01-24 15:05:29] Production.INFO: ProcessCDR(1,14320461,1,1,2) [2025-01-24 15:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320461', 'tblTempUsageDetail_20' ) start [2025-01-24 15:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320461', 'tblTempUsageDetail_20' ) end [2025-01-24 15:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:05:34] Production.INFO: ==2842== Releasing lock... [2025-01-24 15:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:05:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:06:05 [end_date_ymd] => 2025-01-24 15:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:06:05' and `end` < '2025-01-24 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-24 15:06:27] Production.INFO: count ==5242 [2025-01-24 15:06:29] Production.ERROR: pbx CDR StartTime 2025-01-24 12:06:05 - End Time 2025-01-24 15:06:05 [2025-01-24 15:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320466', 'tblTempUsageDetail_20' ) start [2025-01-24 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320466', 'tblTempUsageDetail_20' ) end [2025-01-24 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320466', 'tblTempVendorCDR_20' ) start [2025-01-24 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320466', 'tblTempVendorCDR_20' ) end [2025-01-24 15:06:29] Production.INFO: ProcessCDR(1,14320466,1,1,2) [2025-01-24 15:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320466', 'tblTempUsageDetail_20' ) start [2025-01-24 15:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320466', 'tblTempUsageDetail_20' ) end [2025-01-24 15:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:06:34] Production.INFO: ==2930== Releasing lock... [2025-01-24 15:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:06:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:07:05 [end_date_ymd] => 2025-01-24 15:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:07:05' and `end` < '2025-01-24 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-24 15:07:23] Production.INFO: count ==5220 [2025-01-24 15:07:25] Production.ERROR: pbx CDR StartTime 2025-01-24 12:07:05 - End Time 2025-01-24 15:07:05 [2025-01-24 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320471', 'tblTempUsageDetail_20' ) start [2025-01-24 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320471', 'tblTempUsageDetail_20' ) end [2025-01-24 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320471', 'tblTempVendorCDR_20' ) start [2025-01-24 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320471', 'tblTempVendorCDR_20' ) end [2025-01-24 15:07:25] Production.INFO: ProcessCDR(1,14320471,1,1,2) [2025-01-24 15:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320471', 'tblTempUsageDetail_20' ) start [2025-01-24 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320471', 'tblTempUsageDetail_20' ) end [2025-01-24 15:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:07:29] Production.INFO: ==3012== Releasing lock... [2025-01-24 15:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:07:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:08:05 [end_date_ymd] => 2025-01-24 15:08:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:08:05' and `end` < '2025-01-24 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-24 15:08:22] Production.INFO: count ==5218 [2025-01-24 15:08:24] Production.ERROR: pbx CDR StartTime 2025-01-24 12:08:05 - End Time 2025-01-24 15:08:05 [2025-01-24 15:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320476', 'tblTempUsageDetail_20' ) start [2025-01-24 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320476', 'tblTempUsageDetail_20' ) end [2025-01-24 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320476', 'tblTempVendorCDR_20' ) start [2025-01-24 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320476', 'tblTempVendorCDR_20' ) end [2025-01-24 15:08:24] Production.INFO: ProcessCDR(1,14320476,1,1,2) [2025-01-24 15:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320476', 'tblTempUsageDetail_20' ) start [2025-01-24 15:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320476', 'tblTempUsageDetail_20' ) end [2025-01-24 15:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:08:29] Production.INFO: ==3173== Releasing lock... [2025-01-24 15:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:08:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:09:05 [end_date_ymd] => 2025-01-24 15:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:09:05' and `end` < '2025-01-24 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-24 15:09:22] Production.INFO: count ==5232 [2025-01-24 15:09:24] Production.ERROR: pbx CDR StartTime 2025-01-24 12:09:05 - End Time 2025-01-24 15:09:05 [2025-01-24 15:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320481', 'tblTempUsageDetail_20' ) start [2025-01-24 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320481', 'tblTempUsageDetail_20' ) end [2025-01-24 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320481', 'tblTempVendorCDR_20' ) start [2025-01-24 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320481', 'tblTempVendorCDR_20' ) end [2025-01-24 15:09:24] Production.INFO: ProcessCDR(1,14320481,1,1,2) [2025-01-24 15:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320481', 'tblTempUsageDetail_20' ) start [2025-01-24 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320481', 'tblTempUsageDetail_20' ) end [2025-01-24 15:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:09:30] Production.INFO: ==3255== Releasing lock... [2025-01-24 15:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:09:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:10:06 [end_date_ymd] => 2025-01-24 15:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:10:06' and `end` < '2025-01-24 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-24 15:10:28] Production.INFO: count ==5217 [2025-01-24 15:10:30] Production.ERROR: pbx CDR StartTime 2025-01-24 12:10:06 - End Time 2025-01-24 15:10:06 [2025-01-24 15:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320487', 'tblTempUsageDetail_20' ) start [2025-01-24 15:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320487', 'tblTempUsageDetail_20' ) end [2025-01-24 15:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320487', 'tblTempVendorCDR_20' ) start [2025-01-24 15:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320487', 'tblTempVendorCDR_20' ) end [2025-01-24 15:10:30] Production.INFO: ProcessCDR(1,14320487,1,1,2) [2025-01-24 15:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320487', 'tblTempUsageDetail_20' ) start [2025-01-24 15:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320487', 'tblTempUsageDetail_20' ) end [2025-01-24 15:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:10:35] Production.INFO: ==3343== Releasing lock... [2025-01-24 15:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:10:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:11:06 [end_date_ymd] => 2025-01-24 15:11:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:11:06' and `end` < '2025-01-24 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-24 15:11:23] Production.INFO: count ==5155 [2025-01-24 15:11:25] Production.ERROR: pbx CDR StartTime 2025-01-24 12:11:06 - End Time 2025-01-24 15:11:06 [2025-01-24 15:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320492', 'tblTempUsageDetail_20' ) start [2025-01-24 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320492', 'tblTempUsageDetail_20' ) end [2025-01-24 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320492', 'tblTempVendorCDR_20' ) start [2025-01-24 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320492', 'tblTempVendorCDR_20' ) end [2025-01-24 15:11:25] Production.INFO: ProcessCDR(1,14320492,1,1,2) [2025-01-24 15:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320492', 'tblTempUsageDetail_20' ) start [2025-01-24 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320492', 'tblTempUsageDetail_20' ) end [2025-01-24 15:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:11:30] Production.INFO: ==3427== Releasing lock... [2025-01-24 15:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:11:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:12:05 [end_date_ymd] => 2025-01-24 15:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:12:05' and `end` < '2025-01-24 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-24 15:12:29] Production.INFO: count ==5147 [2025-01-24 15:12:31] Production.ERROR: pbx CDR StartTime 2025-01-24 12:12:05 - End Time 2025-01-24 15:12:05 [2025-01-24 15:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320497', 'tblTempUsageDetail_20' ) start [2025-01-24 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320497', 'tblTempUsageDetail_20' ) end [2025-01-24 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320497', 'tblTempVendorCDR_20' ) start [2025-01-24 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320497', 'tblTempVendorCDR_20' ) end [2025-01-24 15:12:31] Production.INFO: ProcessCDR(1,14320497,1,1,2) [2025-01-24 15:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320497', 'tblTempUsageDetail_20' ) start [2025-01-24 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320497', 'tblTempUsageDetail_20' ) end [2025-01-24 15:12:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:12:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:12:36] Production.INFO: ==3587== Releasing lock... [2025-01-24 15:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:12:36] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:13:05 [end_date_ymd] => 2025-01-24 15:13:05 [RateCDR] => 1 ) [2025-01-24 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:13:05' and `end` < '2025-01-24 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:13:29] Production.INFO: count ==5141 [2025-01-24 15:13:31] Production.ERROR: pbx CDR StartTime 2025-01-24 12:13:05 - End Time 2025-01-24 15:13:05 [2025-01-24 15:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320502', 'tblTempUsageDetail_20' ) start [2025-01-24 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320502', 'tblTempUsageDetail_20' ) end [2025-01-24 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320502', 'tblTempVendorCDR_20' ) start [2025-01-24 15:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320502', 'tblTempVendorCDR_20' ) end [2025-01-24 15:13:31] Production.INFO: ProcessCDR(1,14320502,1,1,2) [2025-01-24 15:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320502', 'tblTempUsageDetail_20' ) start [2025-01-24 15:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320502', 'tblTempUsageDetail_20' ) end [2025-01-24 15:13:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:13:36] Production.INFO: ==3669== Releasing lock... [2025-01-24 15:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:13:36] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:14:05 [end_date_ymd] => 2025-01-24 15:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:14:05' and `end` < '2025-01-24 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-24 15:14:21] Production.INFO: count ==5135 [2025-01-24 15:14:23] Production.ERROR: pbx CDR StartTime 2025-01-24 12:14:05 - End Time 2025-01-24 15:14:05 [2025-01-24 15:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320507', 'tblTempUsageDetail_20' ) start [2025-01-24 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320507', 'tblTempUsageDetail_20' ) end [2025-01-24 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320507', 'tblTempVendorCDR_20' ) start [2025-01-24 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320507', 'tblTempVendorCDR_20' ) end [2025-01-24 15:14:24] Production.INFO: ProcessCDR(1,14320507,1,1,2) [2025-01-24 15:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320507', 'tblTempUsageDetail_20' ) start [2025-01-24 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320507', 'tblTempUsageDetail_20' ) end [2025-01-24 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:14:28] Production.INFO: ==3753== Releasing lock... [2025-01-24 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:14:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:15:05 [end_date_ymd] => 2025-01-24 15:15:05 [RateCDR] => 1 ) [2025-01-24 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:15:05' and `end` < '2025-01-24 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:15:30] Production.INFO: count ==5138 [2025-01-24 15:15:32] Production.ERROR: pbx CDR StartTime 2025-01-24 12:15:05 - End Time 2025-01-24 15:15:05 [2025-01-24 15:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320512', 'tblTempUsageDetail_20' ) start [2025-01-24 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320512', 'tblTempUsageDetail_20' ) end [2025-01-24 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320512', 'tblTempVendorCDR_20' ) start [2025-01-24 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320512', 'tblTempVendorCDR_20' ) end [2025-01-24 15:15:32] Production.INFO: ProcessCDR(1,14320512,1,1,2) [2025-01-24 15:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320512', 'tblTempUsageDetail_20' ) start [2025-01-24 15:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320512', 'tblTempUsageDetail_20' ) end [2025-01-24 15:15:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:15:37] Production.INFO: ==3919== Releasing lock... [2025-01-24 15:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:15:37] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:16:05 [end_date_ymd] => 2025-01-24 15:16:05 [RateCDR] => 1 ) [2025-01-24 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:16:05' and `end` < '2025-01-24 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:16:30] Production.INFO: count ==5140 [2025-01-24 15:16:32] Production.ERROR: pbx CDR StartTime 2025-01-24 12:16:05 - End Time 2025-01-24 15:16:05 [2025-01-24 15:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320517', 'tblTempUsageDetail_20' ) start [2025-01-24 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320517', 'tblTempUsageDetail_20' ) end [2025-01-24 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320517', 'tblTempVendorCDR_20' ) start [2025-01-24 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320517', 'tblTempVendorCDR_20' ) end [2025-01-24 15:16:32] Production.INFO: ProcessCDR(1,14320517,1,1,2) [2025-01-24 15:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320517', 'tblTempUsageDetail_20' ) start [2025-01-24 15:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320517', 'tblTempUsageDetail_20' ) end [2025-01-24 15:16:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:16:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:16:37] Production.INFO: ==3998== Releasing lock... [2025-01-24 15:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:16:37] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:17:05 [end_date_ymd] => 2025-01-24 15:17:05 [RateCDR] => 1 ) [2025-01-24 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:17:05' and `end` < '2025-01-24 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:17:25] Production.INFO: count ==5152 [2025-01-24 15:17:28] Production.ERROR: pbx CDR StartTime 2025-01-24 12:17:05 - End Time 2025-01-24 15:17:05 [2025-01-24 15:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320522', 'tblTempUsageDetail_20' ) start [2025-01-24 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320522', 'tblTempUsageDetail_20' ) end [2025-01-24 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320522', 'tblTempVendorCDR_20' ) start [2025-01-24 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320522', 'tblTempVendorCDR_20' ) end [2025-01-24 15:17:28] Production.INFO: ProcessCDR(1,14320522,1,1,2) [2025-01-24 15:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320522', 'tblTempUsageDetail_20' ) start [2025-01-24 15:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320522', 'tblTempUsageDetail_20' ) end [2025-01-24 15:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:17:33] Production.INFO: ==4082== Releasing lock... [2025-01-24 15:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:17:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:18:05 [end_date_ymd] => 2025-01-24 15:18:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:18:05' and `end` < '2025-01-24 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-24 15:18:33] Production.INFO: count ==5155 [2025-01-24 15:18:35] Production.ERROR: pbx CDR StartTime 2025-01-24 12:18:05 - End Time 2025-01-24 15:18:05 [2025-01-24 15:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320527', 'tblTempUsageDetail_20' ) start [2025-01-24 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320527', 'tblTempUsageDetail_20' ) end [2025-01-24 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320527', 'tblTempVendorCDR_20' ) start [2025-01-24 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320527', 'tblTempVendorCDR_20' ) end [2025-01-24 15:18:36] Production.INFO: ProcessCDR(1,14320527,1,1,2) [2025-01-24 15:18:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:18:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:18:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:18:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320527', 'tblTempUsageDetail_20' ) start [2025-01-24 15:18:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320527', 'tblTempUsageDetail_20' ) end [2025-01-24 15:18:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:18:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:18:41] Production.INFO: ==4160== Releasing lock... [2025-01-24 15:18:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:18:41] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:19:05 [end_date_ymd] => 2025-01-24 15:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:19:05' and `end` < '2025-01-24 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-24 15:19:25] Production.INFO: count ==5147 [2025-01-24 15:19:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:19:05 - End Time 2025-01-24 15:19:05 [2025-01-24 15:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320532', 'tblTempUsageDetail_20' ) start [2025-01-24 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320532', 'tblTempUsageDetail_20' ) end [2025-01-24 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320532', 'tblTempVendorCDR_20' ) start [2025-01-24 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320532', 'tblTempVendorCDR_20' ) end [2025-01-24 15:19:27] Production.INFO: ProcessCDR(1,14320532,1,1,2) [2025-01-24 15:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320532', 'tblTempUsageDetail_20' ) start [2025-01-24 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320532', 'tblTempUsageDetail_20' ) end [2025-01-24 15:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:19:32] Production.INFO: ==4245== Releasing lock... [2025-01-24 15:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:19:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:20:05 [end_date_ymd] => 2025-01-24 15:20:05 [RateCDR] => 1 ) [2025-01-24 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:20:05' and `end` < '2025-01-24 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:20:26] Production.INFO: count ==5170 [2025-01-24 15:20:28] Production.ERROR: pbx CDR StartTime 2025-01-24 12:20:05 - End Time 2025-01-24 15:20:05 [2025-01-24 15:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320538', 'tblTempUsageDetail_20' ) start [2025-01-24 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320538', 'tblTempUsageDetail_20' ) end [2025-01-24 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320538', 'tblTempVendorCDR_20' ) start [2025-01-24 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320538', 'tblTempVendorCDR_20' ) end [2025-01-24 15:20:28] Production.INFO: ProcessCDR(1,14320538,1,1,2) [2025-01-24 15:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320538', 'tblTempUsageDetail_20' ) start [2025-01-24 15:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320538', 'tblTempUsageDetail_20' ) end [2025-01-24 15:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:20:34] Production.INFO: ==4370== Releasing lock... [2025-01-24 15:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:20:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:21:05 [end_date_ymd] => 2025-01-24 15:21:05 [RateCDR] => 1 ) [2025-01-24 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:21:05' and `end` < '2025-01-24 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:21:25] Production.INFO: count ==5205 [2025-01-24 15:21:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:21:05 - End Time 2025-01-24 15:21:05 [2025-01-24 15:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320543', 'tblTempUsageDetail_20' ) start [2025-01-24 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320543', 'tblTempUsageDetail_20' ) end [2025-01-24 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320543', 'tblTempVendorCDR_20' ) start [2025-01-24 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320543', 'tblTempVendorCDR_20' ) end [2025-01-24 15:21:27] Production.INFO: ProcessCDR(1,14320543,1,1,2) [2025-01-24 15:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320543', 'tblTempUsageDetail_20' ) start [2025-01-24 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320543', 'tblTempUsageDetail_20' ) end [2025-01-24 15:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:21:32] Production.INFO: ==4444== Releasing lock... [2025-01-24 15:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:21:32] Production.INFO: 67 MB #Memory Used# [2025-01-24 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:22:05 [end_date_ymd] => 2025-01-24 15:22:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:22:05' and `end` < '2025-01-24 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-24 15:22:29] Production.INFO: count ==5235 [2025-01-24 15:22:31] Production.ERROR: pbx CDR StartTime 2025-01-24 12:22:05 - End Time 2025-01-24 15:22:05 [2025-01-24 15:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320548', 'tblTempUsageDetail_20' ) start [2025-01-24 15:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320548', 'tblTempUsageDetail_20' ) end [2025-01-24 15:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320548', 'tblTempVendorCDR_20' ) start [2025-01-24 15:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320548', 'tblTempVendorCDR_20' ) end [2025-01-24 15:22:31] Production.INFO: ProcessCDR(1,14320548,1,1,2) [2025-01-24 15:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:22:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:22:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320548', 'tblTempUsageDetail_20' ) start [2025-01-24 15:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320548', 'tblTempUsageDetail_20' ) end [2025-01-24 15:22:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:22:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:22:36] Production.INFO: ==4522== Releasing lock... [2025-01-24 15:22:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:22:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:23:06 [end_date_ymd] => 2025-01-24 15:23:06 [RateCDR] => 1 ) [2025-01-24 15: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-24 12:23:06' and `end` < '2025-01-24 15: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-24 15:23:25] Production.INFO: count ==5233 [2025-01-24 15:23:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:23:06 - End Time 2025-01-24 15:23:06 [2025-01-24 15:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320553', 'tblTempUsageDetail_20' ) start [2025-01-24 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320553', 'tblTempUsageDetail_20' ) end [2025-01-24 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320553', 'tblTempVendorCDR_20' ) start [2025-01-24 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320553', 'tblTempVendorCDR_20' ) end [2025-01-24 15:23:28] Production.INFO: ProcessCDR(1,14320553,1,1,2) [2025-01-24 15:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320553', 'tblTempUsageDetail_20' ) start [2025-01-24 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320553', 'tblTempUsageDetail_20' ) end [2025-01-24 15:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:23:33] Production.INFO: ==4605== Releasing lock... [2025-01-24 15:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:23:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:24:06 [end_date_ymd] => 2025-01-24 15:24:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:24:06' and `end` < '2025-01-24 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-24 15:24:36] Production.INFO: count ==5230 [2025-01-24 15:24:38] Production.ERROR: pbx CDR StartTime 2025-01-24 12:24:06 - End Time 2025-01-24 15:24:06 [2025-01-24 15:24:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320558', 'tblTempUsageDetail_20' ) start [2025-01-24 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320558', 'tblTempUsageDetail_20' ) end [2025-01-24 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320558', 'tblTempVendorCDR_20' ) start [2025-01-24 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320558', 'tblTempVendorCDR_20' ) end [2025-01-24 15:24:38] Production.INFO: ProcessCDR(1,14320558,1,1,2) [2025-01-24 15:24:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:24:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:24:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:24:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320558', 'tblTempUsageDetail_20' ) start [2025-01-24 15:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320558', 'tblTempUsageDetail_20' ) end [2025-01-24 15:24:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:24:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:24:43] Production.INFO: ==4694== Releasing lock... [2025-01-24 15:24:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:24:43] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:25:06 [end_date_ymd] => 2025-01-24 15:25:06 [RateCDR] => 1 ) [2025-01-24 15: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-24 12:25:06' and `end` < '2025-01-24 15: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-24 15:25:33] Production.INFO: count ==5207 [2025-01-24 15:25:35] Production.ERROR: pbx CDR StartTime 2025-01-24 12:25:06 - End Time 2025-01-24 15:25:06 [2025-01-24 15:25:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320563', 'tblTempUsageDetail_20' ) start [2025-01-24 15:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320563', 'tblTempUsageDetail_20' ) end [2025-01-24 15:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320563', 'tblTempVendorCDR_20' ) start [2025-01-24 15:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320563', 'tblTempVendorCDR_20' ) end [2025-01-24 15:25:35] Production.INFO: ProcessCDR(1,14320563,1,1,2) [2025-01-24 15:25:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:25:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:25:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320563', 'tblTempUsageDetail_20' ) start [2025-01-24 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320563', 'tblTempUsageDetail_20' ) end [2025-01-24 15:25:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:25:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:25:40] Production.INFO: ==4767== Releasing lock... [2025-01-24 15:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:25:40] Production.INFO: 67 MB #Memory Used# [2025-01-24 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:26:05 [end_date_ymd] => 2025-01-24 15:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:26:05' and `end` < '2025-01-24 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-24 15:26:28] Production.INFO: count ==5236 [2025-01-24 15:26:30] Production.ERROR: pbx CDR StartTime 2025-01-24 12:26:05 - End Time 2025-01-24 15:26:05 [2025-01-24 15:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320568', 'tblTempUsageDetail_20' ) start [2025-01-24 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320568', 'tblTempUsageDetail_20' ) end [2025-01-24 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320568', 'tblTempVendorCDR_20' ) start [2025-01-24 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320568', 'tblTempVendorCDR_20' ) end [2025-01-24 15:26:30] Production.INFO: ProcessCDR(1,14320568,1,1,2) [2025-01-24 15:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320568', 'tblTempUsageDetail_20' ) start [2025-01-24 15:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320568', 'tblTempUsageDetail_20' ) end [2025-01-24 15:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:26:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:26:36] Production.INFO: ==4845== Releasing lock... [2025-01-24 15:26:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:26:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:27:05 [end_date_ymd] => 2025-01-24 15:27:05 [RateCDR] => 1 ) [2025-01-24 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:27:05' and `end` < '2025-01-24 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:27:26] Production.INFO: count ==5252 [2025-01-24 15:27:28] Production.ERROR: pbx CDR StartTime 2025-01-24 12:27:05 - End Time 2025-01-24 15:27:05 [2025-01-24 15:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320573', 'tblTempUsageDetail_20' ) start [2025-01-24 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320573', 'tblTempUsageDetail_20' ) end [2025-01-24 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320573', 'tblTempVendorCDR_20' ) start [2025-01-24 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320573', 'tblTempVendorCDR_20' ) end [2025-01-24 15:27:28] Production.INFO: ProcessCDR(1,14320573,1,1,2) [2025-01-24 15:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320573', 'tblTempUsageDetail_20' ) start [2025-01-24 15:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320573', 'tblTempUsageDetail_20' ) end [2025-01-24 15:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:27:34] Production.INFO: ==4921== Releasing lock... [2025-01-24 15:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:27:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:28:05 [end_date_ymd] => 2025-01-24 15:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:28:05' and `end` < '2025-01-24 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-24 15:28:33] Production.INFO: count ==5271 [2025-01-24 15:28:35] Production.ERROR: pbx CDR StartTime 2025-01-24 12:28:05 - End Time 2025-01-24 15:28:05 [2025-01-24 15:28:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320578', 'tblTempUsageDetail_20' ) start [2025-01-24 15:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320578', 'tblTempUsageDetail_20' ) end [2025-01-24 15:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320578', 'tblTempVendorCDR_20' ) start [2025-01-24 15:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320578', 'tblTempVendorCDR_20' ) end [2025-01-24 15:28:35] Production.INFO: ProcessCDR(1,14320578,1,1,2) [2025-01-24 15:28:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:28:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:28:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:28:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:28:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320578', 'tblTempUsageDetail_20' ) start [2025-01-24 15:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320578', 'tblTempUsageDetail_20' ) end [2025-01-24 15:28:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:28:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:28:41] Production.INFO: ==5001== Releasing lock... [2025-01-24 15:28:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:28:41] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:29:06 [end_date_ymd] => 2025-01-24 15:29:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:29:06' and `end` < '2025-01-24 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-24 15:29:24] Production.INFO: count ==5265 [2025-01-24 15:29:26] Production.ERROR: pbx CDR StartTime 2025-01-24 12:29:06 - End Time 2025-01-24 15:29:06 [2025-01-24 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320583', 'tblTempUsageDetail_20' ) start [2025-01-24 15:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320583', 'tblTempUsageDetail_20' ) end [2025-01-24 15:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320583', 'tblTempVendorCDR_20' ) start [2025-01-24 15:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320583', 'tblTempVendorCDR_20' ) end [2025-01-24 15:29:27] Production.INFO: ProcessCDR(1,14320583,1,1,2) [2025-01-24 15:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320583', 'tblTempUsageDetail_20' ) start [2025-01-24 15:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320583', 'tblTempUsageDetail_20' ) end [2025-01-24 15:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:29:32] Production.INFO: ==5097== Releasing lock... [2025-01-24 15:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:29:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:30:05 [end_date_ymd] => 2025-01-24 15:30:05 [RateCDR] => 1 ) [2025-01-24 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:30:05' and `end` < '2025-01-24 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:30:27] Production.INFO: count ==5266 [2025-01-24 15:30:29] Production.ERROR: pbx CDR StartTime 2025-01-24 12:30:05 - End Time 2025-01-24 15:30:05 [2025-01-24 15:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320588', 'tblTempUsageDetail_20' ) start [2025-01-24 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320588', 'tblTempUsageDetail_20' ) end [2025-01-24 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320588', 'tblTempVendorCDR_20' ) start [2025-01-24 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320588', 'tblTempVendorCDR_20' ) end [2025-01-24 15:30:30] Production.INFO: ProcessCDR(1,14320588,1,1,2) [2025-01-24 15:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320588', 'tblTempUsageDetail_20' ) start [2025-01-24 15:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320588', 'tblTempUsageDetail_20' ) end [2025-01-24 15:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:30:34] Production.INFO: ==5174== Releasing lock... [2025-01-24 15:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:30:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:31:05 [end_date_ymd] => 2025-01-24 15:31:05 [RateCDR] => 1 ) [2025-01-24 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:31:05' and `end` < '2025-01-24 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:31:20] Production.INFO: count ==5259 [2025-01-24 15:31:22] Production.ERROR: pbx CDR StartTime 2025-01-24 12:31:05 - End Time 2025-01-24 15:31:05 [2025-01-24 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320594', 'tblTempUsageDetail_20' ) start [2025-01-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320594', 'tblTempUsageDetail_20' ) end [2025-01-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320594', 'tblTempVendorCDR_20' ) start [2025-01-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320594', 'tblTempVendorCDR_20' ) end [2025-01-24 15:31:22] Production.INFO: ProcessCDR(1,14320594,1,1,2) [2025-01-24 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320594', 'tblTempUsageDetail_20' ) start [2025-01-24 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320594', 'tblTempUsageDetail_20' ) end [2025-01-24 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:31:28] Production.INFO: ==5256== Releasing lock... [2025-01-24 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:31:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:32:05 [end_date_ymd] => 2025-01-24 15:32:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:32:05' and `end` < '2025-01-24 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-24 15:32:32] Production.INFO: count ==5259 [2025-01-24 15:32:34] Production.ERROR: pbx CDR StartTime 2025-01-24 12:32:05 - End Time 2025-01-24 15:32:05 [2025-01-24 15:32:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320599', 'tblTempUsageDetail_20' ) start [2025-01-24 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320599', 'tblTempUsageDetail_20' ) end [2025-01-24 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320599', 'tblTempVendorCDR_20' ) start [2025-01-24 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320599', 'tblTempVendorCDR_20' ) end [2025-01-24 15:32:34] Production.INFO: ProcessCDR(1,14320599,1,1,2) [2025-01-24 15:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320599', 'tblTempUsageDetail_20' ) start [2025-01-24 15:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320599', 'tblTempUsageDetail_20' ) end [2025-01-24 15:32:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:32:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:32:40] Production.INFO: ==5332== Releasing lock... [2025-01-24 15:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:32:40] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:33:06 [end_date_ymd] => 2025-01-24 15:33:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:33:06' and `end` < '2025-01-24 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-24 15:33:25] Production.INFO: count ==5273 [2025-01-24 15:33:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:33:06 - End Time 2025-01-24 15:33:06 [2025-01-24 15:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320604', 'tblTempUsageDetail_20' ) start [2025-01-24 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320604', 'tblTempUsageDetail_20' ) end [2025-01-24 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320604', 'tblTempVendorCDR_20' ) start [2025-01-24 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320604', 'tblTempVendorCDR_20' ) end [2025-01-24 15:33:27] Production.INFO: ProcessCDR(1,14320604,1,1,2) [2025-01-24 15:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320604', 'tblTempUsageDetail_20' ) start [2025-01-24 15:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320604', 'tblTempUsageDetail_20' ) end [2025-01-24 15:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:33:33] Production.INFO: ==5405== Releasing lock... [2025-01-24 15:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:33:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:34:06 [end_date_ymd] => 2025-01-24 15:34:06 [RateCDR] => 1 ) [2025-01-24 15: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-24 12:34:06' and `end` < '2025-01-24 15: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-24 15:34:22] Production.INFO: count ==5261 [2025-01-24 15:34:24] Production.ERROR: pbx CDR StartTime 2025-01-24 12:34:06 - End Time 2025-01-24 15:34:06 [2025-01-24 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320609', 'tblTempUsageDetail_20' ) start [2025-01-24 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320609', 'tblTempUsageDetail_20' ) end [2025-01-24 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320609', 'tblTempVendorCDR_20' ) start [2025-01-24 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320609', 'tblTempVendorCDR_20' ) end [2025-01-24 15:34:25] Production.INFO: ProcessCDR(1,14320609,1,1,2) [2025-01-24 15:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320609', 'tblTempUsageDetail_20' ) start [2025-01-24 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320609', 'tblTempUsageDetail_20' ) end [2025-01-24 15:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:34:30] Production.INFO: ==5483== Releasing lock... [2025-01-24 15:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:34:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:35:06 [end_date_ymd] => 2025-01-24 15:35:06 [RateCDR] => 1 ) [2025-01-24 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:35:06' and `end` < '2025-01-24 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:35:28] Production.INFO: count ==5266 [2025-01-24 15:35:31] Production.ERROR: pbx CDR StartTime 2025-01-24 12:35:06 - End Time 2025-01-24 15:35:06 [2025-01-24 15:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320614', 'tblTempUsageDetail_20' ) start [2025-01-24 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320614', 'tblTempUsageDetail_20' ) end [2025-01-24 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320614', 'tblTempVendorCDR_20' ) start [2025-01-24 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320614', 'tblTempVendorCDR_20' ) end [2025-01-24 15:35:31] Production.INFO: ProcessCDR(1,14320614,1,1,2) [2025-01-24 15:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320614', 'tblTempUsageDetail_20' ) start [2025-01-24 15:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320614', 'tblTempUsageDetail_20' ) end [2025-01-24 15:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:35:36] Production.INFO: ==5564== Releasing lock... [2025-01-24 15:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:35:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:36:06 [end_date_ymd] => 2025-01-24 15:36:06 [RateCDR] => 1 ) [2025-01-24 15: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-24 12:36:06' and `end` < '2025-01-24 15: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-24 15:36:25] Production.INFO: count ==5284 [2025-01-24 15:36:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:36:06 - End Time 2025-01-24 15:36:06 [2025-01-24 15:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320619', 'tblTempUsageDetail_20' ) start [2025-01-24 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320619', 'tblTempUsageDetail_20' ) end [2025-01-24 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320619', 'tblTempVendorCDR_20' ) start [2025-01-24 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320619', 'tblTempVendorCDR_20' ) end [2025-01-24 15:36:28] Production.INFO: ProcessCDR(1,14320619,1,1,2) [2025-01-24 15:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320619', 'tblTempUsageDetail_20' ) start [2025-01-24 15:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320619', 'tblTempUsageDetail_20' ) end [2025-01-24 15:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:36:33] Production.INFO: ==5673== Releasing lock... [2025-01-24 15:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:36:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:37:06 [end_date_ymd] => 2025-01-24 15:37:06 [RateCDR] => 1 ) [2025-01-24 15: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-24 12:37:06' and `end` < '2025-01-24 15: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-24 15:37:31] Production.INFO: count ==5300 [2025-01-24 15:37:33] Production.ERROR: pbx CDR StartTime 2025-01-24 12:37:06 - End Time 2025-01-24 15:37:06 [2025-01-24 15:37:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320624', 'tblTempUsageDetail_20' ) start [2025-01-24 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320624', 'tblTempUsageDetail_20' ) end [2025-01-24 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320624', 'tblTempVendorCDR_20' ) start [2025-01-24 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320624', 'tblTempVendorCDR_20' ) end [2025-01-24 15:37:33] Production.INFO: ProcessCDR(1,14320624,1,1,2) [2025-01-24 15:37:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320624', 'tblTempUsageDetail_20' ) start [2025-01-24 15:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320624', 'tblTempUsageDetail_20' ) end [2025-01-24 15:37:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:37:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:37:39] Production.INFO: ==5746== Releasing lock... [2025-01-24 15:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:37:39] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:38:05 [end_date_ymd] => 2025-01-24 15:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:38:05' and `end` < '2025-01-24 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-24 15:38:32] Production.INFO: count ==5282 [2025-01-24 15:38:35] Production.ERROR: pbx CDR StartTime 2025-01-24 12:38:05 - End Time 2025-01-24 15:38:05 [2025-01-24 15:38:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320629', 'tblTempUsageDetail_20' ) start [2025-01-24 15:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320629', 'tblTempUsageDetail_20' ) end [2025-01-24 15:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320629', 'tblTempVendorCDR_20' ) start [2025-01-24 15:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320629', 'tblTempVendorCDR_20' ) end [2025-01-24 15:38:35] Production.INFO: ProcessCDR(1,14320629,1,1,2) [2025-01-24 15:38:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:38:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:38:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:38:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320629', 'tblTempUsageDetail_20' ) start [2025-01-24 15:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320629', 'tblTempUsageDetail_20' ) end [2025-01-24 15:38:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:38:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:38:40] Production.INFO: ==5819== Releasing lock... [2025-01-24 15:38:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:38:40] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:39:05 [end_date_ymd] => 2025-01-24 15:39:05 [RateCDR] => 1 ) [2025-01-24 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:39:05' and `end` < '2025-01-24 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:39:31] Production.INFO: count ==5269 [2025-01-24 15:39:33] Production.ERROR: pbx CDR StartTime 2025-01-24 12:39:05 - End Time 2025-01-24 15:39:05 [2025-01-24 15:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320634', 'tblTempUsageDetail_20' ) start [2025-01-24 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320634', 'tblTempUsageDetail_20' ) end [2025-01-24 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320634', 'tblTempVendorCDR_20' ) start [2025-01-24 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320634', 'tblTempVendorCDR_20' ) end [2025-01-24 15:39:33] Production.INFO: ProcessCDR(1,14320634,1,1,2) [2025-01-24 15:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:39:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:39:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320634', 'tblTempUsageDetail_20' ) start [2025-01-24 15:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320634', 'tblTempUsageDetail_20' ) end [2025-01-24 15:39:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:39:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:39:38] Production.INFO: ==5893== Releasing lock... [2025-01-24 15:39:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:39:38] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:40:06 [end_date_ymd] => 2025-01-24 15:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:40:06' and `end` < '2025-01-24 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-24 15:40:29] Production.INFO: count ==5247 [2025-01-24 15:40:31] Production.ERROR: pbx CDR StartTime 2025-01-24 12:40:06 - End Time 2025-01-24 15:40:06 [2025-01-24 15:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320639', 'tblTempUsageDetail_20' ) start [2025-01-24 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320639', 'tblTempUsageDetail_20' ) end [2025-01-24 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320639', 'tblTempVendorCDR_20' ) start [2025-01-24 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320639', 'tblTempVendorCDR_20' ) end [2025-01-24 15:40:31] Production.INFO: ProcessCDR(1,14320639,1,1,2) [2025-01-24 15:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320639', 'tblTempUsageDetail_20' ) start [2025-01-24 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320639', 'tblTempUsageDetail_20' ) end [2025-01-24 15:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:40:36] Production.INFO: ==5967== Releasing lock... [2025-01-24 15:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:40:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:41:05 [end_date_ymd] => 2025-01-24 15:41:05 [RateCDR] => 1 ) [2025-01-24 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:41:05' and `end` < '2025-01-24 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:41:21] Production.INFO: count ==5307 [2025-01-24 15:41:23] Production.ERROR: pbx CDR StartTime 2025-01-24 12:41:05 - End Time 2025-01-24 15:41:05 [2025-01-24 15:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320645', 'tblTempUsageDetail_20' ) start [2025-01-24 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320645', 'tblTempUsageDetail_20' ) end [2025-01-24 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320645', 'tblTempVendorCDR_20' ) start [2025-01-24 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320645', 'tblTempVendorCDR_20' ) end [2025-01-24 15:41:23] Production.INFO: ProcessCDR(1,14320645,1,1,2) [2025-01-24 15:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320645', 'tblTempUsageDetail_20' ) start [2025-01-24 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320645', 'tblTempUsageDetail_20' ) end [2025-01-24 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:41:28] Production.INFO: ==6043== Releasing lock... [2025-01-24 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:41:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:42:05 [end_date_ymd] => 2025-01-24 15:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:42:05' and `end` < '2025-01-24 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-24 15:42:21] Production.INFO: count ==5295 [2025-01-24 15:42:23] Production.ERROR: pbx CDR StartTime 2025-01-24 12:42:05 - End Time 2025-01-24 15:42:05 [2025-01-24 15:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320650', 'tblTempUsageDetail_20' ) start [2025-01-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320650', 'tblTempUsageDetail_20' ) end [2025-01-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320650', 'tblTempVendorCDR_20' ) start [2025-01-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320650', 'tblTempVendorCDR_20' ) end [2025-01-24 15:42:23] Production.INFO: ProcessCDR(1,14320650,1,1,2) [2025-01-24 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320650', 'tblTempUsageDetail_20' ) start [2025-01-24 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320650', 'tblTempUsageDetail_20' ) end [2025-01-24 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:42:28] Production.INFO: ==6115== Releasing lock... [2025-01-24 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:42:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:43:05 [end_date_ymd] => 2025-01-24 15:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:43:05' and `end` < '2025-01-24 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-24 15:43:26] Production.INFO: count ==5281 [2025-01-24 15:43:28] Production.ERROR: pbx CDR StartTime 2025-01-24 12:43:05 - End Time 2025-01-24 15:43:05 [2025-01-24 15:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320655', 'tblTempUsageDetail_20' ) start [2025-01-24 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320655', 'tblTempUsageDetail_20' ) end [2025-01-24 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320655', 'tblTempVendorCDR_20' ) start [2025-01-24 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320655', 'tblTempVendorCDR_20' ) end [2025-01-24 15:43:28] Production.INFO: ProcessCDR(1,14320655,1,1,2) [2025-01-24 15:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320655', 'tblTempUsageDetail_20' ) start [2025-01-24 15:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320655', 'tblTempUsageDetail_20' ) end [2025-01-24 15:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:43:33] Production.INFO: ==6196== Releasing lock... [2025-01-24 15:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:43:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:44:05 [end_date_ymd] => 2025-01-24 15:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:44:05' and `end` < '2025-01-24 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-24 15:44:25] Production.INFO: count ==5294 [2025-01-24 15:44:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:44:05 - End Time 2025-01-24 15:44:05 [2025-01-24 15:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320660', 'tblTempUsageDetail_20' ) start [2025-01-24 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320660', 'tblTempUsageDetail_20' ) end [2025-01-24 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320660', 'tblTempVendorCDR_20' ) start [2025-01-24 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320660', 'tblTempVendorCDR_20' ) end [2025-01-24 15:44:27] Production.INFO: ProcessCDR(1,14320660,1,1,2) [2025-01-24 15:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320660', 'tblTempUsageDetail_20' ) start [2025-01-24 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320660', 'tblTempUsageDetail_20' ) end [2025-01-24 15:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:44:32] Production.INFO: ==6269== Releasing lock... [2025-01-24 15:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:44:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-24 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:45:05 [end_date_ymd] => 2025-01-24 15:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:45:05' and `end` < '2025-01-24 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-24 15:45:25] Production.INFO: count ==5282 [2025-01-24 15:45:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:45:05 - End Time 2025-01-24 15:45:05 [2025-01-24 15:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320665', 'tblTempUsageDetail_20' ) start [2025-01-24 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320665', 'tblTempUsageDetail_20' ) end [2025-01-24 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320665', 'tblTempVendorCDR_20' ) start [2025-01-24 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320665', 'tblTempVendorCDR_20' ) end [2025-01-24 15:45:27] Production.INFO: ProcessCDR(1,14320665,1,1,2) [2025-01-24 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320665', 'tblTempUsageDetail_20' ) start [2025-01-24 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320665', 'tblTempUsageDetail_20' ) end [2025-01-24 15:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:45:32] Production.INFO: ==6342== Releasing lock... [2025-01-24 15:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:45:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:46:05 [end_date_ymd] => 2025-01-24 15:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:46:05' and `end` < '2025-01-24 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-24 15:46:22] Production.INFO: count ==5266 [2025-01-24 15:46:24] Production.ERROR: pbx CDR StartTime 2025-01-24 12:46:05 - End Time 2025-01-24 15:46:05 [2025-01-24 15:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320670', 'tblTempUsageDetail_20' ) start [2025-01-24 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320670', 'tblTempUsageDetail_20' ) end [2025-01-24 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320670', 'tblTempVendorCDR_20' ) start [2025-01-24 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320670', 'tblTempVendorCDR_20' ) end [2025-01-24 15:46:25] Production.INFO: ProcessCDR(1,14320670,1,1,2) [2025-01-24 15:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320670', 'tblTempUsageDetail_20' ) start [2025-01-24 15:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320670', 'tblTempUsageDetail_20' ) end [2025-01-24 15:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:46:29] Production.INFO: ==6417== Releasing lock... [2025-01-24 15:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:46:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:47:05 [end_date_ymd] => 2025-01-24 15:47:05 [RateCDR] => 1 ) [2025-01-24 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:47:05' and `end` < '2025-01-24 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:47:18] Production.INFO: count ==5267 [2025-01-24 15:47:20] Production.ERROR: pbx CDR StartTime 2025-01-24 12:47:05 - End Time 2025-01-24 15:47:05 [2025-01-24 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320675', 'tblTempUsageDetail_20' ) start [2025-01-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320675', 'tblTempUsageDetail_20' ) end [2025-01-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320675', 'tblTempVendorCDR_20' ) start [2025-01-24 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320675', 'tblTempVendorCDR_20' ) end [2025-01-24 15:47:21] Production.INFO: ProcessCDR(1,14320675,1,1,2) [2025-01-24 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320675', 'tblTempUsageDetail_20' ) start [2025-01-24 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320675', 'tblTempUsageDetail_20' ) end [2025-01-24 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:47:24] Production.INFO: ==6492== Releasing lock... [2025-01-24 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:47:24] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:48:05 [end_date_ymd] => 2025-01-24 15:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:48:05' and `end` < '2025-01-24 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-24 15:48:32] Production.INFO: count ==5259 [2025-01-24 15:48:34] Production.ERROR: pbx CDR StartTime 2025-01-24 12:48:05 - End Time 2025-01-24 15:48:05 [2025-01-24 15:48:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320680', 'tblTempUsageDetail_20' ) start [2025-01-24 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320680', 'tblTempUsageDetail_20' ) end [2025-01-24 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320680', 'tblTempVendorCDR_20' ) start [2025-01-24 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320680', 'tblTempVendorCDR_20' ) end [2025-01-24 15:48:34] Production.INFO: ProcessCDR(1,14320680,1,1,2) [2025-01-24 15:48:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:48:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:48:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:48:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320680', 'tblTempUsageDetail_20' ) start [2025-01-24 15:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320680', 'tblTempUsageDetail_20' ) end [2025-01-24 15:48:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:48:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:48:39] Production.INFO: ==6563== Releasing lock... [2025-01-24 15:48:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:48:39] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:49:05 [end_date_ymd] => 2025-01-24 15:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:49:05' and `end` < '2025-01-24 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-24 15:49:21] Production.INFO: count ==5269 [2025-01-24 15:49:24] Production.ERROR: pbx CDR StartTime 2025-01-24 12:49:05 - End Time 2025-01-24 15:49:05 [2025-01-24 15:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320685', 'tblTempUsageDetail_20' ) start [2025-01-24 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320685', 'tblTempUsageDetail_20' ) end [2025-01-24 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320685', 'tblTempVendorCDR_20' ) start [2025-01-24 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320685', 'tblTempVendorCDR_20' ) end [2025-01-24 15:49:24] Production.INFO: ProcessCDR(1,14320685,1,1,2) [2025-01-24 15:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320685', 'tblTempUsageDetail_20' ) start [2025-01-24 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320685', 'tblTempUsageDetail_20' ) end [2025-01-24 15:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:49:29] Production.INFO: ==6633== Releasing lock... [2025-01-24 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:49:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:50:06 [end_date_ymd] => 2025-01-24 15:50:06 [RateCDR] => 1 ) [2025-01-24 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:50:06' and `end` < '2025-01-24 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:50:28] Production.INFO: count ==5268 [2025-01-24 15:50:30] Production.ERROR: pbx CDR StartTime 2025-01-24 12:50:06 - End Time 2025-01-24 15:50:06 [2025-01-24 15:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320691', 'tblTempUsageDetail_20' ) start [2025-01-24 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320691', 'tblTempUsageDetail_20' ) end [2025-01-24 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320691', 'tblTempVendorCDR_20' ) start [2025-01-24 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320691', 'tblTempVendorCDR_20' ) end [2025-01-24 15:50:30] Production.INFO: ProcessCDR(1,14320691,1,1,2) [2025-01-24 15:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320691', 'tblTempUsageDetail_20' ) start [2025-01-24 15:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320691', 'tblTempUsageDetail_20' ) end [2025-01-24 15:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:50:35] Production.INFO: ==6710== Releasing lock... [2025-01-24 15:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:50:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:51:05 [end_date_ymd] => 2025-01-24 15:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:51:05' and `end` < '2025-01-24 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-24 15:51:25] Production.INFO: count ==5324 [2025-01-24 15:51:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:51:05 - End Time 2025-01-24 15:51:05 [2025-01-24 15:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320696', 'tblTempUsageDetail_20' ) start [2025-01-24 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320696', 'tblTempUsageDetail_20' ) end [2025-01-24 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320696', 'tblTempVendorCDR_20' ) start [2025-01-24 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320696', 'tblTempVendorCDR_20' ) end [2025-01-24 15:51:28] Production.INFO: ProcessCDR(1,14320696,1,1,2) [2025-01-24 15:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320696', 'tblTempUsageDetail_20' ) start [2025-01-24 15:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320696', 'tblTempUsageDetail_20' ) end [2025-01-24 15:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:51:33] Production.INFO: ==6823== Releasing lock... [2025-01-24 15:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:51:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:52:06 [end_date_ymd] => 2025-01-24 15:52:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:52:06' and `end` < '2025-01-24 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-24 15:52:26] Production.INFO: count ==5323 [2025-01-24 15:52:28] Production.ERROR: pbx CDR StartTime 2025-01-24 12:52:06 - End Time 2025-01-24 15:52:06 [2025-01-24 15:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320701', 'tblTempUsageDetail_20' ) start [2025-01-24 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320701', 'tblTempUsageDetail_20' ) end [2025-01-24 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320701', 'tblTempVendorCDR_20' ) start [2025-01-24 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320701', 'tblTempVendorCDR_20' ) end [2025-01-24 15:52:28] Production.INFO: ProcessCDR(1,14320701,1,1,2) [2025-01-24 15:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320701', 'tblTempUsageDetail_20' ) start [2025-01-24 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320701', 'tblTempUsageDetail_20' ) end [2025-01-24 15:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:52:33] Production.INFO: ==6896== Releasing lock... [2025-01-24 15:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:52:33] Production.INFO: 68 MB #Memory Used# [2025-01-24 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:53:05 [end_date_ymd] => 2025-01-24 15:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:53:05' and `end` < '2025-01-24 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-24 15:53:25] Production.INFO: count ==5340 [2025-01-24 15:53:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:53:05 - End Time 2025-01-24 15:53:05 [2025-01-24 15:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320706', 'tblTempUsageDetail_20' ) start [2025-01-24 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320706', 'tblTempUsageDetail_20' ) end [2025-01-24 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320706', 'tblTempVendorCDR_20' ) start [2025-01-24 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320706', 'tblTempVendorCDR_20' ) end [2025-01-24 15:53:27] Production.INFO: ProcessCDR(1,14320706,1,1,2) [2025-01-24 15:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320706', 'tblTempUsageDetail_20' ) start [2025-01-24 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320706', 'tblTempUsageDetail_20' ) end [2025-01-24 15:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:53:32] Production.INFO: ==6966== Releasing lock... [2025-01-24 15:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:53:32] Production.INFO: 68 MB #Memory Used# [2025-01-24 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:54:06 [end_date_ymd] => 2025-01-24 15:54:06 [RateCDR] => 1 ) [2025-01-24 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-24 12:54:06' and `end` < '2025-01-24 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-24 15:54:31] Production.INFO: count ==5359 [2025-01-24 15:54:33] Production.ERROR: pbx CDR StartTime 2025-01-24 12:54:06 - End Time 2025-01-24 15:54:06 [2025-01-24 15:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320711', 'tblTempUsageDetail_20' ) start [2025-01-24 15:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320711', 'tblTempUsageDetail_20' ) end [2025-01-24 15:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320711', 'tblTempVendorCDR_20' ) start [2025-01-24 15:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320711', 'tblTempVendorCDR_20' ) end [2025-01-24 15:54:33] Production.INFO: ProcessCDR(1,14320711,1,1,2) [2025-01-24 15:54:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320711', 'tblTempUsageDetail_20' ) start [2025-01-24 15:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320711', 'tblTempUsageDetail_20' ) end [2025-01-24 15:54:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:54:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:54:38] Production.INFO: ==7038== Releasing lock... [2025-01-24 15:54:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:54:38] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:55:06 [end_date_ymd] => 2025-01-24 15:55:06 [RateCDR] => 1 ) [2025-01-24 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:55:06' and `end` < '2025-01-24 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:55:30] Production.INFO: count ==5380 [2025-01-24 15:55:32] Production.ERROR: pbx CDR StartTime 2025-01-24 12:55:06 - End Time 2025-01-24 15:55:06 [2025-01-24 15:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320716', 'tblTempUsageDetail_20' ) start [2025-01-24 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320716', 'tblTempUsageDetail_20' ) end [2025-01-24 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320716', 'tblTempVendorCDR_20' ) start [2025-01-24 15:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320716', 'tblTempVendorCDR_20' ) end [2025-01-24 15:55:32] Production.INFO: ProcessCDR(1,14320716,1,1,2) [2025-01-24 15:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320716', 'tblTempUsageDetail_20' ) start [2025-01-24 15:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320716', 'tblTempUsageDetail_20' ) end [2025-01-24 15:55:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:55:38] Production.INFO: ==7110== Releasing lock... [2025-01-24 15:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:55:38] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:56:05 [end_date_ymd] => 2025-01-24 15:56:05 [RateCDR] => 1 ) [2025-01-24 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:56:05' and `end` < '2025-01-24 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:56:32] Production.INFO: count ==5404 [2025-01-24 15:56:34] Production.ERROR: pbx CDR StartTime 2025-01-24 12:56:05 - End Time 2025-01-24 15:56:05 [2025-01-24 15:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320721', 'tblTempUsageDetail_20' ) start [2025-01-24 15:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320721', 'tblTempUsageDetail_20' ) end [2025-01-24 15:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320721', 'tblTempVendorCDR_20' ) start [2025-01-24 15:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320721', 'tblTempVendorCDR_20' ) end [2025-01-24 15:56:35] Production.INFO: ProcessCDR(1,14320721,1,1,2) [2025-01-24 15:56:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:56:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:56:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:56:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320721', 'tblTempUsageDetail_20' ) start [2025-01-24 15:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320721', 'tblTempUsageDetail_20' ) end [2025-01-24 15:56:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:56:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:56:40] Production.INFO: ==7181== Releasing lock... [2025-01-24 15:56:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:56:40] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:57:05 [end_date_ymd] => 2025-01-24 15:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:57:05' and `end` < '2025-01-24 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-24 15:57:33] Production.INFO: count ==5412 [2025-01-24 15:57:35] Production.ERROR: pbx CDR StartTime 2025-01-24 12:57:05 - End Time 2025-01-24 15:57:05 [2025-01-24 15:57:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320726', 'tblTempUsageDetail_20' ) start [2025-01-24 15:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320726', 'tblTempUsageDetail_20' ) end [2025-01-24 15:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320726', 'tblTempVendorCDR_20' ) start [2025-01-24 15:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320726', 'tblTempVendorCDR_20' ) end [2025-01-24 15:57:35] Production.INFO: ProcessCDR(1,14320726,1,1,2) [2025-01-24 15:57:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:57:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:57:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:57:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320726', 'tblTempUsageDetail_20' ) start [2025-01-24 15:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320726', 'tblTempUsageDetail_20' ) end [2025-01-24 15:57:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:57:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:57:40] Production.INFO: ==7253== Releasing lock... [2025-01-24 15:57:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:57:40] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:58:06 [end_date_ymd] => 2025-01-24 15:58:06 [RateCDR] => 1 ) [2025-01-24 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 12:58:06' and `end` < '2025-01-24 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 15:58:25] Production.INFO: count ==5427 [2025-01-24 15:58:27] Production.ERROR: pbx CDR StartTime 2025-01-24 12:58:06 - End Time 2025-01-24 15:58:06 [2025-01-24 15:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320731', 'tblTempUsageDetail_20' ) start [2025-01-24 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320731', 'tblTempUsageDetail_20' ) end [2025-01-24 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320731', 'tblTempVendorCDR_20' ) start [2025-01-24 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320731', 'tblTempVendorCDR_20' ) end [2025-01-24 15:58:27] Production.INFO: ProcessCDR(1,14320731,1,1,2) [2025-01-24 15:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320731', 'tblTempUsageDetail_20' ) start [2025-01-24 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320731', 'tblTempUsageDetail_20' ) end [2025-01-24 15:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:58:32] Production.INFO: ==7324== Releasing lock... [2025-01-24 15:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:58:32] Production.INFO: 69 MB #Memory Used# [2025-01-24 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 12:59:05 [end_date_ymd] => 2025-01-24 15:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 12:59:05' and `end` < '2025-01-24 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-24 15:59:32] Production.INFO: count ==5431 [2025-01-24 15:59:34] Production.ERROR: pbx CDR StartTime 2025-01-24 12:59:05 - End Time 2025-01-24 15:59:05 [2025-01-24 15:59:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320736', 'tblTempUsageDetail_20' ) start [2025-01-24 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320736', 'tblTempUsageDetail_20' ) end [2025-01-24 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320736', 'tblTempVendorCDR_20' ) start [2025-01-24 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320736', 'tblTempVendorCDR_20' ) end [2025-01-24 15:59:34] Production.INFO: ProcessCDR(1,14320736,1,1,2) [2025-01-24 15:59:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:59:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 15:59:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:59:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 15:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320736', 'tblTempUsageDetail_20' ) start [2025-01-24 15:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320736', 'tblTempUsageDetail_20' ) end [2025-01-24 15:59:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 15:59:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 15:59:39] Production.INFO: ==7393== Releasing lock... [2025-01-24 15:59:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 15:59:39] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:00:06 [end_date_ymd] => 2025-01-24 16:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:00:06' and `end` < '2025-01-24 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-24 16:00:35] Production.INFO: count ==5443 [2025-01-24 16:00:37] Production.ERROR: pbx CDR StartTime 2025-01-24 13:00:06 - End Time 2025-01-24 16:00:06 [2025-01-24 16:00:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320742', 'tblTempUsageDetail_20' ) start [2025-01-24 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320742', 'tblTempUsageDetail_20' ) end [2025-01-24 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320742', 'tblTempVendorCDR_20' ) start [2025-01-24 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320742', 'tblTempVendorCDR_20' ) end [2025-01-24 16:00:37] Production.INFO: ProcessCDR(1,14320742,1,1,2) [2025-01-24 16:00:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:00:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:00:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:00:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320742', 'tblTempUsageDetail_20' ) start [2025-01-24 16:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320742', 'tblTempUsageDetail_20' ) end [2025-01-24 16:00:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:00:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:00:43] Production.INFO: ==7466== Releasing lock... [2025-01-24 16:00:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:00:43] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:01:05 [end_date_ymd] => 2025-01-24 16:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:01:05' and `end` < '2025-01-24 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-24 16:01:23] Production.INFO: count ==5441 [2025-01-24 16:01:25] Production.ERROR: pbx CDR StartTime 2025-01-24 13:01:05 - End Time 2025-01-24 16:01:05 [2025-01-24 16:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320747', 'tblTempUsageDetail_20' ) start [2025-01-24 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320747', 'tblTempUsageDetail_20' ) end [2025-01-24 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320747', 'tblTempVendorCDR_20' ) start [2025-01-24 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320747', 'tblTempVendorCDR_20' ) end [2025-01-24 16:01:25] Production.INFO: ProcessCDR(1,14320747,1,1,2) [2025-01-24 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320747', 'tblTempUsageDetail_20' ) start [2025-01-24 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320747', 'tblTempUsageDetail_20' ) end [2025-01-24 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:01:30] Production.INFO: ==7555== Releasing lock... [2025-01-24 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:01:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:02:05 [end_date_ymd] => 2025-01-24 16:02:05 [RateCDR] => 1 ) [2025-01-24 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:02:05' and `end` < '2025-01-24 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:02:23] Production.INFO: count ==5421 [2025-01-24 16:02:25] Production.ERROR: pbx CDR StartTime 2025-01-24 13:02:05 - End Time 2025-01-24 16:02:05 [2025-01-24 16:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320752', 'tblTempUsageDetail_20' ) start [2025-01-24 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320752', 'tblTempUsageDetail_20' ) end [2025-01-24 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320752', 'tblTempVendorCDR_20' ) start [2025-01-24 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320752', 'tblTempVendorCDR_20' ) end [2025-01-24 16:02:26] Production.INFO: ProcessCDR(1,14320752,1,1,2) [2025-01-24 16:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320752', 'tblTempUsageDetail_20' ) start [2025-01-24 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320752', 'tblTempUsageDetail_20' ) end [2025-01-24 16:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:02:30] Production.INFO: ==7626== Releasing lock... [2025-01-24 16:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:02:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:03:05 [end_date_ymd] => 2025-01-24 16:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:03:05' and `end` < '2025-01-24 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-24 16:03:25] Production.INFO: count ==5425 [2025-01-24 16:03:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:03:05 - End Time 2025-01-24 16:03:05 [2025-01-24 16:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320757', 'tblTempUsageDetail_20' ) start [2025-01-24 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320757', 'tblTempUsageDetail_20' ) end [2025-01-24 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320757', 'tblTempVendorCDR_20' ) start [2025-01-24 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320757', 'tblTempVendorCDR_20' ) end [2025-01-24 16:03:27] Production.INFO: ProcessCDR(1,14320757,1,1,2) [2025-01-24 16:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320757', 'tblTempUsageDetail_20' ) start [2025-01-24 16:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320757', 'tblTempUsageDetail_20' ) end [2025-01-24 16:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:03:32] Production.INFO: ==7706== Releasing lock... [2025-01-24 16:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:03:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:04:06 [end_date_ymd] => 2025-01-24 16:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:04:06' and `end` < '2025-01-24 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-24 16:04:23] Production.INFO: count ==5428 [2025-01-24 16:04:25] Production.ERROR: pbx CDR StartTime 2025-01-24 13:04:06 - End Time 2025-01-24 16:04:06 [2025-01-24 16:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320762', 'tblTempUsageDetail_20' ) start [2025-01-24 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320762', 'tblTempUsageDetail_20' ) end [2025-01-24 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320762', 'tblTempVendorCDR_20' ) start [2025-01-24 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320762', 'tblTempVendorCDR_20' ) end [2025-01-24 16:04:25] Production.INFO: ProcessCDR(1,14320762,1,1,2) [2025-01-24 16:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320762', 'tblTempUsageDetail_20' ) start [2025-01-24 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320762', 'tblTempUsageDetail_20' ) end [2025-01-24 16:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:04:31] Production.INFO: ==7780== Releasing lock... [2025-01-24 16:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:04:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:05:06 [end_date_ymd] => 2025-01-24 16:05:06 [RateCDR] => 1 ) [2025-01-24 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:05:06' and `end` < '2025-01-24 16:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:05:20] Production.INFO: count ==5429 [2025-01-24 16:05:22] Production.ERROR: pbx CDR StartTime 2025-01-24 13:05:06 - End Time 2025-01-24 16:05:06 [2025-01-24 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320767', 'tblTempUsageDetail_20' ) start [2025-01-24 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320767', 'tblTempUsageDetail_20' ) end [2025-01-24 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320767', 'tblTempVendorCDR_20' ) start [2025-01-24 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320767', 'tblTempVendorCDR_20' ) end [2025-01-24 16:05:23] Production.INFO: ProcessCDR(1,14320767,1,1,2) [2025-01-24 16:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320767', 'tblTempUsageDetail_20' ) start [2025-01-24 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320767', 'tblTempUsageDetail_20' ) end [2025-01-24 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:05:27] Production.INFO: ==7853== Releasing lock... [2025-01-24 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:05:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:06:05 [end_date_ymd] => 2025-01-24 16:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:06:05' and `end` < '2025-01-24 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-24 16:06:33] Production.INFO: count ==5433 [2025-01-24 16:06:36] Production.ERROR: pbx CDR StartTime 2025-01-24 13:06:05 - End Time 2025-01-24 16:06:05 [2025-01-24 16:06:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320772', 'tblTempUsageDetail_20' ) start [2025-01-24 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320772', 'tblTempUsageDetail_20' ) end [2025-01-24 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320772', 'tblTempVendorCDR_20' ) start [2025-01-24 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320772', 'tblTempVendorCDR_20' ) end [2025-01-24 16:06:36] Production.INFO: ProcessCDR(1,14320772,1,1,2) [2025-01-24 16:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:06:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:06:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320772', 'tblTempUsageDetail_20' ) start [2025-01-24 16:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320772', 'tblTempUsageDetail_20' ) end [2025-01-24 16:06:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:06:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:06:41] Production.INFO: ==7929== Releasing lock... [2025-01-24 16:06:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:06:41] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:07:05 [end_date_ymd] => 2025-01-24 16:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:07:05' and `end` < '2025-01-24 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-24 16:07:31] Production.INFO: count ==5459 [2025-01-24 16:07:33] Production.ERROR: pbx CDR StartTime 2025-01-24 13:07:05 - End Time 2025-01-24 16:07:05 [2025-01-24 16:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320777', 'tblTempUsageDetail_20' ) start [2025-01-24 16:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320777', 'tblTempUsageDetail_20' ) end [2025-01-24 16:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320777', 'tblTempVendorCDR_20' ) start [2025-01-24 16:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320777', 'tblTempVendorCDR_20' ) end [2025-01-24 16:07:33] Production.INFO: ProcessCDR(1,14320777,1,1,2) [2025-01-24 16:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:07:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:07:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320777', 'tblTempUsageDetail_20' ) start [2025-01-24 16:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320777', 'tblTempUsageDetail_20' ) end [2025-01-24 16:07:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:07:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:07:38] Production.INFO: ==8041== Releasing lock... [2025-01-24 16:07:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:07:38] Production.INFO: 69 MB #Memory Used# [2025-01-24 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:08:05 [end_date_ymd] => 2025-01-24 16:08:05 [RateCDR] => 1 ) [2025-01-24 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:08:05' and `end` < '2025-01-24 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:08:25] Production.INFO: count ==5465 [2025-01-24 16:08:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:08:05 - End Time 2025-01-24 16:08:05 [2025-01-24 16:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320782', 'tblTempUsageDetail_20' ) start [2025-01-24 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320782', 'tblTempUsageDetail_20' ) end [2025-01-24 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320782', 'tblTempVendorCDR_20' ) start [2025-01-24 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320782', 'tblTempVendorCDR_20' ) end [2025-01-24 16:08:27] Production.INFO: ProcessCDR(1,14320782,1,1,2) [2025-01-24 16:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320782', 'tblTempUsageDetail_20' ) start [2025-01-24 16:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320782', 'tblTempUsageDetail_20' ) end [2025-01-24 16:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:08:32] Production.INFO: ==8117== Releasing lock... [2025-01-24 16:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:08:32] Production.INFO: 69 MB #Memory Used# [2025-01-24 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:09:05 [end_date_ymd] => 2025-01-24 16:09:05 [RateCDR] => 1 ) [2025-01-24 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:09:05' and `end` < '2025-01-24 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:09:24] Production.INFO: count ==5439 [2025-01-24 16:09:26] Production.ERROR: pbx CDR StartTime 2025-01-24 13:09:05 - End Time 2025-01-24 16:09:05 [2025-01-24 16:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320787', 'tblTempUsageDetail_20' ) start [2025-01-24 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320787', 'tblTempUsageDetail_20' ) end [2025-01-24 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320787', 'tblTempVendorCDR_20' ) start [2025-01-24 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320787', 'tblTempVendorCDR_20' ) end [2025-01-24 16:09:26] Production.INFO: ProcessCDR(1,14320787,1,1,2) [2025-01-24 16:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320787', 'tblTempUsageDetail_20' ) start [2025-01-24 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320787', 'tblTempUsageDetail_20' ) end [2025-01-24 16:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:09:31] Production.INFO: ==8187== Releasing lock... [2025-01-24 16:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:09:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:10:06 [end_date_ymd] => 2025-01-24 16:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:10:06' and `end` < '2025-01-24 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-24 16:10:30] Production.INFO: count ==5462 [2025-01-24 16:10:32] Production.ERROR: pbx CDR StartTime 2025-01-24 13:10:06 - End Time 2025-01-24 16:10:06 [2025-01-24 16:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320793', 'tblTempUsageDetail_20' ) start [2025-01-24 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320793', 'tblTempUsageDetail_20' ) end [2025-01-24 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320793', 'tblTempVendorCDR_20' ) start [2025-01-24 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320793', 'tblTempVendorCDR_20' ) end [2025-01-24 16:10:32] Production.INFO: ProcessCDR(1,14320793,1,1,2) [2025-01-24 16:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320793', 'tblTempUsageDetail_20' ) start [2025-01-24 16:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320793', 'tblTempUsageDetail_20' ) end [2025-01-24 16:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:10:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:10:38] Production.INFO: ==8263== Releasing lock... [2025-01-24 16:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:10:38] Production.INFO: 69 MB #Memory Used# [2025-01-24 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:11:06 [end_date_ymd] => 2025-01-24 16:11:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:11:06' and `end` < '2025-01-24 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-24 16:11:25] Production.INFO: count ==5513 [2025-01-24 16:11:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:11:06 - End Time 2025-01-24 16:11:06 [2025-01-24 16:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320798', 'tblTempUsageDetail_20' ) start [2025-01-24 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320798', 'tblTempUsageDetail_20' ) end [2025-01-24 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320798', 'tblTempVendorCDR_20' ) start [2025-01-24 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320798', 'tblTempVendorCDR_20' ) end [2025-01-24 16:11:27] Production.INFO: ProcessCDR(1,14320798,1,1,2) [2025-01-24 16:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320798', 'tblTempUsageDetail_20' ) start [2025-01-24 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320798', 'tblTempUsageDetail_20' ) end [2025-01-24 16:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:11:32] Production.INFO: ==8341== Releasing lock... [2025-01-24 16:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:11:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-24 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:12:05 [end_date_ymd] => 2025-01-24 16:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:12:05' and `end` < '2025-01-24 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-24 16:12:26] Production.INFO: count ==5513 [2025-01-24 16:12:28] Production.ERROR: pbx CDR StartTime 2025-01-24 13:12:05 - End Time 2025-01-24 16:12:05 [2025-01-24 16:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320803', 'tblTempUsageDetail_20' ) start [2025-01-24 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320803', 'tblTempUsageDetail_20' ) end [2025-01-24 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320803', 'tblTempVendorCDR_20' ) start [2025-01-24 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320803', 'tblTempVendorCDR_20' ) end [2025-01-24 16:12:29] Production.INFO: ProcessCDR(1,14320803,1,1,2) [2025-01-24 16:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320803', 'tblTempUsageDetail_20' ) start [2025-01-24 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320803', 'tblTempUsageDetail_20' ) end [2025-01-24 16:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:12:33] Production.INFO: ==8413== Releasing lock... [2025-01-24 16:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:12:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-24 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:13:06 [end_date_ymd] => 2025-01-24 16:13:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:13:06' and `end` < '2025-01-24 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-24 16:13:35] Production.INFO: count ==5530 [2025-01-24 16:13:37] Production.ERROR: pbx CDR StartTime 2025-01-24 13:13:06 - End Time 2025-01-24 16:13:06 [2025-01-24 16:13:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320808', 'tblTempUsageDetail_20' ) start [2025-01-24 16:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320808', 'tblTempUsageDetail_20' ) end [2025-01-24 16:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320808', 'tblTempVendorCDR_20' ) start [2025-01-24 16:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320808', 'tblTempVendorCDR_20' ) end [2025-01-24 16:13:38] Production.INFO: ProcessCDR(1,14320808,1,1,2) [2025-01-24 16:13:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:13:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:13:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:13:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:13:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320808', 'tblTempUsageDetail_20' ) start [2025-01-24 16:13:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320808', 'tblTempUsageDetail_20' ) end [2025-01-24 16:13:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:13:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:13:43] Production.INFO: ==8489== Releasing lock... [2025-01-24 16:13:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:13:43] Production.INFO: 69.5 MB #Memory Used# [2025-01-24 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:14:05 [end_date_ymd] => 2025-01-24 16:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:14:05' and `end` < '2025-01-24 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-24 16:14:34] Production.INFO: count ==5556 [2025-01-24 16:14:36] Production.ERROR: pbx CDR StartTime 2025-01-24 13:14:05 - End Time 2025-01-24 16:14:05 [2025-01-24 16:14:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320813', 'tblTempUsageDetail_20' ) start [2025-01-24 16:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320813', 'tblTempUsageDetail_20' ) end [2025-01-24 16:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320813', 'tblTempVendorCDR_20' ) start [2025-01-24 16:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320813', 'tblTempVendorCDR_20' ) end [2025-01-24 16:14:36] Production.INFO: ProcessCDR(1,14320813,1,1,2) [2025-01-24 16:14:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:14:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:14:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:14:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:14:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320813', 'tblTempUsageDetail_20' ) start [2025-01-24 16:14:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320813', 'tblTempUsageDetail_20' ) end [2025-01-24 16:14:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:14:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:14:41] Production.INFO: ==8562== Releasing lock... [2025-01-24 16:14:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:14:41] Production.INFO: 69.75 MB #Memory Used# [2025-01-24 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:15:05 [end_date_ymd] => 2025-01-24 16:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:15:05' and `end` < '2025-01-24 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-24 16:15:32] Production.INFO: count ==5572 [2025-01-24 16:15:34] Production.ERROR: pbx CDR StartTime 2025-01-24 13:15:05 - End Time 2025-01-24 16:15:05 [2025-01-24 16:15:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320818', 'tblTempUsageDetail_20' ) start [2025-01-24 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320818', 'tblTempUsageDetail_20' ) end [2025-01-24 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320818', 'tblTempVendorCDR_20' ) start [2025-01-24 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320818', 'tblTempVendorCDR_20' ) end [2025-01-24 16:15:34] Production.INFO: ProcessCDR(1,14320818,1,1,2) [2025-01-24 16:15:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320818', 'tblTempUsageDetail_20' ) start [2025-01-24 16:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320818', 'tblTempUsageDetail_20' ) end [2025-01-24 16:15:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:15:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:15:39] Production.INFO: ==8636== Releasing lock... [2025-01-24 16:15:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:15:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-24 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:16:05 [end_date_ymd] => 2025-01-24 16:16:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:16:05' and `end` < '2025-01-24 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-24 16:16:23] Production.INFO: count ==5583 [2025-01-24 16:16:25] Production.ERROR: pbx CDR StartTime 2025-01-24 13:16:05 - End Time 2025-01-24 16:16:05 [2025-01-24 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320823', 'tblTempUsageDetail_20' ) start [2025-01-24 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320823', 'tblTempUsageDetail_20' ) end [2025-01-24 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320823', 'tblTempVendorCDR_20' ) start [2025-01-24 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320823', 'tblTempVendorCDR_20' ) end [2025-01-24 16:16:25] Production.INFO: ProcessCDR(1,14320823,1,1,2) [2025-01-24 16:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320823', 'tblTempUsageDetail_20' ) start [2025-01-24 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320823', 'tblTempUsageDetail_20' ) end [2025-01-24 16:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:16:30] Production.INFO: ==8707== Releasing lock... [2025-01-24 16:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:16:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-24 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:17:05 [end_date_ymd] => 2025-01-24 16:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:17:05' and `end` < '2025-01-24 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-24 16:17:22] Production.INFO: count ==5585 [2025-01-24 16:17:24] Production.ERROR: pbx CDR StartTime 2025-01-24 13:17:05 - End Time 2025-01-24 16:17:05 [2025-01-24 16:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320828', 'tblTempUsageDetail_20' ) start [2025-01-24 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320828', 'tblTempUsageDetail_20' ) end [2025-01-24 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320828', 'tblTempVendorCDR_20' ) start [2025-01-24 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320828', 'tblTempVendorCDR_20' ) end [2025-01-24 16:17:25] Production.INFO: ProcessCDR(1,14320828,1,1,2) [2025-01-24 16:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320828', 'tblTempUsageDetail_20' ) start [2025-01-24 16:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320828', 'tblTempUsageDetail_20' ) end [2025-01-24 16:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:17:29] Production.INFO: ==8779== Releasing lock... [2025-01-24 16:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:17:29] Production.INFO: 70 MB #Memory Used# [2025-01-24 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:18:06 [end_date_ymd] => 2025-01-24 16:18:06 [RateCDR] => 1 ) [2025-01-24 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:18:06' and `end` < '2025-01-24 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:18:27] Production.INFO: count ==5571 [2025-01-24 16:18:29] Production.ERROR: pbx CDR StartTime 2025-01-24 13:18:06 - End Time 2025-01-24 16:18:06 [2025-01-24 16:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320833', 'tblTempUsageDetail_20' ) start [2025-01-24 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320833', 'tblTempUsageDetail_20' ) end [2025-01-24 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320833', 'tblTempVendorCDR_20' ) start [2025-01-24 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320833', 'tblTempVendorCDR_20' ) end [2025-01-24 16:18:29] Production.INFO: ProcessCDR(1,14320833,1,1,2) [2025-01-24 16:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320833', 'tblTempUsageDetail_20' ) start [2025-01-24 16:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320833', 'tblTempUsageDetail_20' ) end [2025-01-24 16:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:18:34] Production.INFO: ==8863== Releasing lock... [2025-01-24 16:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:18:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-24 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:19:05 [end_date_ymd] => 2025-01-24 16:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:19:05' and `end` < '2025-01-24 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-24 16:19:29] Production.INFO: count ==5585 [2025-01-24 16:19:31] Production.ERROR: pbx CDR StartTime 2025-01-24 13:19:05 - End Time 2025-01-24 16:19:05 [2025-01-24 16:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320838', 'tblTempUsageDetail_20' ) start [2025-01-24 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320838', 'tblTempUsageDetail_20' ) end [2025-01-24 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320838', 'tblTempVendorCDR_20' ) start [2025-01-24 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320838', 'tblTempVendorCDR_20' ) end [2025-01-24 16:19:31] Production.INFO: ProcessCDR(1,14320838,1,1,2) [2025-01-24 16:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320838', 'tblTempUsageDetail_20' ) start [2025-01-24 16:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320838', 'tblTempUsageDetail_20' ) end [2025-01-24 16:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:19:36] Production.INFO: ==8938== Releasing lock... [2025-01-24 16:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:19:36] Production.INFO: 70 MB #Memory Used# [2025-01-24 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:20:06 [end_date_ymd] => 2025-01-24 16:20:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:20:06' and `end` < '2025-01-24 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-24 16:20:35] Production.INFO: count ==5590 [2025-01-24 16:20:38] Production.ERROR: pbx CDR StartTime 2025-01-24 13:20:06 - End Time 2025-01-24 16:20:06 [2025-01-24 16:20:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320844', 'tblTempUsageDetail_20' ) start [2025-01-24 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320844', 'tblTempUsageDetail_20' ) end [2025-01-24 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320844', 'tblTempVendorCDR_20' ) start [2025-01-24 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320844', 'tblTempVendorCDR_20' ) end [2025-01-24 16:20:38] Production.INFO: ProcessCDR(1,14320844,1,1,2) [2025-01-24 16:20:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:20:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:20:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:20:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320844', 'tblTempUsageDetail_20' ) start [2025-01-24 16:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320844', 'tblTempUsageDetail_20' ) end [2025-01-24 16:20:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:20:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:20:43] Production.INFO: ==9012== Releasing lock... [2025-01-24 16:20:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:20:43] Production.INFO: 70 MB #Memory Used# [2025-01-24 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:21:05 [end_date_ymd] => 2025-01-24 16:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:21:05' and `end` < '2025-01-24 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-24 16:21:34] Production.INFO: count ==5657 [2025-01-24 16:21:36] Production.ERROR: pbx CDR StartTime 2025-01-24 13:21:05 - End Time 2025-01-24 16:21:05 [2025-01-24 16:21:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320849', 'tblTempUsageDetail_20' ) start [2025-01-24 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320849', 'tblTempUsageDetail_20' ) end [2025-01-24 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320849', 'tblTempVendorCDR_20' ) start [2025-01-24 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320849', 'tblTempVendorCDR_20' ) end [2025-01-24 16:21:36] Production.INFO: ProcessCDR(1,14320849,1,1,2) [2025-01-24 16:21:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:21:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:21:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:21:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:21:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320849', 'tblTempUsageDetail_20' ) start [2025-01-24 16:21:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320849', 'tblTempUsageDetail_20' ) end [2025-01-24 16:21:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:21:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:21:41] Production.INFO: ==9090== Releasing lock... [2025-01-24 16:21:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:21:41] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:22:06 [end_date_ymd] => 2025-01-24 16:22:06 [RateCDR] => 1 ) [2025-01-24 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:22:06' and `end` < '2025-01-24 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:22:26] Production.INFO: count ==5661 [2025-01-24 16:22:28] Production.ERROR: pbx CDR StartTime 2025-01-24 13:22:06 - End Time 2025-01-24 16:22:06 [2025-01-24 16:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320854', 'tblTempUsageDetail_20' ) start [2025-01-24 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320854', 'tblTempUsageDetail_20' ) end [2025-01-24 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320854', 'tblTempVendorCDR_20' ) start [2025-01-24 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320854', 'tblTempVendorCDR_20' ) end [2025-01-24 16:22:29] Production.INFO: ProcessCDR(1,14320854,1,1,2) [2025-01-24 16:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320854', 'tblTempUsageDetail_20' ) start [2025-01-24 16:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320854', 'tblTempUsageDetail_20' ) end [2025-01-24 16:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:22:34] Production.INFO: ==9208== Releasing lock... [2025-01-24 16:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:22:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:23:05 [end_date_ymd] => 2025-01-24 16:23:05 [RateCDR] => 1 ) [2025-01-24 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:23:05' and `end` < '2025-01-24 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:23:34] Production.INFO: count ==5659 [2025-01-24 16:23:36] Production.ERROR: pbx CDR StartTime 2025-01-24 13:23:05 - End Time 2025-01-24 16:23:05 [2025-01-24 16:23:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320859', 'tblTempUsageDetail_20' ) start [2025-01-24 16:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320859', 'tblTempUsageDetail_20' ) end [2025-01-24 16:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320859', 'tblTempVendorCDR_20' ) start [2025-01-24 16:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320859', 'tblTempVendorCDR_20' ) end [2025-01-24 16:23:36] Production.INFO: ProcessCDR(1,14320859,1,1,2) [2025-01-24 16:23:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:23:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:23:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:23:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:23:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320859', 'tblTempUsageDetail_20' ) start [2025-01-24 16:23:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320859', 'tblTempUsageDetail_20' ) end [2025-01-24 16:23:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:23:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:23:41] Production.INFO: ==9279== Releasing lock... [2025-01-24 16:23:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:23:41] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:24:06 [end_date_ymd] => 2025-01-24 16:24:06 [RateCDR] => 1 ) [2025-01-24 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:24:06' and `end` < '2025-01-24 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:24:28] Production.INFO: count ==5665 [2025-01-24 16:24:30] Production.ERROR: pbx CDR StartTime 2025-01-24 13:24:06 - End Time 2025-01-24 16:24:06 [2025-01-24 16:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320864', 'tblTempUsageDetail_20' ) start [2025-01-24 16:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320864', 'tblTempUsageDetail_20' ) end [2025-01-24 16:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320864', 'tblTempVendorCDR_20' ) start [2025-01-24 16:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320864', 'tblTempVendorCDR_20' ) end [2025-01-24 16:24:30] Production.INFO: ProcessCDR(1,14320864,1,1,2) [2025-01-24 16:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320864', 'tblTempUsageDetail_20' ) start [2025-01-24 16:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320864', 'tblTempUsageDetail_20' ) end [2025-01-24 16:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:24:35] Production.INFO: ==9353== Releasing lock... [2025-01-24 16:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:24:35] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:25:05 [end_date_ymd] => 2025-01-24 16:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:25:05' and `end` < '2025-01-24 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-24 16:25:29] Production.INFO: count ==5651 [2025-01-24 16:25:31] Production.ERROR: pbx CDR StartTime 2025-01-24 13:25:05 - End Time 2025-01-24 16:25:05 [2025-01-24 16:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320869', 'tblTempUsageDetail_20' ) start [2025-01-24 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320869', 'tblTempUsageDetail_20' ) end [2025-01-24 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320869', 'tblTempVendorCDR_20' ) start [2025-01-24 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320869', 'tblTempVendorCDR_20' ) end [2025-01-24 16:25:32] Production.INFO: ProcessCDR(1,14320869,1,1,2) [2025-01-24 16:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320869', 'tblTempUsageDetail_20' ) start [2025-01-24 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320869', 'tblTempUsageDetail_20' ) end [2025-01-24 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:25:36] Production.INFO: ==9425== Releasing lock... [2025-01-24 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:25:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:26:04 [end_date_ymd] => 2025-01-24 16:26:04 [RateCDR] => 1 ) [2025-01-24 16:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:26:04' and `end` < '2025-01-24 16:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:26:25] Production.INFO: count ==5654 [2025-01-24 16:26:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:26:04 - End Time 2025-01-24 16:26:04 [2025-01-24 16:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320874', 'tblTempUsageDetail_20' ) start [2025-01-24 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320874', 'tblTempUsageDetail_20' ) end [2025-01-24 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320874', 'tblTempVendorCDR_20' ) start [2025-01-24 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320874', 'tblTempVendorCDR_20' ) end [2025-01-24 16:26:27] Production.INFO: ProcessCDR(1,14320874,1,1,2) [2025-01-24 16:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320874', 'tblTempUsageDetail_20' ) start [2025-01-24 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320874', 'tblTempUsageDetail_20' ) end [2025-01-24 16:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:26:32] Production.INFO: ==9498== Releasing lock... [2025-01-24 16:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:26:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:27:06 [end_date_ymd] => 2025-01-24 16:27:06 [RateCDR] => 1 ) [2025-01-24 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:27:06' and `end` < '2025-01-24 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:27:22] Production.INFO: count ==5637 [2025-01-24 16:27:24] Production.ERROR: pbx CDR StartTime 2025-01-24 13:27:06 - End Time 2025-01-24 16:27:06 [2025-01-24 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320879', 'tblTempUsageDetail_20' ) start [2025-01-24 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320879', 'tblTempUsageDetail_20' ) end [2025-01-24 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320879', 'tblTempVendorCDR_20' ) start [2025-01-24 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320879', 'tblTempVendorCDR_20' ) end [2025-01-24 16:27:25] Production.INFO: ProcessCDR(1,14320879,1,1,2) [2025-01-24 16:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320879', 'tblTempUsageDetail_20' ) start [2025-01-24 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320879', 'tblTempUsageDetail_20' ) end [2025-01-24 16:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:27:29] Production.INFO: ==9570== Releasing lock... [2025-01-24 16:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:27:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:28:05 [end_date_ymd] => 2025-01-24 16:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:28:05' and `end` < '2025-01-24 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-24 16:28:30] Production.INFO: count ==5624 [2025-01-24 16:28:32] Production.ERROR: pbx CDR StartTime 2025-01-24 13:28:05 - End Time 2025-01-24 16:28:05 [2025-01-24 16:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320884', 'tblTempUsageDetail_20' ) start [2025-01-24 16:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320884', 'tblTempUsageDetail_20' ) end [2025-01-24 16:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320884', 'tblTempVendorCDR_20' ) start [2025-01-24 16:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320884', 'tblTempVendorCDR_20' ) end [2025-01-24 16:28:32] Production.INFO: ProcessCDR(1,14320884,1,1,2) [2025-01-24 16:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:28:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320884', 'tblTempUsageDetail_20' ) start [2025-01-24 16:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320884', 'tblTempUsageDetail_20' ) end [2025-01-24 16:28:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:28:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:28:37] Production.INFO: ==9640== Releasing lock... [2025-01-24 16:28:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:28:37] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:29:05 [end_date_ymd] => 2025-01-24 16:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:29:05' and `end` < '2025-01-24 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-24 16:29:26] Production.INFO: count ==5634 [2025-01-24 16:29:28] Production.ERROR: pbx CDR StartTime 2025-01-24 13:29:05 - End Time 2025-01-24 16:29:05 [2025-01-24 16:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320889', 'tblTempUsageDetail_20' ) start [2025-01-24 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320889', 'tblTempUsageDetail_20' ) end [2025-01-24 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320889', 'tblTempVendorCDR_20' ) start [2025-01-24 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320889', 'tblTempVendorCDR_20' ) end [2025-01-24 16:29:28] Production.INFO: ProcessCDR(1,14320889,1,1,2) [2025-01-24 16:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320889', 'tblTempUsageDetail_20' ) start [2025-01-24 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320889', 'tblTempUsageDetail_20' ) end [2025-01-24 16:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:29:33] Production.INFO: ==9713== Releasing lock... [2025-01-24 16:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:29:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:30:06 [end_date_ymd] => 2025-01-24 16:30:06 [RateCDR] => 1 ) [2025-01-24 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:30:06' and `end` < '2025-01-24 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:30:30] Production.INFO: count ==5642 [2025-01-24 16:30:32] Production.ERROR: pbx CDR StartTime 2025-01-24 13:30:06 - End Time 2025-01-24 16:30:06 [2025-01-24 16:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320894', 'tblTempUsageDetail_20' ) start [2025-01-24 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320894', 'tblTempUsageDetail_20' ) end [2025-01-24 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320894', 'tblTempVendorCDR_20' ) start [2025-01-24 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320894', 'tblTempVendorCDR_20' ) end [2025-01-24 16:30:32] Production.INFO: ProcessCDR(1,14320894,1,1,2) [2025-01-24 16:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320894', 'tblTempUsageDetail_20' ) start [2025-01-24 16:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320894', 'tblTempUsageDetail_20' ) end [2025-01-24 16:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:30:37] Production.INFO: ==9787== Releasing lock... [2025-01-24 16:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:30:37] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:31:05 [end_date_ymd] => 2025-01-24 16:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:31:05' and `end` < '2025-01-24 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-24 16:31:29] Production.INFO: count ==5710 [2025-01-24 16:31:31] Production.ERROR: pbx CDR StartTime 2025-01-24 13:31:05 - End Time 2025-01-24 16:31:05 [2025-01-24 16:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320900', 'tblTempUsageDetail_20' ) start [2025-01-24 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320900', 'tblTempUsageDetail_20' ) end [2025-01-24 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320900', 'tblTempVendorCDR_20' ) start [2025-01-24 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320900', 'tblTempVendorCDR_20' ) end [2025-01-24 16:31:31] Production.INFO: ProcessCDR(1,14320900,1,1,2) [2025-01-24 16:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320900', 'tblTempUsageDetail_20' ) start [2025-01-24 16:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320900', 'tblTempUsageDetail_20' ) end [2025-01-24 16:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:31:35] Production.INFO: ==9863== Releasing lock... [2025-01-24 16:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:31:35] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:32:06 [end_date_ymd] => 2025-01-24 16:32:06 [RateCDR] => 1 ) [2025-01-24 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:32:06' and `end` < '2025-01-24 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:32:36] Production.INFO: count ==5710 [2025-01-24 16:32:38] Production.ERROR: pbx CDR StartTime 2025-01-24 13:32:06 - End Time 2025-01-24 16:32:06 [2025-01-24 16:32:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320905', 'tblTempUsageDetail_20' ) start [2025-01-24 16:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320905', 'tblTempUsageDetail_20' ) end [2025-01-24 16:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320905', 'tblTempVendorCDR_20' ) start [2025-01-24 16:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320905', 'tblTempVendorCDR_20' ) end [2025-01-24 16:32:38] Production.INFO: ProcessCDR(1,14320905,1,1,2) [2025-01-24 16:32:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:32:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:32:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:32:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:32:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320905', 'tblTempUsageDetail_20' ) start [2025-01-24 16:32:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320905', 'tblTempUsageDetail_20' ) end [2025-01-24 16:32:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:32:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:32:42] Production.INFO: ==9937== Releasing lock... [2025-01-24 16:32:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:32:42] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:33:05 [end_date_ymd] => 2025-01-24 16:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:33:05' and `end` < '2025-01-24 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-24 16:33:33] Production.INFO: count ==5723 [2025-01-24 16:33:35] Production.ERROR: pbx CDR StartTime 2025-01-24 13:33:05 - End Time 2025-01-24 16:33:05 [2025-01-24 16:33:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320910', 'tblTempUsageDetail_20' ) start [2025-01-24 16:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320910', 'tblTempUsageDetail_20' ) end [2025-01-24 16:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320910', 'tblTempVendorCDR_20' ) start [2025-01-24 16:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320910', 'tblTempVendorCDR_20' ) end [2025-01-24 16:33:35] Production.INFO: ProcessCDR(1,14320910,1,1,2) [2025-01-24 16:33:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:33:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:33:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:33:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:33:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320910', 'tblTempUsageDetail_20' ) start [2025-01-24 16:33:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320910', 'tblTempUsageDetail_20' ) end [2025-01-24 16:33:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:33:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:33:40] Production.INFO: ==10009== Releasing lock... [2025-01-24 16:33:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:33:40] Production.INFO: 71 MB #Memory Used# [2025-01-24 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:34:05 [end_date_ymd] => 2025-01-24 16:34:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:34:05' and `end` < '2025-01-24 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-24 16:34:35] Production.INFO: count ==5708 [2025-01-24 16:34:37] Production.ERROR: pbx CDR StartTime 2025-01-24 13:34:05 - End Time 2025-01-24 16:34:05 [2025-01-24 16:34:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320915', 'tblTempUsageDetail_20' ) start [2025-01-24 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320915', 'tblTempUsageDetail_20' ) end [2025-01-24 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320915', 'tblTempVendorCDR_20' ) start [2025-01-24 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320915', 'tblTempVendorCDR_20' ) end [2025-01-24 16:34:37] Production.INFO: ProcessCDR(1,14320915,1,1,2) [2025-01-24 16:34:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:34:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:34:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:34:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320915', 'tblTempUsageDetail_20' ) start [2025-01-24 16:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320915', 'tblTempUsageDetail_20' ) end [2025-01-24 16:34:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:34:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:34:42] Production.INFO: ==10082== Releasing lock... [2025-01-24 16:34:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:34:42] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:35:05 [end_date_ymd] => 2025-01-24 16:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:35:05' and `end` < '2025-01-24 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-24 16:35:31] Production.INFO: count ==5691 [2025-01-24 16:35:33] Production.ERROR: pbx CDR StartTime 2025-01-24 13:35:05 - End Time 2025-01-24 16:35:05 [2025-01-24 16:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320920', 'tblTempUsageDetail_20' ) start [2025-01-24 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320920', 'tblTempUsageDetail_20' ) end [2025-01-24 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320920', 'tblTempVendorCDR_20' ) start [2025-01-24 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320920', 'tblTempVendorCDR_20' ) end [2025-01-24 16:35:33] Production.INFO: ProcessCDR(1,14320920,1,1,2) [2025-01-24 16:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320920', 'tblTempUsageDetail_20' ) start [2025-01-24 16:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320920', 'tblTempUsageDetail_20' ) end [2025-01-24 16:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:35:37] Production.INFO: ==10155== Releasing lock... [2025-01-24 16:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:35:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:36:06 [end_date_ymd] => 2025-01-24 16:36:06 [RateCDR] => 1 ) [2025-01-24 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:36:06' and `end` < '2025-01-24 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:36:27] Production.INFO: count ==5665 [2025-01-24 16:36:29] Production.ERROR: pbx CDR StartTime 2025-01-24 13:36:06 - End Time 2025-01-24 16:36:06 [2025-01-24 16:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320925', 'tblTempUsageDetail_20' ) start [2025-01-24 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320925', 'tblTempUsageDetail_20' ) end [2025-01-24 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320925', 'tblTempVendorCDR_20' ) start [2025-01-24 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320925', 'tblTempVendorCDR_20' ) end [2025-01-24 16:36:30] Production.INFO: ProcessCDR(1,14320925,1,1,2) [2025-01-24 16:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320925', 'tblTempUsageDetail_20' ) start [2025-01-24 16:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320925', 'tblTempUsageDetail_20' ) end [2025-01-24 16:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:36:34] Production.INFO: ==10229== Releasing lock... [2025-01-24 16:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:36:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:37:05 [end_date_ymd] => 2025-01-24 16:37:05 [RateCDR] => 1 ) [2025-01-24 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:37:05' and `end` < '2025-01-24 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:37:24] Production.INFO: count ==5653 [2025-01-24 16:37:26] Production.ERROR: pbx CDR StartTime 2025-01-24 13:37:05 - End Time 2025-01-24 16:37:05 [2025-01-24 16:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320930', 'tblTempUsageDetail_20' ) start [2025-01-24 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320930', 'tblTempUsageDetail_20' ) end [2025-01-24 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320930', 'tblTempVendorCDR_20' ) start [2025-01-24 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320930', 'tblTempVendorCDR_20' ) end [2025-01-24 16:37:27] Production.INFO: ProcessCDR(1,14320930,1,1,2) [2025-01-24 16:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320930', 'tblTempUsageDetail_20' ) start [2025-01-24 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320930', 'tblTempUsageDetail_20' ) end [2025-01-24 16:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:37:31] Production.INFO: ==10346== Releasing lock... [2025-01-24 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:37:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:38:06 [end_date_ymd] => 2025-01-24 16:38:06 [RateCDR] => 1 ) [2025-01-24 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:38:06' and `end` < '2025-01-24 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:38:26] Production.INFO: count ==5661 [2025-01-24 16:38:28] Production.ERROR: pbx CDR StartTime 2025-01-24 13:38:06 - End Time 2025-01-24 16:38:06 [2025-01-24 16:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320935', 'tblTempUsageDetail_20' ) start [2025-01-24 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320935', 'tblTempUsageDetail_20' ) end [2025-01-24 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320935', 'tblTempVendorCDR_20' ) start [2025-01-24 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320935', 'tblTempVendorCDR_20' ) end [2025-01-24 16:38:28] Production.INFO: ProcessCDR(1,14320935,1,1,2) [2025-01-24 16:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320935', 'tblTempUsageDetail_20' ) start [2025-01-24 16:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320935', 'tblTempUsageDetail_20' ) end [2025-01-24 16:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:38:33] Production.INFO: ==10418== Releasing lock... [2025-01-24 16:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:38:33] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:39:05 [end_date_ymd] => 2025-01-24 16:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:39:05' and `end` < '2025-01-24 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-24 16:39:27] Production.INFO: count ==5680 [2025-01-24 16:39:29] Production.ERROR: pbx CDR StartTime 2025-01-24 13:39:05 - End Time 2025-01-24 16:39:05 [2025-01-24 16:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320940', 'tblTempUsageDetail_20' ) start [2025-01-24 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320940', 'tblTempUsageDetail_20' ) end [2025-01-24 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320940', 'tblTempVendorCDR_20' ) start [2025-01-24 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320940', 'tblTempVendorCDR_20' ) end [2025-01-24 16:39:29] Production.INFO: ProcessCDR(1,14320940,1,1,2) [2025-01-24 16:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320940', 'tblTempUsageDetail_20' ) start [2025-01-24 16:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320940', 'tblTempUsageDetail_20' ) end [2025-01-24 16:39:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:39:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:39:34] Production.INFO: ==10490== Releasing lock... [2025-01-24 16:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:39:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:40:06 [end_date_ymd] => 2025-01-24 16:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:40:06' and `end` < '2025-01-24 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-24 16:40:35] Production.INFO: count ==5674 [2025-01-24 16:40:37] Production.ERROR: pbx CDR StartTime 2025-01-24 13:40:06 - End Time 2025-01-24 16:40:06 [2025-01-24 16:40:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320946', 'tblTempUsageDetail_20' ) start [2025-01-24 16:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320946', 'tblTempUsageDetail_20' ) end [2025-01-24 16:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320946', 'tblTempVendorCDR_20' ) start [2025-01-24 16:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320946', 'tblTempVendorCDR_20' ) end [2025-01-24 16:40:37] Production.INFO: ProcessCDR(1,14320946,1,1,2) [2025-01-24 16:40:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:40:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:40:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:40:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320946', 'tblTempUsageDetail_20' ) start [2025-01-24 16:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320946', 'tblTempUsageDetail_20' ) end [2025-01-24 16:40:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:40:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:40:43] Production.INFO: ==10568== Releasing lock... [2025-01-24 16:40:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:40:43] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:41:05 [end_date_ymd] => 2025-01-24 16:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:41:05' and `end` < '2025-01-24 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-24 16:41:30] Production.INFO: count ==5765 [2025-01-24 16:41:32] Production.ERROR: pbx CDR StartTime 2025-01-24 13:41:05 - End Time 2025-01-24 16:41:05 [2025-01-24 16:41:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320951', 'tblTempUsageDetail_20' ) start [2025-01-24 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320951', 'tblTempUsageDetail_20' ) end [2025-01-24 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320951', 'tblTempVendorCDR_20' ) start [2025-01-24 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320951', 'tblTempVendorCDR_20' ) end [2025-01-24 16:41:32] Production.INFO: ProcessCDR(1,14320951,1,1,2) [2025-01-24 16:41:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320951', 'tblTempUsageDetail_20' ) start [2025-01-24 16:41:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320951', 'tblTempUsageDetail_20' ) end [2025-01-24 16:41:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:41:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:41:37] Production.INFO: ==10651== Releasing lock... [2025-01-24 16:41:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:41:37] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:42:06 [end_date_ymd] => 2025-01-24 16:42:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:42:06' and `end` < '2025-01-24 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-24 16:42:32] Production.INFO: count ==5768 [2025-01-24 16:42:34] Production.ERROR: pbx CDR StartTime 2025-01-24 13:42:06 - End Time 2025-01-24 16:42:06 [2025-01-24 16:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320956', 'tblTempUsageDetail_20' ) start [2025-01-24 16:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320956', 'tblTempUsageDetail_20' ) end [2025-01-24 16:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320956', 'tblTempVendorCDR_20' ) start [2025-01-24 16:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320956', 'tblTempVendorCDR_20' ) end [2025-01-24 16:42:35] Production.INFO: ProcessCDR(1,14320956,1,1,2) [2025-01-24 16:42:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320956', 'tblTempUsageDetail_20' ) start [2025-01-24 16:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320956', 'tblTempUsageDetail_20' ) end [2025-01-24 16:42:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:42:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:42:39] Production.INFO: ==10721== Releasing lock... [2025-01-24 16:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:42:39] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:43:05 [end_date_ymd] => 2025-01-24 16:43:05 [RateCDR] => 1 ) [2025-01-24 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:43:05' and `end` < '2025-01-24 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:43:25] Production.INFO: count ==5767 [2025-01-24 16:43:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:43:05 - End Time 2025-01-24 16:43:05 [2025-01-24 16:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320961', 'tblTempUsageDetail_20' ) start [2025-01-24 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320961', 'tblTempUsageDetail_20' ) end [2025-01-24 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320961', 'tblTempVendorCDR_20' ) start [2025-01-24 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320961', 'tblTempVendorCDR_20' ) end [2025-01-24 16:43:27] Production.INFO: ProcessCDR(1,14320961,1,1,2) [2025-01-24 16:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320961', 'tblTempUsageDetail_20' ) start [2025-01-24 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320961', 'tblTempUsageDetail_20' ) end [2025-01-24 16:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:43:33] Production.INFO: ==10793== Releasing lock... [2025-01-24 16:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:43:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:44:05 [end_date_ymd] => 2025-01-24 16:44:05 [RateCDR] => 1 ) [2025-01-24 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:44:05' and `end` < '2025-01-24 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:44:25] Production.INFO: count ==5787 [2025-01-24 16:44:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:44:05 - End Time 2025-01-24 16:44:05 [2025-01-24 16:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320966', 'tblTempUsageDetail_20' ) start [2025-01-24 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320966', 'tblTempUsageDetail_20' ) end [2025-01-24 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320966', 'tblTempVendorCDR_20' ) start [2025-01-24 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320966', 'tblTempVendorCDR_20' ) end [2025-01-24 16:44:27] Production.INFO: ProcessCDR(1,14320966,1,1,2) [2025-01-24 16:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320966', 'tblTempUsageDetail_20' ) start [2025-01-24 16:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320966', 'tblTempUsageDetail_20' ) end [2025-01-24 16:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:44:33] Production.INFO: ==10866== Releasing lock... [2025-01-24 16:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:44:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:45:05 [end_date_ymd] => 2025-01-24 16:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:45:05' and `end` < '2025-01-24 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-24 16:45:29] Production.INFO: count ==5784 [2025-01-24 16:45:31] Production.ERROR: pbx CDR StartTime 2025-01-24 13:45:05 - End Time 2025-01-24 16:45:05 [2025-01-24 16:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320971', 'tblTempUsageDetail_20' ) start [2025-01-24 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320971', 'tblTempUsageDetail_20' ) end [2025-01-24 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320971', 'tblTempVendorCDR_20' ) start [2025-01-24 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320971', 'tblTempVendorCDR_20' ) end [2025-01-24 16:45:31] Production.INFO: ProcessCDR(1,14320971,1,1,2) [2025-01-24 16:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320971', 'tblTempUsageDetail_20' ) start [2025-01-24 16:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320971', 'tblTempUsageDetail_20' ) end [2025-01-24 16:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:45:36] Production.INFO: ==10940== Releasing lock... [2025-01-24 16:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:45:36] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:46:06 [end_date_ymd] => 2025-01-24 16:46:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:46:06' and `end` < '2025-01-24 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-24 16:46:23] Production.INFO: count ==5789 [2025-01-24 16:46:25] Production.ERROR: pbx CDR StartTime 2025-01-24 13:46:06 - End Time 2025-01-24 16:46:06 [2025-01-24 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320976', 'tblTempUsageDetail_20' ) start [2025-01-24 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320976', 'tblTempUsageDetail_20' ) end [2025-01-24 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320976', 'tblTempVendorCDR_20' ) start [2025-01-24 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320976', 'tblTempVendorCDR_20' ) end [2025-01-24 16:46:25] Production.INFO: ProcessCDR(1,14320976,1,1,2) [2025-01-24 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320976', 'tblTempUsageDetail_20' ) start [2025-01-24 16:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320976', 'tblTempUsageDetail_20' ) end [2025-01-24 16:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:46:30] Production.INFO: ==11010== Releasing lock... [2025-01-24 16:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:46:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:47:05 [end_date_ymd] => 2025-01-24 16:47:05 [RateCDR] => 1 ) [2025-01-24 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:47:05' and `end` < '2025-01-24 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:47:25] Production.INFO: count ==5806 [2025-01-24 16:47:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:47:05 - End Time 2025-01-24 16:47:05 [2025-01-24 16:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320981', 'tblTempUsageDetail_20' ) start [2025-01-24 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320981', 'tblTempUsageDetail_20' ) end [2025-01-24 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320981', 'tblTempVendorCDR_20' ) start [2025-01-24 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320981', 'tblTempVendorCDR_20' ) end [2025-01-24 16:47:27] Production.INFO: ProcessCDR(1,14320981,1,1,2) [2025-01-24 16:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320981', 'tblTempUsageDetail_20' ) start [2025-01-24 16:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320981', 'tblTempUsageDetail_20' ) end [2025-01-24 16:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:47:32] Production.INFO: ==11080== Releasing lock... [2025-01-24 16:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:47:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:48:05 [end_date_ymd] => 2025-01-24 16:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:48:05' and `end` < '2025-01-24 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-24 16:48:30] Production.INFO: count ==5831 [2025-01-24 16:48:33] Production.ERROR: pbx CDR StartTime 2025-01-24 13:48:05 - End Time 2025-01-24 16:48:05 [2025-01-24 16:48:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320986', 'tblTempUsageDetail_20' ) start [2025-01-24 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320986', 'tblTempUsageDetail_20' ) end [2025-01-24 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320986', 'tblTempVendorCDR_20' ) start [2025-01-24 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320986', 'tblTempVendorCDR_20' ) end [2025-01-24 16:48:33] Production.INFO: ProcessCDR(1,14320986,1,1,2) [2025-01-24 16:48:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:48:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:48:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:48:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320986', 'tblTempUsageDetail_20' ) start [2025-01-24 16:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320986', 'tblTempUsageDetail_20' ) end [2025-01-24 16:48:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:48:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:48:38] Production.INFO: ==11152== Releasing lock... [2025-01-24 16:48:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:48:38] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:49:05 [end_date_ymd] => 2025-01-24 16:49:05 [RateCDR] => 1 ) [2025-01-24 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:49:05' and `end` < '2025-01-24 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:49:28] Production.INFO: count ==5837 [2025-01-24 16:49:30] Production.ERROR: pbx CDR StartTime 2025-01-24 13:49:05 - End Time 2025-01-24 16:49:05 [2025-01-24 16:49:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320991', 'tblTempUsageDetail_20' ) start [2025-01-24 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320991', 'tblTempUsageDetail_20' ) end [2025-01-24 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320991', 'tblTempVendorCDR_20' ) start [2025-01-24 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320991', 'tblTempVendorCDR_20' ) end [2025-01-24 16:49:31] Production.INFO: ProcessCDR(1,14320991,1,1,2) [2025-01-24 16:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:49:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:49:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:49:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:49:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320991', 'tblTempUsageDetail_20' ) start [2025-01-24 16:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320991', 'tblTempUsageDetail_20' ) end [2025-01-24 16:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:49:36] Production.INFO: ==11223== Releasing lock... [2025-01-24 16:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:49:36] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:50:06 [end_date_ymd] => 2025-01-24 16:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 13:50:06' and `end` < '2025-01-24 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-24 16:50:30] Production.INFO: count ==5821 [2025-01-24 16:50:33] Production.ERROR: pbx CDR StartTime 2025-01-24 13:50:06 - End Time 2025-01-24 16:50:06 [2025-01-24 16:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320997', 'tblTempUsageDetail_20' ) start [2025-01-24 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14320997', 'tblTempUsageDetail_20' ) end [2025-01-24 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320997', 'tblTempVendorCDR_20' ) start [2025-01-24 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14320997', 'tblTempVendorCDR_20' ) end [2025-01-24 16:50:33] Production.INFO: ProcessCDR(1,14320997,1,1,2) [2025-01-24 16:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14320997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14320997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14320997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14320997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320997', 'tblTempUsageDetail_20' ) start [2025-01-24 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14320997', 'tblTempUsageDetail_20' ) end [2025-01-24 16:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:50:38] Production.INFO: ==11296== Releasing lock... [2025-01-24 16:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:50:38] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:51:05 [end_date_ymd] => 2025-01-24 16:51:05 [RateCDR] => 1 ) [2025-01-24 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:51:05' and `end` < '2025-01-24 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:51:25] Production.INFO: count ==5872 [2025-01-24 16:51:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:51:05 - End Time 2025-01-24 16:51:05 [2025-01-24 16:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321002', 'tblTempUsageDetail_20' ) start [2025-01-24 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321002', 'tblTempUsageDetail_20' ) end [2025-01-24 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321002', 'tblTempVendorCDR_20' ) start [2025-01-24 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321002', 'tblTempVendorCDR_20' ) end [2025-01-24 16:51:27] Production.INFO: ProcessCDR(1,14321002,1,1,2) [2025-01-24 16:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321002', 'tblTempUsageDetail_20' ) start [2025-01-24 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321002', 'tblTempUsageDetail_20' ) end [2025-01-24 16:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:51:32] Production.INFO: ==11369== Releasing lock... [2025-01-24 16:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:51:32] Production.INFO: 72 MB #Memory Used# [2025-01-24 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:52:06 [end_date_ymd] => 2025-01-24 16:52:06 [RateCDR] => 1 ) [2025-01-24 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:52:06' and `end` < '2025-01-24 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:52:32] Production.INFO: count ==5876 [2025-01-24 16:52:34] Production.ERROR: pbx CDR StartTime 2025-01-24 13:52:06 - End Time 2025-01-24 16:52:06 [2025-01-24 16:52:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321007', 'tblTempUsageDetail_20' ) start [2025-01-24 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321007', 'tblTempUsageDetail_20' ) end [2025-01-24 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321007', 'tblTempVendorCDR_20' ) start [2025-01-24 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321007', 'tblTempVendorCDR_20' ) end [2025-01-24 16:52:35] Production.INFO: ProcessCDR(1,14321007,1,1,2) [2025-01-24 16:52:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:52:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:52:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:52:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321007', 'tblTempUsageDetail_20' ) start [2025-01-24 16:52:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321007', 'tblTempUsageDetail_20' ) end [2025-01-24 16:52:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:52:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:52:40] Production.INFO: ==11439== Releasing lock... [2025-01-24 16:52:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:52:40] Production.INFO: 72 MB #Memory Used# [2025-01-24 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:53:05 [end_date_ymd] => 2025-01-24 16:53:05 [RateCDR] => 1 ) [2025-01-24 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:53:05' and `end` < '2025-01-24 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:53:25] Production.INFO: count ==5885 [2025-01-24 16:53:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:53:05 - End Time 2025-01-24 16:53:05 [2025-01-24 16:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321012', 'tblTempUsageDetail_20' ) start [2025-01-24 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321012', 'tblTempUsageDetail_20' ) end [2025-01-24 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321012', 'tblTempVendorCDR_20' ) start [2025-01-24 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321012', 'tblTempVendorCDR_20' ) end [2025-01-24 16:53:27] Production.INFO: ProcessCDR(1,14321012,1,1,2) [2025-01-24 16:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321012', 'tblTempUsageDetail_20' ) start [2025-01-24 16:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321012', 'tblTempUsageDetail_20' ) end [2025-01-24 16:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:53:32] Production.INFO: ==11557== Releasing lock... [2025-01-24 16:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:53:32] Production.INFO: 72 MB #Memory Used# [2025-01-24 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:54:05 [end_date_ymd] => 2025-01-24 16:54:05 [RateCDR] => 1 ) [2025-01-24 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:54:05' and `end` < '2025-01-24 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:54:30] Production.INFO: count ==5891 [2025-01-24 16:54:32] Production.ERROR: pbx CDR StartTime 2025-01-24 13:54:05 - End Time 2025-01-24 16:54:05 [2025-01-24 16:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321017', 'tblTempUsageDetail_20' ) start [2025-01-24 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321017', 'tblTempUsageDetail_20' ) end [2025-01-24 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321017', 'tblTempVendorCDR_20' ) start [2025-01-24 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321017', 'tblTempVendorCDR_20' ) end [2025-01-24 16:54:32] Production.INFO: ProcessCDR(1,14321017,1,1,2) [2025-01-24 16:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321017', 'tblTempUsageDetail_20' ) start [2025-01-24 16:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321017', 'tblTempUsageDetail_20' ) end [2025-01-24 16:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:54:37] Production.INFO: ==11628== Releasing lock... [2025-01-24 16:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:54:37] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:55:05 [end_date_ymd] => 2025-01-24 16:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:55:05' and `end` < '2025-01-24 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-24 16:55:32] Production.INFO: count ==5895 [2025-01-24 16:55:35] Production.ERROR: pbx CDR StartTime 2025-01-24 13:55:05 - End Time 2025-01-24 16:55:05 [2025-01-24 16:55:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321022', 'tblTempUsageDetail_20' ) start [2025-01-24 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321022', 'tblTempUsageDetail_20' ) end [2025-01-24 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321022', 'tblTempVendorCDR_20' ) start [2025-01-24 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321022', 'tblTempVendorCDR_20' ) end [2025-01-24 16:55:35] Production.INFO: ProcessCDR(1,14321022,1,1,2) [2025-01-24 16:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:55:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321022', 'tblTempUsageDetail_20' ) start [2025-01-24 16:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321022', 'tblTempUsageDetail_20' ) end [2025-01-24 16:55:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:55:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:55:40] Production.INFO: ==11699== Releasing lock... [2025-01-24 16:55:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:55:40] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:56:05 [end_date_ymd] => 2025-01-24 16:56:05 [RateCDR] => 1 ) [2025-01-24 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:56:05' and `end` < '2025-01-24 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:56:26] Production.INFO: count ==5906 [2025-01-24 16:56:28] Production.ERROR: pbx CDR StartTime 2025-01-24 13:56:05 - End Time 2025-01-24 16:56:05 [2025-01-24 16:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321027', 'tblTempUsageDetail_20' ) start [2025-01-24 16:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321027', 'tblTempUsageDetail_20' ) end [2025-01-24 16:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321027', 'tblTempVendorCDR_20' ) start [2025-01-24 16:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321027', 'tblTempVendorCDR_20' ) end [2025-01-24 16:56:28] Production.INFO: ProcessCDR(1,14321027,1,1,2) [2025-01-24 16:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321027', 'tblTempUsageDetail_20' ) start [2025-01-24 16:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321027', 'tblTempUsageDetail_20' ) end [2025-01-24 16:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:56:33] Production.INFO: ==11771== Releasing lock... [2025-01-24 16:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:56:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:57:05 [end_date_ymd] => 2025-01-24 16:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:57:05' and `end` < '2025-01-24 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-24 16:57:25] Production.INFO: count ==5908 [2025-01-24 16:57:27] Production.ERROR: pbx CDR StartTime 2025-01-24 13:57:05 - End Time 2025-01-24 16:57:05 [2025-01-24 16:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321032', 'tblTempUsageDetail_20' ) start [2025-01-24 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321032', 'tblTempUsageDetail_20' ) end [2025-01-24 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321032', 'tblTempVendorCDR_20' ) start [2025-01-24 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321032', 'tblTempVendorCDR_20' ) end [2025-01-24 16:57:27] Production.INFO: ProcessCDR(1,14321032,1,1,2) [2025-01-24 16:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321032', 'tblTempUsageDetail_20' ) start [2025-01-24 16:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321032', 'tblTempUsageDetail_20' ) end [2025-01-24 16:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:57:32] Production.INFO: ==11841== Releasing lock... [2025-01-24 16:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:57:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:58:05 [end_date_ymd] => 2025-01-24 16:58:05 [RateCDR] => 1 ) [2025-01-24 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 13:58:05' and `end` < '2025-01-24 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 16:58:27] Production.INFO: count ==5895 [2025-01-24 16:58:30] Production.ERROR: pbx CDR StartTime 2025-01-24 13:58:05 - End Time 2025-01-24 16:58:05 [2025-01-24 16:58:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321037', 'tblTempUsageDetail_20' ) start [2025-01-24 16:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321037', 'tblTempUsageDetail_20' ) end [2025-01-24 16:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321037', 'tblTempVendorCDR_20' ) start [2025-01-24 16:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321037', 'tblTempVendorCDR_20' ) end [2025-01-24 16:58:30] Production.INFO: ProcessCDR(1,14321037,1,1,2) [2025-01-24 16:58:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321037', 'tblTempUsageDetail_20' ) start [2025-01-24 16:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321037', 'tblTempUsageDetail_20' ) end [2025-01-24 16:58:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:58:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:58:35] Production.INFO: ==11912== Releasing lock... [2025-01-24 16:58:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:58:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 13:59:05 [end_date_ymd] => 2025-01-24 16:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 13:59:05' and `end` < '2025-01-24 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-24 16:59:34] Production.INFO: count ==5913 [2025-01-24 16:59:37] Production.ERROR: pbx CDR StartTime 2025-01-24 13:59:05 - End Time 2025-01-24 16:59:05 [2025-01-24 16:59:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 16:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321042', 'tblTempUsageDetail_20' ) start [2025-01-24 16:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321042', 'tblTempUsageDetail_20' ) end [2025-01-24 16:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321042', 'tblTempVendorCDR_20' ) start [2025-01-24 16:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321042', 'tblTempVendorCDR_20' ) end [2025-01-24 16:59:37] Production.INFO: ProcessCDR(1,14321042,1,1,2) [2025-01-24 16:59:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:59:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 16:59:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:59:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 16:59:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321042', 'tblTempUsageDetail_20' ) start [2025-01-24 16:59:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321042', 'tblTempUsageDetail_20' ) end [2025-01-24 16:59:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 16:59:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 16:59:42] Production.INFO: ==11985== Releasing lock... [2025-01-24 16:59:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 16:59:42] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:00:06 [end_date_ymd] => 2025-01-24 17:00:06 [RateCDR] => 1 ) [2025-01-24 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:00:06' and `end` < '2025-01-24 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:00:36] Production.INFO: count ==5896 [2025-01-24 17:00:38] Production.ERROR: pbx CDR StartTime 2025-01-24 14:00:06 - End Time 2025-01-24 17:00:06 [2025-01-24 17:00:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321048', 'tblTempUsageDetail_20' ) start [2025-01-24 17:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321048', 'tblTempUsageDetail_20' ) end [2025-01-24 17:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321048', 'tblTempVendorCDR_20' ) start [2025-01-24 17:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321048', 'tblTempVendorCDR_20' ) end [2025-01-24 17:00:39] Production.INFO: ProcessCDR(1,14321048,1,1,2) [2025-01-24 17:00:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:00:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:00:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:00:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321048', 'tblTempUsageDetail_20' ) start [2025-01-24 17:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321048', 'tblTempUsageDetail_20' ) end [2025-01-24 17:00:43] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:00:43] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:00:44] Production.INFO: ==12060== Releasing lock... [2025-01-24 17:00:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:00:44] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:01:05 [end_date_ymd] => 2025-01-24 17:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:01:05' and `end` < '2025-01-24 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-24 17:01:25] Production.INFO: count ==5934 [2025-01-24 17:01:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:01:05 - End Time 2025-01-24 17:01:05 [2025-01-24 17:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321053', 'tblTempUsageDetail_20' ) start [2025-01-24 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321053', 'tblTempUsageDetail_20' ) end [2025-01-24 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321053', 'tblTempVendorCDR_20' ) start [2025-01-24 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321053', 'tblTempVendorCDR_20' ) end [2025-01-24 17:01:28] Production.INFO: ProcessCDR(1,14321053,1,1,2) [2025-01-24 17:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321053', 'tblTempUsageDetail_20' ) start [2025-01-24 17:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321053', 'tblTempUsageDetail_20' ) end [2025-01-24 17:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:01:33] Production.INFO: ==12156== Releasing lock... [2025-01-24 17:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:01:33] Production.INFO: 72.5 MB #Memory Used# [2025-01-24 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:02:06 [end_date_ymd] => 2025-01-24 17:02:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:02:06' and `end` < '2025-01-24 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-24 17:02:29] Production.INFO: count ==5911 [2025-01-24 17:02:31] Production.ERROR: pbx CDR StartTime 2025-01-24 14:02:06 - End Time 2025-01-24 17:02:06 [2025-01-24 17:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321058', 'tblTempUsageDetail_20' ) start [2025-01-24 17:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321058', 'tblTempUsageDetail_20' ) end [2025-01-24 17:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321058', 'tblTempVendorCDR_20' ) start [2025-01-24 17:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321058', 'tblTempVendorCDR_20' ) end [2025-01-24 17:02:31] Production.INFO: ProcessCDR(1,14321058,1,1,2) [2025-01-24 17:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321058', 'tblTempUsageDetail_20' ) start [2025-01-24 17:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321058', 'tblTempUsageDetail_20' ) end [2025-01-24 17:02:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:02:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:02:37] Production.INFO: ==12231== Releasing lock... [2025-01-24 17:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:02:37] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:03:06 [end_date_ymd] => 2025-01-24 17:03:06 [RateCDR] => 1 ) [2025-01-24 17: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-24 14:03:06' and `end` < '2025-01-24 17: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-24 17:03:25] Production.INFO: count ==5899 [2025-01-24 17:03:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:03:06 - End Time 2025-01-24 17:03:06 [2025-01-24 17:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321063', 'tblTempUsageDetail_20' ) start [2025-01-24 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321063', 'tblTempUsageDetail_20' ) end [2025-01-24 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321063', 'tblTempVendorCDR_20' ) start [2025-01-24 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321063', 'tblTempVendorCDR_20' ) end [2025-01-24 17:03:27] Production.INFO: ProcessCDR(1,14321063,1,1,2) [2025-01-24 17:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321063', 'tblTempUsageDetail_20' ) start [2025-01-24 17:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321063', 'tblTempUsageDetail_20' ) end [2025-01-24 17:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:03:32] Production.INFO: ==12301== Releasing lock... [2025-01-24 17:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:03:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:04:06 [end_date_ymd] => 2025-01-24 17:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:04:06' and `end` < '2025-01-24 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-24 17:04:33] Production.INFO: count ==5894 [2025-01-24 17:04:35] Production.ERROR: pbx CDR StartTime 2025-01-24 14:04:06 - End Time 2025-01-24 17:04:06 [2025-01-24 17:04:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321068', 'tblTempUsageDetail_20' ) start [2025-01-24 17:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321068', 'tblTempUsageDetail_20' ) end [2025-01-24 17:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321068', 'tblTempVendorCDR_20' ) start [2025-01-24 17:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321068', 'tblTempVendorCDR_20' ) end [2025-01-24 17:04:35] Production.INFO: ProcessCDR(1,14321068,1,1,2) [2025-01-24 17:04:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:04:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321068', 'tblTempUsageDetail_20' ) start [2025-01-24 17:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321068', 'tblTempUsageDetail_20' ) end [2025-01-24 17:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:04:39] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:04:39] Production.INFO: ==12372== Releasing lock... [2025-01-24 17:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:04:39] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:05:05 [end_date_ymd] => 2025-01-24 17:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:05:05' and `end` < '2025-01-24 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-24 17:05:25] Production.INFO: count ==5882 [2025-01-24 17:05:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:05:05 - End Time 2025-01-24 17:05:05 [2025-01-24 17:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321072', 'tblTempUsageDetail_20' ) start [2025-01-24 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321072', 'tblTempUsageDetail_20' ) end [2025-01-24 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321072', 'tblTempVendorCDR_20' ) start [2025-01-24 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321072', 'tblTempVendorCDR_20' ) end [2025-01-24 17:05:27] Production.INFO: ProcessCDR(1,14321072,1,1,2) [2025-01-24 17:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321072', 'tblTempUsageDetail_20' ) start [2025-01-24 17:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321072', 'tblTempUsageDetail_20' ) end [2025-01-24 17:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:05:32] Production.INFO: ==12443== Releasing lock... [2025-01-24 17:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:05:32] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:06:06 [end_date_ymd] => 2025-01-24 17:06:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:06:06' and `end` < '2025-01-24 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-24 17:06:33] Production.INFO: count ==5897 [2025-01-24 17:06:35] Production.ERROR: pbx CDR StartTime 2025-01-24 14:06:06 - End Time 2025-01-24 17:06:06 [2025-01-24 17:06:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321078', 'tblTempUsageDetail_20' ) start [2025-01-24 17:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321078', 'tblTempUsageDetail_20' ) end [2025-01-24 17:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321078', 'tblTempVendorCDR_20' ) start [2025-01-24 17:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321078', 'tblTempVendorCDR_20' ) end [2025-01-24 17:06:35] Production.INFO: ProcessCDR(1,14321078,1,1,2) [2025-01-24 17:06:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:06:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:06:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:06:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:06:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321078', 'tblTempUsageDetail_20' ) start [2025-01-24 17:06:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321078', 'tblTempUsageDetail_20' ) end [2025-01-24 17:06:40] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:06:40] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:06:40] Production.INFO: ==12526== Releasing lock... [2025-01-24 17:06:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:06:40] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:07:05 [end_date_ymd] => 2025-01-24 17:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:07:05' and `end` < '2025-01-24 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-24 17:07:25] Production.INFO: count ==5901 [2025-01-24 17:07:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:07:05 - End Time 2025-01-24 17:07:05 [2025-01-24 17:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321083', 'tblTempUsageDetail_20' ) start [2025-01-24 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321083', 'tblTempUsageDetail_20' ) end [2025-01-24 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321083', 'tblTempVendorCDR_20' ) start [2025-01-24 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321083', 'tblTempVendorCDR_20' ) end [2025-01-24 17:07:27] Production.INFO: ProcessCDR(1,14321083,1,1,2) [2025-01-24 17:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321083', 'tblTempUsageDetail_20' ) start [2025-01-24 17:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321083', 'tblTempUsageDetail_20' ) end [2025-01-24 17:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:07:32] Production.INFO: ==12606== Releasing lock... [2025-01-24 17:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:07:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:08:06 [end_date_ymd] => 2025-01-24 17:08:06 [RateCDR] => 1 ) [2025-01-24 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:08:06' and `end` < '2025-01-24 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:08:30] Production.INFO: count ==5879 [2025-01-24 17:08:32] Production.ERROR: pbx CDR StartTime 2025-01-24 14:08:06 - End Time 2025-01-24 17:08:06 [2025-01-24 17:08:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321088', 'tblTempUsageDetail_20' ) start [2025-01-24 17:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321088', 'tblTempUsageDetail_20' ) end [2025-01-24 17:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321088', 'tblTempVendorCDR_20' ) start [2025-01-24 17:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321088', 'tblTempVendorCDR_20' ) end [2025-01-24 17:08:32] Production.INFO: ProcessCDR(1,14321088,1,1,2) [2025-01-24 17:08:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:08:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:08:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321088', 'tblTempUsageDetail_20' ) start [2025-01-24 17:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321088', 'tblTempUsageDetail_20' ) end [2025-01-24 17:08:37] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:08:37] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:08:37] Production.INFO: ==12721== Releasing lock... [2025-01-24 17:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:08:37] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:09:05 [end_date_ymd] => 2025-01-24 17:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:09:05' and `end` < '2025-01-24 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-24 17:09:22] Production.INFO: count ==5880 [2025-01-24 17:09:24] Production.ERROR: pbx CDR StartTime 2025-01-24 14:09:05 - End Time 2025-01-24 17:09:05 [2025-01-24 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321093', 'tblTempUsageDetail_20' ) start [2025-01-24 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321093', 'tblTempUsageDetail_20' ) end [2025-01-24 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321093', 'tblTempVendorCDR_20' ) start [2025-01-24 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321093', 'tblTempVendorCDR_20' ) end [2025-01-24 17:09:24] Production.INFO: ProcessCDR(1,14321093,1,1,2) [2025-01-24 17:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321093', 'tblTempUsageDetail_20' ) start [2025-01-24 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321093', 'tblTempUsageDetail_20' ) end [2025-01-24 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:09:29] Production.INFO: ==12794== Releasing lock... [2025-01-24 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:09:29] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:10:06 [end_date_ymd] => 2025-01-24 17:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:10:06' and `end` < '2025-01-24 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-24 17:10:35] Production.INFO: count ==5900 [2025-01-24 17:10:37] Production.ERROR: pbx CDR StartTime 2025-01-24 14:10:06 - End Time 2025-01-24 17:10:06 [2025-01-24 17:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321099', 'tblTempUsageDetail_20' ) start [2025-01-24 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321099', 'tblTempUsageDetail_20' ) end [2025-01-24 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321099', 'tblTempVendorCDR_20' ) start [2025-01-24 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321099', 'tblTempVendorCDR_20' ) end [2025-01-24 17:10:37] Production.INFO: ProcessCDR(1,14321099,1,1,2) [2025-01-24 17:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321099', 'tblTempUsageDetail_20' ) start [2025-01-24 17:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321099', 'tblTempUsageDetail_20' ) end [2025-01-24 17:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:10:42] Production.INFO: ==12867== Releasing lock... [2025-01-24 17:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:10:42] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:11:04 [end_date_ymd] => 2025-01-24 17:11:04 [RateCDR] => 1 ) [2025-01-24 17: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-24 14:11:04' and `end` < '2025-01-24 17: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-24 17:11:20] Production.INFO: count ==5927 [2025-01-24 17:11:22] Production.ERROR: pbx CDR StartTime 2025-01-24 14:11:04 - End Time 2025-01-24 17:11:04 [2025-01-24 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321104', 'tblTempUsageDetail_20' ) start [2025-01-24 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321104', 'tblTempUsageDetail_20' ) end [2025-01-24 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321104', 'tblTempVendorCDR_20' ) start [2025-01-24 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321104', 'tblTempVendorCDR_20' ) end [2025-01-24 17:11:23] Production.INFO: ProcessCDR(1,14321104,1,1,2) [2025-01-24 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321104', 'tblTempUsageDetail_20' ) start [2025-01-24 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321104', 'tblTempUsageDetail_20' ) end [2025-01-24 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:11:27] Production.INFO: ==12939== Releasing lock... [2025-01-24 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:11:27] Production.INFO: 72.5 MB #Memory Used# [2025-01-24 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:12:05 [end_date_ymd] => 2025-01-24 17:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:12:05' and `end` < '2025-01-24 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-24 17:12:21] Production.INFO: count ==5916 [2025-01-24 17:12:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:12:05 - End Time 2025-01-24 17:12:05 [2025-01-24 17:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321109', 'tblTempUsageDetail_20' ) start [2025-01-24 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321109', 'tblTempUsageDetail_20' ) end [2025-01-24 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321109', 'tblTempVendorCDR_20' ) start [2025-01-24 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321109', 'tblTempVendorCDR_20' ) end [2025-01-24 17:12:24] Production.INFO: ProcessCDR(1,14321109,1,1,2) [2025-01-24 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321109', 'tblTempUsageDetail_20' ) start [2025-01-24 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321109', 'tblTempUsageDetail_20' ) end [2025-01-24 17:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:12:28] Production.INFO: ==13011== Releasing lock... [2025-01-24 17:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:12:28] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:13:05 [end_date_ymd] => 2025-01-24 17:13:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:13:05' and `end` < '2025-01-24 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-24 17:13:27] Production.INFO: count ==5922 [2025-01-24 17:13:30] Production.ERROR: pbx CDR StartTime 2025-01-24 14:13:05 - End Time 2025-01-24 17:13:05 [2025-01-24 17:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321114', 'tblTempUsageDetail_20' ) start [2025-01-24 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321114', 'tblTempUsageDetail_20' ) end [2025-01-24 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321114', 'tblTempVendorCDR_20' ) start [2025-01-24 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321114', 'tblTempVendorCDR_20' ) end [2025-01-24 17:13:30] Production.INFO: ProcessCDR(1,14321114,1,1,2) [2025-01-24 17:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321114', 'tblTempUsageDetail_20' ) start [2025-01-24 17:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321114', 'tblTempUsageDetail_20' ) end [2025-01-24 17:13:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:13:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:13:35] Production.INFO: ==13081== Releasing lock... [2025-01-24 17:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:13:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-24 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:14:05 [end_date_ymd] => 2025-01-24 17:14:05 [RateCDR] => 1 ) [2025-01-24 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:14:05' and `end` < '2025-01-24 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:14:23] Production.INFO: count ==5907 [2025-01-24 17:14:25] Production.ERROR: pbx CDR StartTime 2025-01-24 14:14:05 - End Time 2025-01-24 17:14:05 [2025-01-24 17:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321119', 'tblTempUsageDetail_20' ) start [2025-01-24 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321119', 'tblTempUsageDetail_20' ) end [2025-01-24 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321119', 'tblTempVendorCDR_20' ) start [2025-01-24 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321119', 'tblTempVendorCDR_20' ) end [2025-01-24 17:14:25] Production.INFO: ProcessCDR(1,14321119,1,1,2) [2025-01-24 17:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321119', 'tblTempUsageDetail_20' ) start [2025-01-24 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321119', 'tblTempUsageDetail_20' ) end [2025-01-24 17:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:14:29] Production.INFO: ==13152== Releasing lock... [2025-01-24 17:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:14:29] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:15:05 [end_date_ymd] => 2025-01-24 17:15:05 [RateCDR] => 1 ) [2025-01-24 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:15:05' and `end` < '2025-01-24 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:15:27] Production.INFO: count ==5893 [2025-01-24 17:15:29] Production.ERROR: pbx CDR StartTime 2025-01-24 14:15:05 - End Time 2025-01-24 17:15:05 [2025-01-24 17:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321124', 'tblTempUsageDetail_20' ) start [2025-01-24 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321124', 'tblTempUsageDetail_20' ) end [2025-01-24 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321124', 'tblTempVendorCDR_20' ) start [2025-01-24 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321124', 'tblTempVendorCDR_20' ) end [2025-01-24 17:15:29] Production.INFO: ProcessCDR(1,14321124,1,1,2) [2025-01-24 17:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321124', 'tblTempUsageDetail_20' ) start [2025-01-24 17:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321124', 'tblTempUsageDetail_20' ) end [2025-01-24 17:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:15:33] Production.INFO: ==13225== Releasing lock... [2025-01-24 17:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:15:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:16:05 [end_date_ymd] => 2025-01-24 17:16:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:16:05' and `end` < '2025-01-24 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-24 17:16:28] Production.INFO: count ==5901 [2025-01-24 17:16:30] Production.ERROR: pbx CDR StartTime 2025-01-24 14:16:05 - End Time 2025-01-24 17:16:05 [2025-01-24 17:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321129', 'tblTempUsageDetail_20' ) start [2025-01-24 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321129', 'tblTempUsageDetail_20' ) end [2025-01-24 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321129', 'tblTempVendorCDR_20' ) start [2025-01-24 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321129', 'tblTempVendorCDR_20' ) end [2025-01-24 17:16:30] Production.INFO: ProcessCDR(1,14321129,1,1,2) [2025-01-24 17:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321129', 'tblTempUsageDetail_20' ) start [2025-01-24 17:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321129', 'tblTempUsageDetail_20' ) end [2025-01-24 17:16:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:16:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:16:35] Production.INFO: ==13295== Releasing lock... [2025-01-24 17:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:16:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:17:05 [end_date_ymd] => 2025-01-24 17:17:05 [RateCDR] => 1 ) [2025-01-24 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:17:05' and `end` < '2025-01-24 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:17:25] Production.INFO: count ==5900 [2025-01-24 17:17:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:17:05 - End Time 2025-01-24 17:17:05 [2025-01-24 17:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321134', 'tblTempUsageDetail_20' ) start [2025-01-24 17:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321134', 'tblTempUsageDetail_20' ) end [2025-01-24 17:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321134', 'tblTempVendorCDR_20' ) start [2025-01-24 17:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321134', 'tblTempVendorCDR_20' ) end [2025-01-24 17:17:28] Production.INFO: ProcessCDR(1,14321134,1,1,2) [2025-01-24 17:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321134', 'tblTempUsageDetail_20' ) start [2025-01-24 17:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321134', 'tblTempUsageDetail_20' ) end [2025-01-24 17:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:17:32] Production.INFO: ==13366== Releasing lock... [2025-01-24 17:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:17:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:18:05 [end_date_ymd] => 2025-01-24 17:18:05 [RateCDR] => 1 ) [2025-01-24 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:18:05' and `end` < '2025-01-24 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:18:21] Production.INFO: count ==5883 [2025-01-24 17:18:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:18:05 - End Time 2025-01-24 17:18:05 [2025-01-24 17:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321139', 'tblTempUsageDetail_20' ) start [2025-01-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321139', 'tblTempUsageDetail_20' ) end [2025-01-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321139', 'tblTempVendorCDR_20' ) start [2025-01-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321139', 'tblTempVendorCDR_20' ) end [2025-01-24 17:18:23] Production.INFO: ProcessCDR(1,14321139,1,1,2) [2025-01-24 17:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321139', 'tblTempUsageDetail_20' ) start [2025-01-24 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321139', 'tblTempUsageDetail_20' ) end [2025-01-24 17:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:18:28] Production.INFO: ==13439== Releasing lock... [2025-01-24 17:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:18:28] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:19:05 [end_date_ymd] => 2025-01-24 17:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:19:05' and `end` < '2025-01-24 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-24 17:19:21] Production.INFO: count ==5869 [2025-01-24 17:19:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:19:05 - End Time 2025-01-24 17:19:05 [2025-01-24 17:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321144', 'tblTempUsageDetail_20' ) start [2025-01-24 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321144', 'tblTempUsageDetail_20' ) end [2025-01-24 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321144', 'tblTempVendorCDR_20' ) start [2025-01-24 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321144', 'tblTempVendorCDR_20' ) end [2025-01-24 17:19:23] Production.INFO: ProcessCDR(1,14321144,1,1,2) [2025-01-24 17:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321144', 'tblTempUsageDetail_20' ) start [2025-01-24 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321144', 'tblTempUsageDetail_20' ) end [2025-01-24 17:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:19:28] Production.INFO: ==13511== Releasing lock... [2025-01-24 17:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:19:28] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:20:07 [end_date_ymd] => 2025-01-24 17:20:07 [RateCDR] => 1 ) [2025-01-24 17:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:20:07' and `end` < '2025-01-24 17:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:20:22] Production.INFO: count ==5860 [2025-01-24 17:20:24] Production.ERROR: pbx CDR StartTime 2025-01-24 14:20:07 - End Time 2025-01-24 17:20:07 [2025-01-24 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321150', 'tblTempUsageDetail_20' ) start [2025-01-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321150', 'tblTempUsageDetail_20' ) end [2025-01-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321150', 'tblTempVendorCDR_20' ) start [2025-01-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321150', 'tblTempVendorCDR_20' ) end [2025-01-24 17:20:24] Production.INFO: ProcessCDR(1,14321150,1,1,2) [2025-01-24 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321150', 'tblTempUsageDetail_20' ) start [2025-01-24 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321150', 'tblTempUsageDetail_20' ) end [2025-01-24 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:20:27] Production.INFO: ==13589== Releasing lock... [2025-01-24 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:20:27] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:21:05 [end_date_ymd] => 2025-01-24 17:21:05 [RateCDR] => 1 ) [2025-01-24 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:21:05' and `end` < '2025-01-24 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:21:28] Production.INFO: count ==5896 [2025-01-24 17:21:30] Production.ERROR: pbx CDR StartTime 2025-01-24 14:21:05 - End Time 2025-01-24 17:21:05 [2025-01-24 17:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321155', 'tblTempUsageDetail_20' ) start [2025-01-24 17:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321155', 'tblTempUsageDetail_20' ) end [2025-01-24 17:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321155', 'tblTempVendorCDR_20' ) start [2025-01-24 17:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321155', 'tblTempVendorCDR_20' ) end [2025-01-24 17:21:30] Production.INFO: ProcessCDR(1,14321155,1,1,2) [2025-01-24 17:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321155', 'tblTempUsageDetail_20' ) start [2025-01-24 17:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321155', 'tblTempUsageDetail_20' ) end [2025-01-24 17:21:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:21:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:21:35] Production.INFO: ==13663== Releasing lock... [2025-01-24 17:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:21:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:22:05 [end_date_ymd] => 2025-01-24 17:22:05 [RateCDR] => 1 ) [2025-01-24 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:22:05' and `end` < '2025-01-24 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:22:27] Production.INFO: count ==5876 [2025-01-24 17:22:29] Production.ERROR: pbx CDR StartTime 2025-01-24 14:22:05 - End Time 2025-01-24 17:22:05 [2025-01-24 17:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321160', 'tblTempUsageDetail_20' ) start [2025-01-24 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321160', 'tblTempUsageDetail_20' ) end [2025-01-24 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321160', 'tblTempVendorCDR_20' ) start [2025-01-24 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321160', 'tblTempVendorCDR_20' ) end [2025-01-24 17:22:29] Production.INFO: ProcessCDR(1,14321160,1,1,2) [2025-01-24 17:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321160', 'tblTempUsageDetail_20' ) start [2025-01-24 17:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321160', 'tblTempUsageDetail_20' ) end [2025-01-24 17:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:22:32] Production.INFO: ==13732== Releasing lock... [2025-01-24 17:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:22:32] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:23:05 [end_date_ymd] => 2025-01-24 17:23:05 [RateCDR] => 1 ) [2025-01-24 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:23:05' and `end` < '2025-01-24 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:23:28] Production.INFO: count ==5858 [2025-01-24 17:23:30] Production.ERROR: pbx CDR StartTime 2025-01-24 14:23:05 - End Time 2025-01-24 17:23:05 [2025-01-24 17:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321165', 'tblTempUsageDetail_20' ) start [2025-01-24 17:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321165', 'tblTempUsageDetail_20' ) end [2025-01-24 17:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321165', 'tblTempVendorCDR_20' ) start [2025-01-24 17:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321165', 'tblTempVendorCDR_20' ) end [2025-01-24 17:23:30] Production.INFO: ProcessCDR(1,14321165,1,1,2) [2025-01-24 17:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321165', 'tblTempUsageDetail_20' ) start [2025-01-24 17:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321165', 'tblTempUsageDetail_20' ) end [2025-01-24 17:23:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:23:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:23:35] Production.INFO: ==13810== Releasing lock... [2025-01-24 17:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:23:35] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:24:05 [end_date_ymd] => 2025-01-24 17:24:05 [RateCDR] => 1 ) [2025-01-24 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:24:05' and `end` < '2025-01-24 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:24:22] Production.INFO: count ==5843 [2025-01-24 17:24:24] Production.ERROR: pbx CDR StartTime 2025-01-24 14:24:05 - End Time 2025-01-24 17:24:05 [2025-01-24 17:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321170', 'tblTempUsageDetail_20' ) start [2025-01-24 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321170', 'tblTempUsageDetail_20' ) end [2025-01-24 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321170', 'tblTempVendorCDR_20' ) start [2025-01-24 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321170', 'tblTempVendorCDR_20' ) end [2025-01-24 17:24:25] Production.INFO: ProcessCDR(1,14321170,1,1,2) [2025-01-24 17:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321170', 'tblTempUsageDetail_20' ) start [2025-01-24 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321170', 'tblTempUsageDetail_20' ) end [2025-01-24 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:24:28] Production.INFO: ==13924== Releasing lock... [2025-01-24 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:24:28] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:25:05 [end_date_ymd] => 2025-01-24 17:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:25:05' and `end` < '2025-01-24 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-24 17:25:20] Production.INFO: count ==5848 [2025-01-24 17:25:22] Production.ERROR: pbx CDR StartTime 2025-01-24 14:25:05 - End Time 2025-01-24 17:25:05 [2025-01-24 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321175', 'tblTempUsageDetail_20' ) start [2025-01-24 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321175', 'tblTempUsageDetail_20' ) end [2025-01-24 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321175', 'tblTempVendorCDR_20' ) start [2025-01-24 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321175', 'tblTempVendorCDR_20' ) end [2025-01-24 17:25:23] Production.INFO: ProcessCDR(1,14321175,1,1,2) [2025-01-24 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321175', 'tblTempUsageDetail_20' ) start [2025-01-24 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321175', 'tblTempUsageDetail_20' ) end [2025-01-24 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:25:27] Production.INFO: ==13996== Releasing lock... [2025-01-24 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:25:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:26:21] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:26:21 [end_date_ymd] => 2025-01-24 17:26:21 [RateCDR] => 1 ) [2025-01-24 17:26:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:26:21' and `end` < '2025-01-24 17:26:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:26:36] Production.INFO: count ==5847 [2025-01-24 17:27:56] Production.ERROR: pbx CDR StartTime 2025-01-24 14:26:21 - End Time 2025-01-24 17:26:21 [2025-01-24 17:27:56] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:27:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321180', 'tblTempUsageDetail_20' ) start [2025-01-24 17:28:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321180', 'tblTempUsageDetail_20' ) end [2025-01-24 17:28:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321180', 'tblTempVendorCDR_20' ) start [2025-01-24 17:28:08] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321180', 'tblTempVendorCDR_20' ) end [2025-01-24 17:28:08] Production.INFO: ProcessCDR(1,14321180,1,1,2) [2025-01-24 17:28:08] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:28:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:28:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:28:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321180', 'tblTempUsageDetail_20' ) start [2025-01-24 17:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321180', 'tblTempUsageDetail_20' ) end [2025-01-24 17:28:51] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:28:52] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:28:59] Production.INFO: ==14069== Releasing lock... [2025-01-24 17:28:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:28:59] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:29:25] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:29:25 [end_date_ymd] => 2025-01-24 17:29:25 [RateCDR] => 1 ) [2025-01-24 17:29:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:29:25' and `end` < '2025-01-24 17:29:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:29:48] Production.INFO: count ==5814 [2025-01-24 17:30:55] Production.ERROR: pbx CDR StartTime 2025-01-24 14:29:25 - End Time 2025-01-24 17:29:25 [2025-01-24 17:30:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:30:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321190', 'tblTempUsageDetail_20' ) start [2025-01-24 17:31:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321190', 'tblTempUsageDetail_20' ) end [2025-01-24 17:31:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321190', 'tblTempVendorCDR_20' ) start [2025-01-24 17:31:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321190', 'tblTempVendorCDR_20' ) end [2025-01-24 17:31:01] Production.INFO: ProcessCDR(1,14321190,1,1,2) [2025-01-24 17:31:01] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:32:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:32:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321190', 'tblTempUsageDetail_20' ) start [2025-01-24 17:32:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321190', 'tblTempUsageDetail_20' ) end [2025-01-24 17:32:02] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:32:02] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:32:02] Production.INFO: ==14258== Releasing lock... [2025-01-24 17:32:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:32:02] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:32:37] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:32:34 [end_date_ymd] => 2025-01-24 17:32:34 [RateCDR] => 1 ) [2025-01-24 17:32:37] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:32:34' and `end` < '2025-01-24 17:32:34' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:32:56] Production.INFO: count ==5870 [2025-01-24 17:34:00] Production.ERROR: pbx CDR StartTime 2025-01-24 14:32:34 - End Time 2025-01-24 17:32:34 [2025-01-24 17:34:00] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:34:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321202', 'tblTempUsageDetail_20' ) start [2025-01-24 17:34:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321202', 'tblTempUsageDetail_20' ) end [2025-01-24 17:34:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321202', 'tblTempVendorCDR_20' ) start [2025-01-24 17:34:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321202', 'tblTempVendorCDR_20' ) end [2025-01-24 17:34:10] Production.INFO: ProcessCDR(1,14321202,1,1,2) [2025-01-24 17:34:10] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:34:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:34:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:34:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:34:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321202', 'tblTempUsageDetail_20' ) start [2025-01-24 17:34:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321202', 'tblTempUsageDetail_20' ) end [2025-01-24 17:34:17] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:34:18] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:34:18] Production.INFO: ==14457== Releasing lock... [2025-01-24 17:34:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:34:18] Production.INFO: 72 MB #Memory Used# [2025-01-24 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:35:05 [end_date_ymd] => 2025-01-24 17:35:05 [RateCDR] => 1 ) [2025-01-24 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:35:05' and `end` < '2025-01-24 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:35:31] Production.INFO: count ==5855 [2025-01-24 17:35:33] Production.ERROR: pbx CDR StartTime 2025-01-24 14:35:05 - End Time 2025-01-24 17:35:05 [2025-01-24 17:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321214', 'tblTempUsageDetail_20' ) start [2025-01-24 17:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321214', 'tblTempUsageDetail_20' ) end [2025-01-24 17:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321214', 'tblTempVendorCDR_20' ) start [2025-01-24 17:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321214', 'tblTempVendorCDR_20' ) end [2025-01-24 17:35:33] Production.INFO: ProcessCDR(1,14321214,1,1,2) [2025-01-24 17:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321214', 'tblTempUsageDetail_20' ) start [2025-01-24 17:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321214', 'tblTempUsageDetail_20' ) end [2025-01-24 17:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:35:38] Production.INFO: ==14663== Releasing lock... [2025-01-24 17:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:35:38] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:36:05 [end_date_ymd] => 2025-01-24 17:36:05 [RateCDR] => 1 ) [2025-01-24 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:36:05' and `end` < '2025-01-24 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:36:27] Production.INFO: count ==5853 [2025-01-24 17:36:28] Production.ERROR: pbx CDR StartTime 2025-01-24 14:36:05 - End Time 2025-01-24 17:36:05 [2025-01-24 17:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321219', 'tblTempUsageDetail_20' ) start [2025-01-24 17:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321219', 'tblTempUsageDetail_20' ) end [2025-01-24 17:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321219', 'tblTempVendorCDR_20' ) start [2025-01-24 17:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321219', 'tblTempVendorCDR_20' ) end [2025-01-24 17:36:29] Production.INFO: ProcessCDR(1,14321219,1,1,2) [2025-01-24 17:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321219', 'tblTempUsageDetail_20' ) start [2025-01-24 17:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321219', 'tblTempUsageDetail_20' ) end [2025-01-24 17:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:36:34] Production.INFO: ==14736== Releasing lock... [2025-01-24 17:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:36:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:37:05 [end_date_ymd] => 2025-01-24 17:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:37:05' and `end` < '2025-01-24 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-24 17:37:22] Production.INFO: count ==5845 [2025-01-24 17:37:24] Production.ERROR: pbx CDR StartTime 2025-01-24 14:37:05 - End Time 2025-01-24 17:37:05 [2025-01-24 17:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321224', 'tblTempUsageDetail_20' ) start [2025-01-24 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321224', 'tblTempUsageDetail_20' ) end [2025-01-24 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321224', 'tblTempVendorCDR_20' ) start [2025-01-24 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321224', 'tblTempVendorCDR_20' ) end [2025-01-24 17:37:24] Production.INFO: ProcessCDR(1,14321224,1,1,2) [2025-01-24 17:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321224', 'tblTempUsageDetail_20' ) start [2025-01-24 17:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321224', 'tblTempUsageDetail_20' ) end [2025-01-24 17:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:37:29] Production.INFO: ==14807== Releasing lock... [2025-01-24 17:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:37:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:38:05 [end_date_ymd] => 2025-01-24 17:38:05 [RateCDR] => 1 ) [2025-01-24 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:38:05' and `end` < '2025-01-24 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:38:21] Production.INFO: count ==5832 [2025-01-24 17:38:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:38:05 - End Time 2025-01-24 17:38:05 [2025-01-24 17:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321229', 'tblTempUsageDetail_20' ) start [2025-01-24 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321229', 'tblTempUsageDetail_20' ) end [2025-01-24 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321229', 'tblTempVendorCDR_20' ) start [2025-01-24 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321229', 'tblTempVendorCDR_20' ) end [2025-01-24 17:38:23] Production.INFO: ProcessCDR(1,14321229,1,1,2) [2025-01-24 17:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321229', 'tblTempUsageDetail_20' ) start [2025-01-24 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321229', 'tblTempUsageDetail_20' ) end [2025-01-24 17:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:38:29] Production.INFO: ==14882== Releasing lock... [2025-01-24 17:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:38:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:39:05 [end_date_ymd] => 2025-01-24 17:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:39:05' and `end` < '2025-01-24 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-24 17:39:18] Production.INFO: count ==5824 [2025-01-24 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-24 14:39:05 - End Time 2025-01-24 17:39:05 [2025-01-24 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321234', 'tblTempUsageDetail_20' ) start [2025-01-24 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321234', 'tblTempUsageDetail_20' ) end [2025-01-24 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321234', 'tblTempVendorCDR_20' ) start [2025-01-24 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321234', 'tblTempVendorCDR_20' ) end [2025-01-24 17:39:21] Production.INFO: ProcessCDR(1,14321234,1,1,2) [2025-01-24 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321234', 'tblTempUsageDetail_20' ) start [2025-01-24 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321234', 'tblTempUsageDetail_20' ) end [2025-01-24 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:39:25] Production.INFO: ==14994== Releasing lock... [2025-01-24 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:39:25] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:40:06 [end_date_ymd] => 2025-01-24 17:40:06 [RateCDR] => 1 ) [2025-01-24 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:40:06' and `end` < '2025-01-24 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:40:24] Production.INFO: count ==5817 [2025-01-24 17:40:26] Production.ERROR: pbx CDR StartTime 2025-01-24 14:40:06 - End Time 2025-01-24 17:40:06 [2025-01-24 17:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321240', 'tblTempUsageDetail_20' ) start [2025-01-24 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321240', 'tblTempUsageDetail_20' ) end [2025-01-24 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321240', 'tblTempVendorCDR_20' ) start [2025-01-24 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321240', 'tblTempVendorCDR_20' ) end [2025-01-24 17:40:26] Production.INFO: ProcessCDR(1,14321240,1,1,2) [2025-01-24 17:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321240', 'tblTempUsageDetail_20' ) start [2025-01-24 17:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321240', 'tblTempUsageDetail_20' ) end [2025-01-24 17:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:40:31] Production.INFO: ==15077== Releasing lock... [2025-01-24 17:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:40:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:41:05 [end_date_ymd] => 2025-01-24 17:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:41:05' and `end` < '2025-01-24 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-24 17:41:21] Production.INFO: count ==5820 [2025-01-24 17:41:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:41:05 - End Time 2025-01-24 17:41:05 [2025-01-24 17:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321245', 'tblTempUsageDetail_20' ) start [2025-01-24 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321245', 'tblTempUsageDetail_20' ) end [2025-01-24 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321245', 'tblTempVendorCDR_20' ) start [2025-01-24 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321245', 'tblTempVendorCDR_20' ) end [2025-01-24 17:41:24] Production.INFO: ProcessCDR(1,14321245,1,1,2) [2025-01-24 17:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321245', 'tblTempUsageDetail_20' ) start [2025-01-24 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321245', 'tblTempUsageDetail_20' ) end [2025-01-24 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:41:27] Production.INFO: ==15150== Releasing lock... [2025-01-24 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:41:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:42:06 [end_date_ymd] => 2025-01-24 17:42:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:42:06' and `end` < '2025-01-24 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-24 17:42:26] Production.INFO: count ==5816 [2025-01-24 17:42:28] Production.ERROR: pbx CDR StartTime 2025-01-24 14:42:06 - End Time 2025-01-24 17:42:06 [2025-01-24 17:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321250', 'tblTempUsageDetail_20' ) start [2025-01-24 17:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321250', 'tblTempUsageDetail_20' ) end [2025-01-24 17:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321250', 'tblTempVendorCDR_20' ) start [2025-01-24 17:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321250', 'tblTempVendorCDR_20' ) end [2025-01-24 17:42:29] Production.INFO: ProcessCDR(1,14321250,1,1,2) [2025-01-24 17:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321250', 'tblTempUsageDetail_20' ) start [2025-01-24 17:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321250', 'tblTempUsageDetail_20' ) end [2025-01-24 17:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:42:32] Production.INFO: ==15220== Releasing lock... [2025-01-24 17:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:42:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:43:05 [end_date_ymd] => 2025-01-24 17:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:43:05' and `end` < '2025-01-24 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-24 17:43:24] Production.INFO: count ==5828 [2025-01-24 17:43:26] Production.ERROR: pbx CDR StartTime 2025-01-24 14:43:05 - End Time 2025-01-24 17:43:05 [2025-01-24 17:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321255', 'tblTempUsageDetail_20' ) start [2025-01-24 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321255', 'tblTempUsageDetail_20' ) end [2025-01-24 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321255', 'tblTempVendorCDR_20' ) start [2025-01-24 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321255', 'tblTempVendorCDR_20' ) end [2025-01-24 17:43:26] Production.INFO: ProcessCDR(1,14321255,1,1,2) [2025-01-24 17:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321255', 'tblTempUsageDetail_20' ) start [2025-01-24 17:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321255', 'tblTempUsageDetail_20' ) end [2025-01-24 17:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:43:31] Production.INFO: ==15291== Releasing lock... [2025-01-24 17:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:43:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:44:05 [end_date_ymd] => 2025-01-24 17:44:05 [RateCDR] => 1 ) [2025-01-24 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:44:05' and `end` < '2025-01-24 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:44:24] Production.INFO: count ==5809 [2025-01-24 17:44:26] Production.ERROR: pbx CDR StartTime 2025-01-24 14:44:05 - End Time 2025-01-24 17:44:05 [2025-01-24 17:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321260', 'tblTempUsageDetail_20' ) start [2025-01-24 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321260', 'tblTempUsageDetail_20' ) end [2025-01-24 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321260', 'tblTempVendorCDR_20' ) start [2025-01-24 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321260', 'tblTempVendorCDR_20' ) end [2025-01-24 17:44:26] Production.INFO: ProcessCDR(1,14321260,1,1,2) [2025-01-24 17:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321260', 'tblTempUsageDetail_20' ) start [2025-01-24 17:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321260', 'tblTempUsageDetail_20' ) end [2025-01-24 17:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:44:30] Production.INFO: ==15363== Releasing lock... [2025-01-24 17:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:44:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:45:05 [end_date_ymd] => 2025-01-24 17:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:45:05' and `end` < '2025-01-24 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-24 17:45:25] Production.INFO: count ==5805 [2025-01-24 17:45:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:45:05 - End Time 2025-01-24 17:45:05 [2025-01-24 17:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321265', 'tblTempUsageDetail_20' ) start [2025-01-24 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321265', 'tblTempUsageDetail_20' ) end [2025-01-24 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321265', 'tblTempVendorCDR_20' ) start [2025-01-24 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321265', 'tblTempVendorCDR_20' ) end [2025-01-24 17:45:27] Production.INFO: ProcessCDR(1,14321265,1,1,2) [2025-01-24 17:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321265', 'tblTempUsageDetail_20' ) start [2025-01-24 17:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321265', 'tblTempUsageDetail_20' ) end [2025-01-24 17:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:45:32] Production.INFO: ==15434== Releasing lock... [2025-01-24 17:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:45:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:46:05 [end_date_ymd] => 2025-01-24 17:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:46:05' and `end` < '2025-01-24 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-24 17:46:21] Production.INFO: count ==5809 [2025-01-24 17:46:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:46:05 - End Time 2025-01-24 17:46:05 [2025-01-24 17:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321270', 'tblTempUsageDetail_20' ) start [2025-01-24 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321270', 'tblTempUsageDetail_20' ) end [2025-01-24 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321270', 'tblTempVendorCDR_20' ) start [2025-01-24 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321270', 'tblTempVendorCDR_20' ) end [2025-01-24 17:46:23] Production.INFO: ProcessCDR(1,14321270,1,1,2) [2025-01-24 17:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321270', 'tblTempUsageDetail_20' ) start [2025-01-24 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321270', 'tblTempUsageDetail_20' ) end [2025-01-24 17:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:46:28] Production.INFO: ==15506== Releasing lock... [2025-01-24 17:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:46:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:47:05 [end_date_ymd] => 2025-01-24 17:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:47:05' and `end` < '2025-01-24 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-24 17:47:23] Production.INFO: count ==5793 [2025-01-24 17:47:25] Production.ERROR: pbx CDR StartTime 2025-01-24 14:47:05 - End Time 2025-01-24 17:47:05 [2025-01-24 17:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321275', 'tblTempUsageDetail_20' ) start [2025-01-24 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321275', 'tblTempUsageDetail_20' ) end [2025-01-24 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321275', 'tblTempVendorCDR_20' ) start [2025-01-24 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321275', 'tblTempVendorCDR_20' ) end [2025-01-24 17:47:25] Production.INFO: ProcessCDR(1,14321275,1,1,2) [2025-01-24 17:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321275', 'tblTempUsageDetail_20' ) start [2025-01-24 17:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321275', 'tblTempUsageDetail_20' ) end [2025-01-24 17:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:47:30] Production.INFO: ==15578== Releasing lock... [2025-01-24 17:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:47:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:48:05 [end_date_ymd] => 2025-01-24 17:48:05 [RateCDR] => 1 ) [2025-01-24 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:48:05' and `end` < '2025-01-24 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:48:26] Production.INFO: count ==5799 [2025-01-24 17:48:28] Production.ERROR: pbx CDR StartTime 2025-01-24 14:48:05 - End Time 2025-01-24 17:48:05 [2025-01-24 17:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321280', 'tblTempUsageDetail_20' ) start [2025-01-24 17:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321280', 'tblTempUsageDetail_20' ) end [2025-01-24 17:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321280', 'tblTempVendorCDR_20' ) start [2025-01-24 17:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321280', 'tblTempVendorCDR_20' ) end [2025-01-24 17:48:28] Production.INFO: ProcessCDR(1,14321280,1,1,2) [2025-01-24 17:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321280', 'tblTempUsageDetail_20' ) start [2025-01-24 17:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321280', 'tblTempUsageDetail_20' ) end [2025-01-24 17:48:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:48:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:48:33] Production.INFO: ==15651== Releasing lock... [2025-01-24 17:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:48:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:49:05 [end_date_ymd] => 2025-01-24 17:49:05 [RateCDR] => 1 ) [2025-01-24 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:49:05' and `end` < '2025-01-24 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:49:31] Production.INFO: count ==5783 [2025-01-24 17:49:33] Production.ERROR: pbx CDR StartTime 2025-01-24 14:49:05 - End Time 2025-01-24 17:49:05 [2025-01-24 17:49:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321285', 'tblTempUsageDetail_20' ) start [2025-01-24 17:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321285', 'tblTempUsageDetail_20' ) end [2025-01-24 17:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321285', 'tblTempVendorCDR_20' ) start [2025-01-24 17:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321285', 'tblTempVendorCDR_20' ) end [2025-01-24 17:49:34] Production.INFO: ProcessCDR(1,14321285,1,1,2) [2025-01-24 17:49:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:49:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:49:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:49:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321285', 'tblTempUsageDetail_20' ) start [2025-01-24 17:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321285', 'tblTempUsageDetail_20' ) end [2025-01-24 17:49:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:49:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:49:38] Production.INFO: ==15722== Releasing lock... [2025-01-24 17:49:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:49:38] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:50:06 [end_date_ymd] => 2025-01-24 17:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:50:06' and `end` < '2025-01-24 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-24 17:50:34] Production.INFO: count ==5780 [2025-01-24 17:50:36] Production.ERROR: pbx CDR StartTime 2025-01-24 14:50:06 - End Time 2025-01-24 17:50:06 [2025-01-24 17:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321291', 'tblTempUsageDetail_20' ) start [2025-01-24 17:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321291', 'tblTempUsageDetail_20' ) end [2025-01-24 17:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321291', 'tblTempVendorCDR_20' ) start [2025-01-24 17:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321291', 'tblTempVendorCDR_20' ) end [2025-01-24 17:50:36] Production.INFO: ProcessCDR(1,14321291,1,1,2) [2025-01-24 17:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:50:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:50:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321291', 'tblTempUsageDetail_20' ) start [2025-01-24 17:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321291', 'tblTempUsageDetail_20' ) end [2025-01-24 17:50:41] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:50:41] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:50:41] Production.INFO: ==15798== Releasing lock... [2025-01-24 17:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:50:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:51:05 [end_date_ymd] => 2025-01-24 17:51:05 [RateCDR] => 1 ) [2025-01-24 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:51:05' and `end` < '2025-01-24 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:51:25] Production.INFO: count ==5802 [2025-01-24 17:51:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:51:05 - End Time 2025-01-24 17:51:05 [2025-01-24 17:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321296', 'tblTempUsageDetail_20' ) start [2025-01-24 17:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321296', 'tblTempUsageDetail_20' ) end [2025-01-24 17:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321296', 'tblTempVendorCDR_20' ) start [2025-01-24 17:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321296', 'tblTempVendorCDR_20' ) end [2025-01-24 17:51:27] Production.INFO: ProcessCDR(1,14321296,1,1,2) [2025-01-24 17:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321296', 'tblTempUsageDetail_20' ) start [2025-01-24 17:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321296', 'tblTempUsageDetail_20' ) end [2025-01-24 17:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:51:32] Production.INFO: ==15870== Releasing lock... [2025-01-24 17:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:51:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:52:05 [end_date_ymd] => 2025-01-24 17:52:05 [RateCDR] => 1 ) [2025-01-24 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:52:05' and `end` < '2025-01-24 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:52:25] Production.INFO: count ==5799 [2025-01-24 17:52:26] Production.ERROR: pbx CDR StartTime 2025-01-24 14:52:05 - End Time 2025-01-24 17:52:05 [2025-01-24 17:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321301', 'tblTempUsageDetail_20' ) start [2025-01-24 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321301', 'tblTempUsageDetail_20' ) end [2025-01-24 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321301', 'tblTempVendorCDR_20' ) start [2025-01-24 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321301', 'tblTempVendorCDR_20' ) end [2025-01-24 17:52:27] Production.INFO: ProcessCDR(1,14321301,1,1,2) [2025-01-24 17:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321301', 'tblTempUsageDetail_20' ) start [2025-01-24 17:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321301', 'tblTempUsageDetail_20' ) end [2025-01-24 17:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:52:30] Production.INFO: ==15943== Releasing lock... [2025-01-24 17:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:52:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:53:05 [end_date_ymd] => 2025-01-24 17:53:05 [RateCDR] => 1 ) [2025-01-24 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:53:05' and `end` < '2025-01-24 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:53:25] Production.INFO: count ==5790 [2025-01-24 17:53:27] Production.ERROR: pbx CDR StartTime 2025-01-24 14:53:05 - End Time 2025-01-24 17:53:05 [2025-01-24 17:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321306', 'tblTempUsageDetail_20' ) start [2025-01-24 17:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321306', 'tblTempUsageDetail_20' ) end [2025-01-24 17:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321306', 'tblTempVendorCDR_20' ) start [2025-01-24 17:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321306', 'tblTempVendorCDR_20' ) end [2025-01-24 17:53:27] Production.INFO: ProcessCDR(1,14321306,1,1,2) [2025-01-24 17:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321306', 'tblTempUsageDetail_20' ) start [2025-01-24 17:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321306', 'tblTempUsageDetail_20' ) end [2025-01-24 17:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:53:31] Production.INFO: ==16018== Releasing lock... [2025-01-24 17:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:53:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:54:05 [end_date_ymd] => 2025-01-24 17:54:05 [RateCDR] => 1 ) [2025-01-24 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:54:05' and `end` < '2025-01-24 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:54:24] Production.INFO: count ==5787 [2025-01-24 17:54:26] Production.ERROR: pbx CDR StartTime 2025-01-24 14:54:05 - End Time 2025-01-24 17:54:05 [2025-01-24 17:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321311', 'tblTempUsageDetail_20' ) start [2025-01-24 17:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321311', 'tblTempUsageDetail_20' ) end [2025-01-24 17:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321311', 'tblTempVendorCDR_20' ) start [2025-01-24 17:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321311', 'tblTempVendorCDR_20' ) end [2025-01-24 17:54:26] Production.INFO: ProcessCDR(1,14321311,1,1,2) [2025-01-24 17:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321311', 'tblTempUsageDetail_20' ) start [2025-01-24 17:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321311', 'tblTempUsageDetail_20' ) end [2025-01-24 17:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:54:30] Production.INFO: ==16094== Releasing lock... [2025-01-24 17:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:54:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:55:06 [end_date_ymd] => 2025-01-24 17:55:06 [RateCDR] => 1 ) [2025-01-24 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:55:06' and `end` < '2025-01-24 17: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-24 17:55:24] Production.INFO: count ==5790 [2025-01-24 17:55:26] Production.ERROR: pbx CDR StartTime 2025-01-24 14:55:06 - End Time 2025-01-24 17:55:06 [2025-01-24 17:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321316', 'tblTempUsageDetail_20' ) start [2025-01-24 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321316', 'tblTempUsageDetail_20' ) end [2025-01-24 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321316', 'tblTempVendorCDR_20' ) start [2025-01-24 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321316', 'tblTempVendorCDR_20' ) end [2025-01-24 17:55:26] Production.INFO: ProcessCDR(1,14321316,1,1,2) [2025-01-24 17:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321316', 'tblTempUsageDetail_20' ) start [2025-01-24 17:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321316', 'tblTempUsageDetail_20' ) end [2025-01-24 17:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:55:31] Production.INFO: ==16210== Releasing lock... [2025-01-24 17:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:55:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:56:06 [end_date_ymd] => 2025-01-24 17:56:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:56:06' and `end` < '2025-01-24 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-24 17:56:22] Production.INFO: count ==5790 [2025-01-24 17:56:24] Production.ERROR: pbx CDR StartTime 2025-01-24 14:56:06 - End Time 2025-01-24 17:56:06 [2025-01-24 17:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321321', 'tblTempUsageDetail_20' ) start [2025-01-24 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321321', 'tblTempUsageDetail_20' ) end [2025-01-24 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321321', 'tblTempVendorCDR_20' ) start [2025-01-24 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321321', 'tblTempVendorCDR_20' ) end [2025-01-24 17:56:24] Production.INFO: ProcessCDR(1,14321321,1,1,2) [2025-01-24 17:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321321', 'tblTempUsageDetail_20' ) start [2025-01-24 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321321', 'tblTempUsageDetail_20' ) end [2025-01-24 17:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:56:28] Production.INFO: ==16282== Releasing lock... [2025-01-24 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:56:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:57:06 [end_date_ymd] => 2025-01-24 17:57:06 [RateCDR] => 1 ) [2025-01-24 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-24 14:57:06' and `end` < '2025-01-24 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-24 17:57:21] Production.INFO: count ==5780 [2025-01-24 17:57:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:57:06 - End Time 2025-01-24 17:57:06 [2025-01-24 17:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321326', 'tblTempUsageDetail_20' ) start [2025-01-24 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321326', 'tblTempUsageDetail_20' ) end [2025-01-24 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321326', 'tblTempVendorCDR_20' ) start [2025-01-24 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321326', 'tblTempVendorCDR_20' ) end [2025-01-24 17:57:23] Production.INFO: ProcessCDR(1,14321326,1,1,2) [2025-01-24 17:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321326', 'tblTempUsageDetail_20' ) start [2025-01-24 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321326', 'tblTempUsageDetail_20' ) end [2025-01-24 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:57:26] Production.INFO: ==16353== Releasing lock... [2025-01-24 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:57:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:58:05 [end_date_ymd] => 2025-01-24 17:58:05 [RateCDR] => 1 ) [2025-01-24 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 14:58:05' and `end` < '2025-01-24 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 17:58:19] Production.INFO: count ==5775 [2025-01-24 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-24 14:58:05 - End Time 2025-01-24 17:58:05 [2025-01-24 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321331', 'tblTempUsageDetail_20' ) start [2025-01-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321331', 'tblTempUsageDetail_20' ) end [2025-01-24 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321331', 'tblTempVendorCDR_20' ) start [2025-01-24 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321331', 'tblTempVendorCDR_20' ) end [2025-01-24 17:58:22] Production.INFO: ProcessCDR(1,14321331,1,1,2) [2025-01-24 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321331', 'tblTempUsageDetail_20' ) start [2025-01-24 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321331', 'tblTempUsageDetail_20' ) end [2025-01-24 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:58:25] Production.INFO: ==16431== Releasing lock... [2025-01-24 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:58:25] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 14:59:05 [end_date_ymd] => 2025-01-24 17:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 14:59:05' and `end` < '2025-01-24 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-24 17:59:21] Production.INFO: count ==5758 [2025-01-24 17:59:23] Production.ERROR: pbx CDR StartTime 2025-01-24 14:59:05 - End Time 2025-01-24 17:59:05 [2025-01-24 17:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321336', 'tblTempUsageDetail_20' ) start [2025-01-24 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321336', 'tblTempUsageDetail_20' ) end [2025-01-24 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321336', 'tblTempVendorCDR_20' ) start [2025-01-24 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321336', 'tblTempVendorCDR_20' ) end [2025-01-24 17:59:23] Production.INFO: ProcessCDR(1,14321336,1,1,2) [2025-01-24 17:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321336', 'tblTempUsageDetail_20' ) start [2025-01-24 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321336', 'tblTempUsageDetail_20' ) end [2025-01-24 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 17:59:26] Production.INFO: ==16510== Releasing lock... [2025-01-24 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 17:59:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:00:06 [end_date_ymd] => 2025-01-24 18:00:06 [RateCDR] => 1 ) [2025-01-24 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:00:06' and `end` < '2025-01-24 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:00:27] Production.INFO: count ==5747 [2025-01-24 18:00:29] Production.ERROR: pbx CDR StartTime 2025-01-24 15:00:06 - End Time 2025-01-24 18:00:06 [2025-01-24 18:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321342', 'tblTempUsageDetail_20' ) start [2025-01-24 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321342', 'tblTempUsageDetail_20' ) end [2025-01-24 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321342', 'tblTempVendorCDR_20' ) start [2025-01-24 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321342', 'tblTempVendorCDR_20' ) end [2025-01-24 18:00:29] Production.INFO: ProcessCDR(1,14321342,1,1,2) [2025-01-24 18:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321342', 'tblTempUsageDetail_20' ) start [2025-01-24 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321342', 'tblTempUsageDetail_20' ) end [2025-01-24 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:00:33] Production.INFO: ==16587== Releasing lock... [2025-01-24 18:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:00:33] Production.INFO: 71 MB #Memory Used# [2025-01-24 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:01:05 [end_date_ymd] => 2025-01-24 18:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:01:05' and `end` < '2025-01-24 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-24 18:01:29] Production.INFO: count ==5791 [2025-01-24 18:01:31] Production.ERROR: pbx CDR StartTime 2025-01-24 15:01:05 - End Time 2025-01-24 18:01:05 [2025-01-24 18:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321347', 'tblTempUsageDetail_20' ) start [2025-01-24 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321347', 'tblTempUsageDetail_20' ) end [2025-01-24 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321347', 'tblTempVendorCDR_20' ) start [2025-01-24 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321347', 'tblTempVendorCDR_20' ) end [2025-01-24 18:01:31] Production.INFO: ProcessCDR(1,14321347,1,1,2) [2025-01-24 18:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321347', 'tblTempUsageDetail_20' ) start [2025-01-24 18:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321347', 'tblTempUsageDetail_20' ) end [2025-01-24 18:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:01:36] Production.INFO: ==16676== Releasing lock... [2025-01-24 18:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:01:36] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:02:05 [end_date_ymd] => 2025-01-24 18:02:05 [RateCDR] => 1 ) [2025-01-24 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:02:05' and `end` < '2025-01-24 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:02:24] Production.INFO: count ==5791 [2025-01-24 18:02:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:02:05 - End Time 2025-01-24 18:02:05 [2025-01-24 18:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321352', 'tblTempUsageDetail_20' ) start [2025-01-24 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321352', 'tblTempUsageDetail_20' ) end [2025-01-24 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321352', 'tblTempVendorCDR_20' ) start [2025-01-24 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321352', 'tblTempVendorCDR_20' ) end [2025-01-24 18:02:26] Production.INFO: ProcessCDR(1,14321352,1,1,2) [2025-01-24 18:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321352', 'tblTempUsageDetail_20' ) start [2025-01-24 18:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321352', 'tblTempUsageDetail_20' ) end [2025-01-24 18:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:02:30] Production.INFO: ==16749== Releasing lock... [2025-01-24 18:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:02:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:03:05 [end_date_ymd] => 2025-01-24 18:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:03:05' and `end` < '2025-01-24 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-24 18:03:25] Production.INFO: count ==5784 [2025-01-24 18:03:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:03:05 - End Time 2025-01-24 18:03:05 [2025-01-24 18:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321357', 'tblTempUsageDetail_20' ) start [2025-01-24 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321357', 'tblTempUsageDetail_20' ) end [2025-01-24 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321357', 'tblTempVendorCDR_20' ) start [2025-01-24 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321357', 'tblTempVendorCDR_20' ) end [2025-01-24 18:03:27] Production.INFO: ProcessCDR(1,14321357,1,1,2) [2025-01-24 18:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321357', 'tblTempUsageDetail_20' ) start [2025-01-24 18:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321357', 'tblTempUsageDetail_20' ) end [2025-01-24 18:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:03:32] Production.INFO: ==16825== Releasing lock... [2025-01-24 18:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:03:32] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:04:06 [end_date_ymd] => 2025-01-24 18:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:04:06' and `end` < '2025-01-24 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-24 18:04:23] Production.INFO: count ==5778 [2025-01-24 18:04:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:04:06 - End Time 2025-01-24 18:04:06 [2025-01-24 18:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321362', 'tblTempUsageDetail_20' ) start [2025-01-24 18:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321362', 'tblTempUsageDetail_20' ) end [2025-01-24 18:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321362', 'tblTempVendorCDR_20' ) start [2025-01-24 18:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321362', 'tblTempVendorCDR_20' ) end [2025-01-24 18:04:25] Production.INFO: ProcessCDR(1,14321362,1,1,2) [2025-01-24 18:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321362', 'tblTempUsageDetail_20' ) start [2025-01-24 18:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321362', 'tblTempUsageDetail_20' ) end [2025-01-24 18:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:04:30] Production.INFO: ==16901== Releasing lock... [2025-01-24 18:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:04:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:05:05 [end_date_ymd] => 2025-01-24 18:05:05 [RateCDR] => 1 ) [2025-01-24 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:05:05' and `end` < '2025-01-24 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:05:26] Production.INFO: count ==5770 [2025-01-24 18:05:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:05:05 - End Time 2025-01-24 18:05:05 [2025-01-24 18:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321367', 'tblTempUsageDetail_20' ) start [2025-01-24 18:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321367', 'tblTempUsageDetail_20' ) end [2025-01-24 18:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321367', 'tblTempVendorCDR_20' ) start [2025-01-24 18:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321367', 'tblTempVendorCDR_20' ) end [2025-01-24 18:05:28] Production.INFO: ProcessCDR(1,14321367,1,1,2) [2025-01-24 18:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321367', 'tblTempUsageDetail_20' ) start [2025-01-24 18:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321367', 'tblTempUsageDetail_20' ) end [2025-01-24 18:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:05:32] Production.INFO: ==16971== Releasing lock... [2025-01-24 18:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:05:32] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:06:06 [end_date_ymd] => 2025-01-24 18:06:06 [RateCDR] => 1 ) [2025-01-24 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:06:06' and `end` < '2025-01-24 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:06:23] Production.INFO: count ==5749 [2025-01-24 18:06:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:06:06 - End Time 2025-01-24 18:06:06 [2025-01-24 18:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321372', 'tblTempUsageDetail_20' ) start [2025-01-24 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321372', 'tblTempUsageDetail_20' ) end [2025-01-24 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321372', 'tblTempVendorCDR_20' ) start [2025-01-24 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321372', 'tblTempVendorCDR_20' ) end [2025-01-24 18:06:25] Production.INFO: ProcessCDR(1,14321372,1,1,2) [2025-01-24 18:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321372', 'tblTempUsageDetail_20' ) start [2025-01-24 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321372', 'tblTempUsageDetail_20' ) end [2025-01-24 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:06:28] Production.INFO: ==17048== Releasing lock... [2025-01-24 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:06:28] Production.INFO: 71 MB #Memory Used# [2025-01-24 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:07:05 [end_date_ymd] => 2025-01-24 18:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:07:05' and `end` < '2025-01-24 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:07:22] Production.INFO: count ==5748 [2025-01-24 18:07:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:07:05 - End Time 2025-01-24 18:07:05 [2025-01-24 18:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321377', 'tblTempUsageDetail_20' ) start [2025-01-24 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321377', 'tblTempUsageDetail_20' ) end [2025-01-24 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321377', 'tblTempVendorCDR_20' ) start [2025-01-24 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321377', 'tblTempVendorCDR_20' ) end [2025-01-24 18:07:24] Production.INFO: ProcessCDR(1,14321377,1,1,2) [2025-01-24 18:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321377', 'tblTempUsageDetail_20' ) start [2025-01-24 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321377', 'tblTempUsageDetail_20' ) end [2025-01-24 18:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:07:28] Production.INFO: ==17126== Releasing lock... [2025-01-24 18:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:07:28] Production.INFO: 71 MB #Memory Used# [2025-01-24 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:08:06 [end_date_ymd] => 2025-01-24 18:08:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:08:06' and `end` < '2025-01-24 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-24 18:08:20] Production.INFO: count ==5728 [2025-01-24 18:08:22] Production.ERROR: pbx CDR StartTime 2025-01-24 15:08:06 - End Time 2025-01-24 18:08:06 [2025-01-24 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321382', 'tblTempUsageDetail_20' ) start [2025-01-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321382', 'tblTempUsageDetail_20' ) end [2025-01-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321382', 'tblTempVendorCDR_20' ) start [2025-01-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321382', 'tblTempVendorCDR_20' ) end [2025-01-24 18:08:22] Production.INFO: ProcessCDR(1,14321382,1,1,2) [2025-01-24 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321382', 'tblTempUsageDetail_20' ) start [2025-01-24 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321382', 'tblTempUsageDetail_20' ) end [2025-01-24 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:08:25] Production.INFO: ==17201== Releasing lock... [2025-01-24 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:08:25] Production.INFO: 71 MB #Memory Used# [2025-01-24 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:09:05 [end_date_ymd] => 2025-01-24 18:09:05 [RateCDR] => 1 ) [2025-01-24 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:09:05' and `end` < '2025-01-24 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:09:21] Production.INFO: count ==5717 [2025-01-24 18:09:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:09:05 - End Time 2025-01-24 18:09:05 [2025-01-24 18:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321387', 'tblTempUsageDetail_20' ) start [2025-01-24 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321387', 'tblTempUsageDetail_20' ) end [2025-01-24 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321387', 'tblTempVendorCDR_20' ) start [2025-01-24 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321387', 'tblTempVendorCDR_20' ) end [2025-01-24 18:09:23] Production.INFO: ProcessCDR(1,14321387,1,1,2) [2025-01-24 18:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321387', 'tblTempUsageDetail_20' ) start [2025-01-24 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321387', 'tblTempUsageDetail_20' ) end [2025-01-24 18:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:09:28] Production.INFO: ==17279== Releasing lock... [2025-01-24 18:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:09:28] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:10:06 [end_date_ymd] => 2025-01-24 18:10:06 [RateCDR] => 1 ) [2025-01-24 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:10:06' and `end` < '2025-01-24 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:10:25] Production.INFO: count ==5706 [2025-01-24 18:10:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:10:06 - End Time 2025-01-24 18:10:06 [2025-01-24 18:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321393', 'tblTempUsageDetail_20' ) start [2025-01-24 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321393', 'tblTempUsageDetail_20' ) end [2025-01-24 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321393', 'tblTempVendorCDR_20' ) start [2025-01-24 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321393', 'tblTempVendorCDR_20' ) end [2025-01-24 18:10:27] Production.INFO: ProcessCDR(1,14321393,1,1,2) [2025-01-24 18:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321393', 'tblTempUsageDetail_20' ) start [2025-01-24 18:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321393', 'tblTempUsageDetail_20' ) end [2025-01-24 18:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:10:32] Production.INFO: ==17397== Releasing lock... [2025-01-24 18:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:10:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:11:05 [end_date_ymd] => 2025-01-24 18:11:05 [RateCDR] => 1 ) [2025-01-24 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:11:05' and `end` < '2025-01-24 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:11:23] Production.INFO: count ==5719 [2025-01-24 18:11:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:11:05 - End Time 2025-01-24 18:11:05 [2025-01-24 18:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321398', 'tblTempUsageDetail_20' ) start [2025-01-24 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321398', 'tblTempUsageDetail_20' ) end [2025-01-24 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321398', 'tblTempVendorCDR_20' ) start [2025-01-24 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321398', 'tblTempVendorCDR_20' ) end [2025-01-24 18:11:25] Production.INFO: ProcessCDR(1,14321398,1,1,2) [2025-01-24 18:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321398', 'tblTempUsageDetail_20' ) start [2025-01-24 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321398', 'tblTempUsageDetail_20' ) end [2025-01-24 18:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:11:28] Production.INFO: ==17479== Releasing lock... [2025-01-24 18:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:11:28] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:12:06 [end_date_ymd] => 2025-01-24 18:12:06 [RateCDR] => 1 ) [2025-01-24 18: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-24 15:12:06' and `end` < '2025-01-24 18: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-24 18:12:21] Production.INFO: count ==5697 [2025-01-24 18:12:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:12:06 - End Time 2025-01-24 18:12:06 [2025-01-24 18:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321403', 'tblTempUsageDetail_20' ) start [2025-01-24 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321403', 'tblTempUsageDetail_20' ) end [2025-01-24 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321403', 'tblTempVendorCDR_20' ) start [2025-01-24 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321403', 'tblTempVendorCDR_20' ) end [2025-01-24 18:12:23] Production.INFO: ProcessCDR(1,14321403,1,1,2) [2025-01-24 18:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321403', 'tblTempUsageDetail_20' ) start [2025-01-24 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321403', 'tblTempUsageDetail_20' ) end [2025-01-24 18:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:12:28] Production.INFO: ==17551== Releasing lock... [2025-01-24 18:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:12:28] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:13:05 [end_date_ymd] => 2025-01-24 18:13:05 [RateCDR] => 1 ) [2025-01-24 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:13:05' and `end` < '2025-01-24 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:13:21] Production.INFO: count ==5681 [2025-01-24 18:13:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:13:05 - End Time 2025-01-24 18:13:05 [2025-01-24 18:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321408', 'tblTempUsageDetail_20' ) start [2025-01-24 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321408', 'tblTempUsageDetail_20' ) end [2025-01-24 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321408', 'tblTempVendorCDR_20' ) start [2025-01-24 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321408', 'tblTempVendorCDR_20' ) end [2025-01-24 18:13:23] Production.INFO: ProcessCDR(1,14321408,1,1,2) [2025-01-24 18:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321408', 'tblTempUsageDetail_20' ) start [2025-01-24 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321408', 'tblTempUsageDetail_20' ) end [2025-01-24 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:13:26] Production.INFO: ==17627== Releasing lock... [2025-01-24 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:13:26] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:14:05 [end_date_ymd] => 2025-01-24 18:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:14:05' and `end` < '2025-01-24 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-24 18:14:21] Production.INFO: count ==5681 [2025-01-24 18:14:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:14:05 - End Time 2025-01-24 18:14:05 [2025-01-24 18:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321413', 'tblTempUsageDetail_20' ) start [2025-01-24 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321413', 'tblTempUsageDetail_20' ) end [2025-01-24 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321413', 'tblTempVendorCDR_20' ) start [2025-01-24 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321413', 'tblTempVendorCDR_20' ) end [2025-01-24 18:14:23] Production.INFO: ProcessCDR(1,14321413,1,1,2) [2025-01-24 18:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321413', 'tblTempUsageDetail_20' ) start [2025-01-24 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321413', 'tblTempUsageDetail_20' ) end [2025-01-24 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:14:27] Production.INFO: ==17709== Releasing lock... [2025-01-24 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:14:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:15:05 [end_date_ymd] => 2025-01-24 18:15:05 [RateCDR] => 1 ) [2025-01-24 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:15:05' and `end` < '2025-01-24 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:15:18] Production.INFO: count ==5671 [2025-01-24 18:15:20] Production.ERROR: pbx CDR StartTime 2025-01-24 15:15:05 - End Time 2025-01-24 18:15:05 [2025-01-24 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321418', 'tblTempUsageDetail_20' ) start [2025-01-24 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321418', 'tblTempUsageDetail_20' ) end [2025-01-24 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321418', 'tblTempVendorCDR_20' ) start [2025-01-24 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321418', 'tblTempVendorCDR_20' ) end [2025-01-24 18:15:20] Production.INFO: ProcessCDR(1,14321418,1,1,2) [2025-01-24 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321418', 'tblTempUsageDetail_20' ) start [2025-01-24 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321418', 'tblTempUsageDetail_20' ) end [2025-01-24 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:15:25] Production.INFO: ==17785== Releasing lock... [2025-01-24 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:15:25] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:16:06 [end_date_ymd] => 2025-01-24 18:16:06 [RateCDR] => 1 ) [2025-01-24 18:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:16:06' and `end` < '2025-01-24 18:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:16:22] Production.INFO: count ==5652 [2025-01-24 18:16:24] Production.ERROR: pbx CDR StartTime 2025-01-24 15:16:06 - End Time 2025-01-24 18:16:06 [2025-01-24 18:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321423', 'tblTempUsageDetail_20' ) start [2025-01-24 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321423', 'tblTempUsageDetail_20' ) end [2025-01-24 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321423', 'tblTempVendorCDR_20' ) start [2025-01-24 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321423', 'tblTempVendorCDR_20' ) end [2025-01-24 18:16:24] Production.INFO: ProcessCDR(1,14321423,1,1,2) [2025-01-24 18:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321423', 'tblTempUsageDetail_20' ) start [2025-01-24 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321423', 'tblTempUsageDetail_20' ) end [2025-01-24 18:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:16:28] Production.INFO: ==17862== Releasing lock... [2025-01-24 18:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:16:28] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:17:05 [end_date_ymd] => 2025-01-24 18:17:05 [RateCDR] => 1 ) [2025-01-24 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:17:05' and `end` < '2025-01-24 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:17:23] Production.INFO: count ==5633 [2025-01-24 18:17:24] Production.ERROR: pbx CDR StartTime 2025-01-24 15:17:05 - End Time 2025-01-24 18:17:05 [2025-01-24 18:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321428', 'tblTempUsageDetail_20' ) start [2025-01-24 18:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321428', 'tblTempUsageDetail_20' ) end [2025-01-24 18:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321428', 'tblTempVendorCDR_20' ) start [2025-01-24 18:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321428', 'tblTempVendorCDR_20' ) end [2025-01-24 18:17:25] Production.INFO: ProcessCDR(1,14321428,1,1,2) [2025-01-24 18:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321428', 'tblTempUsageDetail_20' ) start [2025-01-24 18:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321428', 'tblTempUsageDetail_20' ) end [2025-01-24 18:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:17:29] Production.INFO: ==17935== Releasing lock... [2025-01-24 18:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:17:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:18:05 [end_date_ymd] => 2025-01-24 18:18:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:18:05' and `end` < '2025-01-24 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-24 18:18:21] Production.INFO: count ==5620 [2025-01-24 18:18:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:18:05 - End Time 2025-01-24 18:18:05 [2025-01-24 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321433', 'tblTempUsageDetail_20' ) start [2025-01-24 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321433', 'tblTempUsageDetail_20' ) end [2025-01-24 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321433', 'tblTempVendorCDR_20' ) start [2025-01-24 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321433', 'tblTempVendorCDR_20' ) end [2025-01-24 18:18:23] Production.INFO: ProcessCDR(1,14321433,1,1,2) [2025-01-24 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321433', 'tblTempUsageDetail_20' ) start [2025-01-24 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321433', 'tblTempUsageDetail_20' ) end [2025-01-24 18:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:18:28] Production.INFO: ==18015== Releasing lock... [2025-01-24 18:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:18:28] Production.INFO: 70 MB #Memory Used# [2025-01-24 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:19:05 [end_date_ymd] => 2025-01-24 18:19:05 [RateCDR] => 1 ) [2025-01-24 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:19:05' and `end` < '2025-01-24 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:19:21] Production.INFO: count ==5592 [2025-01-24 18:19:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:19:05 - End Time 2025-01-24 18:19:05 [2025-01-24 18:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321438', 'tblTempUsageDetail_20' ) start [2025-01-24 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321438', 'tblTempUsageDetail_20' ) end [2025-01-24 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321438', 'tblTempVendorCDR_20' ) start [2025-01-24 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321438', 'tblTempVendorCDR_20' ) end [2025-01-24 18:19:23] Production.INFO: ProcessCDR(1,14321438,1,1,2) [2025-01-24 18:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321438', 'tblTempUsageDetail_20' ) start [2025-01-24 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321438', 'tblTempUsageDetail_20' ) end [2025-01-24 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:19:26] Production.INFO: ==18093== Releasing lock... [2025-01-24 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:19:26] Production.INFO: 70 MB #Memory Used# [2025-01-24 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:20:05 [end_date_ymd] => 2025-01-24 18:20:05 [RateCDR] => 1 ) [2025-01-24 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:20:05' and `end` < '2025-01-24 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:20:28] Production.INFO: count ==5567 [2025-01-24 18:20:29] Production.ERROR: pbx CDR StartTime 2025-01-24 15:20:05 - End Time 2025-01-24 18:20:05 [2025-01-24 18:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321444', 'tblTempUsageDetail_20' ) start [2025-01-24 18:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321444', 'tblTempUsageDetail_20' ) end [2025-01-24 18:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321444', 'tblTempVendorCDR_20' ) start [2025-01-24 18:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321444', 'tblTempVendorCDR_20' ) end [2025-01-24 18:20:29] Production.INFO: ProcessCDR(1,14321444,1,1,2) [2025-01-24 18:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321444', 'tblTempUsageDetail_20' ) start [2025-01-24 18:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321444', 'tblTempUsageDetail_20' ) end [2025-01-24 18:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:20:33] Production.INFO: ==18169== Releasing lock... [2025-01-24 18:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:20:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-24 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:21:05 [end_date_ymd] => 2025-01-24 18:21:05 [RateCDR] => 1 ) [2025-01-24 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:21:05' and `end` < '2025-01-24 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:21:25] Production.INFO: count ==5524 [2025-01-24 18:21:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:21:05 - End Time 2025-01-24 18:21:05 [2025-01-24 18:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321449', 'tblTempUsageDetail_20' ) start [2025-01-24 18:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321449', 'tblTempUsageDetail_20' ) end [2025-01-24 18:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321449', 'tblTempVendorCDR_20' ) start [2025-01-24 18:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321449', 'tblTempVendorCDR_20' ) end [2025-01-24 18:21:27] Production.INFO: ProcessCDR(1,14321449,1,1,2) [2025-01-24 18:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321449', 'tblTempUsageDetail_20' ) start [2025-01-24 18:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321449', 'tblTempUsageDetail_20' ) end [2025-01-24 18:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:21:32] Production.INFO: ==18249== Releasing lock... [2025-01-24 18:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:21:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-24 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:22:06 [end_date_ymd] => 2025-01-24 18:22:06 [RateCDR] => 1 ) [2025-01-24 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:22:06' and `end` < '2025-01-24 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:22:22] Production.INFO: count ==5502 [2025-01-24 18:22:24] Production.ERROR: pbx CDR StartTime 2025-01-24 15:22:06 - End Time 2025-01-24 18:22:06 [2025-01-24 18:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321454', 'tblTempUsageDetail_20' ) start [2025-01-24 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321454', 'tblTempUsageDetail_20' ) end [2025-01-24 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321454', 'tblTempVendorCDR_20' ) start [2025-01-24 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321454', 'tblTempVendorCDR_20' ) end [2025-01-24 18:22:24] Production.INFO: ProcessCDR(1,14321454,1,1,2) [2025-01-24 18:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321454', 'tblTempUsageDetail_20' ) start [2025-01-24 18:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321454', 'tblTempUsageDetail_20' ) end [2025-01-24 18:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:22:28] Production.INFO: ==18325== Releasing lock... [2025-01-24 18:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:22:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-24 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:23:05 [end_date_ymd] => 2025-01-24 18:23:05 [RateCDR] => 1 ) [2025-01-24 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:23:05' and `end` < '2025-01-24 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:23:22] Production.INFO: count ==5479 [2025-01-24 18:23:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:23:05 - End Time 2025-01-24 18:23:05 [2025-01-24 18:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321459', 'tblTempUsageDetail_20' ) start [2025-01-24 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321459', 'tblTempUsageDetail_20' ) end [2025-01-24 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321459', 'tblTempVendorCDR_20' ) start [2025-01-24 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321459', 'tblTempVendorCDR_20' ) end [2025-01-24 18:23:24] Production.INFO: ProcessCDR(1,14321459,1,1,2) [2025-01-24 18:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321459', 'tblTempUsageDetail_20' ) start [2025-01-24 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321459', 'tblTempUsageDetail_20' ) end [2025-01-24 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:23:27] Production.INFO: ==18399== Releasing lock... [2025-01-24 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:23:27] Production.INFO: 69 MB #Memory Used# [2025-01-24 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:24:05 [end_date_ymd] => 2025-01-24 18:24:05 [RateCDR] => 1 ) [2025-01-24 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:24:05' and `end` < '2025-01-24 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:24:22] Production.INFO: count ==5464 [2025-01-24 18:24:23] Production.ERROR: pbx CDR StartTime 2025-01-24 15:24:05 - End Time 2025-01-24 18:24:05 [2025-01-24 18:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321464', 'tblTempUsageDetail_20' ) start [2025-01-24 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321464', 'tblTempUsageDetail_20' ) end [2025-01-24 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321464', 'tblTempVendorCDR_20' ) start [2025-01-24 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321464', 'tblTempVendorCDR_20' ) end [2025-01-24 18:24:23] Production.INFO: ProcessCDR(1,14321464,1,1,2) [2025-01-24 18:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321464', 'tblTempUsageDetail_20' ) start [2025-01-24 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321464', 'tblTempUsageDetail_20' ) end [2025-01-24 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:24:27] Production.INFO: ==18475== Releasing lock... [2025-01-24 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:24:27] Production.INFO: 69 MB #Memory Used# [2025-01-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:25:05 [end_date_ymd] => 2025-01-24 18:25:05 [RateCDR] => 1 ) [2025-01-24 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:25:05' and `end` < '2025-01-24 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:25:25] Production.INFO: count ==5451 [2025-01-24 18:25:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:25:05 - End Time 2025-01-24 18:25:05 [2025-01-24 18:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321469', 'tblTempUsageDetail_20' ) start [2025-01-24 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321469', 'tblTempUsageDetail_20' ) end [2025-01-24 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321469', 'tblTempVendorCDR_20' ) start [2025-01-24 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321469', 'tblTempVendorCDR_20' ) end [2025-01-24 18:25:26] Production.INFO: ProcessCDR(1,14321469,1,1,2) [2025-01-24 18:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321469', 'tblTempUsageDetail_20' ) start [2025-01-24 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321469', 'tblTempUsageDetail_20' ) end [2025-01-24 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:25:29] Production.INFO: ==18553== Releasing lock... [2025-01-24 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:25:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 18:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:26:06 [end_date_ymd] => 2025-01-24 18:26:06 [RateCDR] => 1 ) [2025-01-24 18: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-24 15:26:06' and `end` < '2025-01-24 18: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-24 18:26:20] Production.INFO: count ==5419 [2025-01-24 18:26:22] Production.ERROR: pbx CDR StartTime 2025-01-24 15:26:06 - End Time 2025-01-24 18:26:06 [2025-01-24 18:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321474', 'tblTempUsageDetail_20' ) start [2025-01-24 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321474', 'tblTempUsageDetail_20' ) end [2025-01-24 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321474', 'tblTempVendorCDR_20' ) start [2025-01-24 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321474', 'tblTempVendorCDR_20' ) end [2025-01-24 18:26:22] Production.INFO: ProcessCDR(1,14321474,1,1,2) [2025-01-24 18:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321474', 'tblTempUsageDetail_20' ) start [2025-01-24 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321474', 'tblTempUsageDetail_20' ) end [2025-01-24 18:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:26:27] Production.INFO: ==18668== Releasing lock... [2025-01-24 18:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:26:27] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:27:05 [end_date_ymd] => 2025-01-24 18:27:05 [RateCDR] => 1 ) [2025-01-24 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:27:05' and `end` < '2025-01-24 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:27:20] Production.INFO: count ==5395 [2025-01-24 18:27:22] Production.ERROR: pbx CDR StartTime 2025-01-24 15:27:05 - End Time 2025-01-24 18:27:05 [2025-01-24 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321479', 'tblTempUsageDetail_20' ) start [2025-01-24 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321479', 'tblTempUsageDetail_20' ) end [2025-01-24 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321479', 'tblTempVendorCDR_20' ) start [2025-01-24 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321479', 'tblTempVendorCDR_20' ) end [2025-01-24 18:27:22] Production.INFO: ProcessCDR(1,14321479,1,1,2) [2025-01-24 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321479', 'tblTempUsageDetail_20' ) start [2025-01-24 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321479', 'tblTempUsageDetail_20' ) end [2025-01-24 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:27:25] Production.INFO: ==18744== Releasing lock... [2025-01-24 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:27:25] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:28:06 [end_date_ymd] => 2025-01-24 18:28:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:28:06' and `end` < '2025-01-24 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-24 18:28:20] Production.INFO: count ==5366 [2025-01-24 18:28:21] Production.ERROR: pbx CDR StartTime 2025-01-24 15:28:06 - End Time 2025-01-24 18:28:06 [2025-01-24 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321484', 'tblTempUsageDetail_20' ) start [2025-01-24 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321484', 'tblTempUsageDetail_20' ) end [2025-01-24 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321484', 'tblTempVendorCDR_20' ) start [2025-01-24 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321484', 'tblTempVendorCDR_20' ) end [2025-01-24 18:28:21] Production.INFO: ProcessCDR(1,14321484,1,1,2) [2025-01-24 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321484', 'tblTempUsageDetail_20' ) start [2025-01-24 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321484', 'tblTempUsageDetail_20' ) end [2025-01-24 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:28:24] Production.INFO: ==18824== Releasing lock... [2025-01-24 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:28:24] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:29:05 [end_date_ymd] => 2025-01-24 18:29:05 [RateCDR] => 1 ) [2025-01-24 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:29:05' and `end` < '2025-01-24 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:29:19] Production.INFO: count ==5358 [2025-01-24 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-24 15:29:05 - End Time 2025-01-24 18:29:05 [2025-01-24 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321489', 'tblTempUsageDetail_20' ) start [2025-01-24 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321489', 'tblTempUsageDetail_20' ) end [2025-01-24 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321489', 'tblTempVendorCDR_20' ) start [2025-01-24 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321489', 'tblTempVendorCDR_20' ) end [2025-01-24 18:29:21] Production.INFO: ProcessCDR(1,14321489,1,1,2) [2025-01-24 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321489', 'tblTempUsageDetail_20' ) start [2025-01-24 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321489', 'tblTempUsageDetail_20' ) end [2025-01-24 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:29:24] Production.INFO: ==18902== Releasing lock... [2025-01-24 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:29:24] Production.INFO: 68 MB #Memory Used# [2025-01-24 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:30:05 [end_date_ymd] => 2025-01-24 18:30:05 [RateCDR] => 1 ) [2025-01-24 18: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-24 15:30:05' and `end` < '2025-01-24 18: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-24 18:30:27] Production.INFO: count ==5350 [2025-01-24 18:30:29] Production.ERROR: pbx CDR StartTime 2025-01-24 15:30:05 - End Time 2025-01-24 18:30:05 [2025-01-24 18:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321494', 'tblTempUsageDetail_20' ) start [2025-01-24 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321494', 'tblTempUsageDetail_20' ) end [2025-01-24 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321494', 'tblTempVendorCDR_20' ) start [2025-01-24 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321494', 'tblTempVendorCDR_20' ) end [2025-01-24 18:30:29] Production.INFO: ProcessCDR(1,14321494,1,1,2) [2025-01-24 18:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321494', 'tblTempUsageDetail_20' ) start [2025-01-24 18:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321494', 'tblTempUsageDetail_20' ) end [2025-01-24 18:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:30:32] Production.INFO: ==18976== Releasing lock... [2025-01-24 18:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:30:32] Production.INFO: 68 MB #Memory Used# [2025-01-24 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:31:05 [end_date_ymd] => 2025-01-24 18:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:31:05' and `end` < '2025-01-24 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-24 18:31:24] Production.INFO: count ==5340 [2025-01-24 18:31:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:31:05 - End Time 2025-01-24 18:31:05 [2025-01-24 18:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321500', 'tblTempUsageDetail_20' ) start [2025-01-24 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321500', 'tblTempUsageDetail_20' ) end [2025-01-24 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321500', 'tblTempVendorCDR_20' ) start [2025-01-24 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321500', 'tblTempVendorCDR_20' ) end [2025-01-24 18:31:26] Production.INFO: ProcessCDR(1,14321500,1,1,2) [2025-01-24 18:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321500', 'tblTempUsageDetail_20' ) start [2025-01-24 18:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321500', 'tblTempUsageDetail_20' ) end [2025-01-24 18:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:31:29] Production.INFO: ==19054== Releasing lock... [2025-01-24 18:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:31:29] Production.INFO: 68 MB #Memory Used# [2025-01-24 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:32:06 [end_date_ymd] => 2025-01-24 18:32:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:32:06' and `end` < '2025-01-24 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-24 18:32:24] Production.INFO: count ==5349 [2025-01-24 18:32:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:32:06 - End Time 2025-01-24 18:32:06 [2025-01-24 18:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321505', 'tblTempUsageDetail_20' ) start [2025-01-24 18:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321505', 'tblTempUsageDetail_20' ) end [2025-01-24 18:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321505', 'tblTempVendorCDR_20' ) start [2025-01-24 18:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321505', 'tblTempVendorCDR_20' ) end [2025-01-24 18:32:26] Production.INFO: ProcessCDR(1,14321505,1,1,2) [2025-01-24 18:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321505', 'tblTempUsageDetail_20' ) start [2025-01-24 18:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321505', 'tblTempUsageDetail_20' ) end [2025-01-24 18:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:32:30] Production.INFO: ==19138== Releasing lock... [2025-01-24 18:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:32:30] Production.INFO: 68 MB #Memory Used# [2025-01-24 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:33:05 [end_date_ymd] => 2025-01-24 18:33:05 [RateCDR] => 1 ) [2025-01-24 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:33:05' and `end` < '2025-01-24 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:33:19] Production.INFO: count ==5371 [2025-01-24 18:33:21] Production.ERROR: pbx CDR StartTime 2025-01-24 15:33:05 - End Time 2025-01-24 18:33:05 [2025-01-24 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321510', 'tblTempUsageDetail_20' ) start [2025-01-24 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321510', 'tblTempUsageDetail_20' ) end [2025-01-24 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321510', 'tblTempVendorCDR_20' ) start [2025-01-24 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321510', 'tblTempVendorCDR_20' ) end [2025-01-24 18:33:21] Production.INFO: ProcessCDR(1,14321510,1,1,2) [2025-01-24 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321510', 'tblTempUsageDetail_20' ) start [2025-01-24 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321510', 'tblTempUsageDetail_20' ) end [2025-01-24 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:33:25] Production.INFO: ==19207== Releasing lock... [2025-01-24 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:33:25] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:34:05 [end_date_ymd] => 2025-01-24 18:34:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:34:05' and `end` < '2025-01-24 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-24 18:34:25] Production.INFO: count ==5398 [2025-01-24 18:34:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:34:05 - End Time 2025-01-24 18:34:05 [2025-01-24 18:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321515', 'tblTempUsageDetail_20' ) start [2025-01-24 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321515', 'tblTempUsageDetail_20' ) end [2025-01-24 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321515', 'tblTempVendorCDR_20' ) start [2025-01-24 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321515', 'tblTempVendorCDR_20' ) end [2025-01-24 18:34:26] Production.INFO: ProcessCDR(1,14321515,1,1,2) [2025-01-24 18:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321515', 'tblTempUsageDetail_20' ) start [2025-01-24 18:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321515', 'tblTempUsageDetail_20' ) end [2025-01-24 18:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:34:30] Production.INFO: ==19290== Releasing lock... [2025-01-24 18:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:34:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:35:05 [end_date_ymd] => 2025-01-24 18:35:05 [RateCDR] => 1 ) [2025-01-24 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:35:05' and `end` < '2025-01-24 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:35:24] Production.INFO: count ==5451 [2025-01-24 18:35:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:35:05 - End Time 2025-01-24 18:35:05 [2025-01-24 18:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321520', 'tblTempUsageDetail_20' ) start [2025-01-24 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321520', 'tblTempUsageDetail_20' ) end [2025-01-24 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321520', 'tblTempVendorCDR_20' ) start [2025-01-24 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321520', 'tblTempVendorCDR_20' ) end [2025-01-24 18:35:25] Production.INFO: ProcessCDR(1,14321520,1,1,2) [2025-01-24 18:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321520', 'tblTempUsageDetail_20' ) start [2025-01-24 18:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321520', 'tblTempUsageDetail_20' ) end [2025-01-24 18:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:35:29] Production.INFO: ==19364== Releasing lock... [2025-01-24 18:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:35:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:36:06 [end_date_ymd] => 2025-01-24 18:36:06 [RateCDR] => 1 ) [2025-01-24 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:36:06' and `end` < '2025-01-24 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:36:24] Production.INFO: count ==5488 [2025-01-24 18:36:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:36:06 - End Time 2025-01-24 18:36:06 [2025-01-24 18:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321525', 'tblTempUsageDetail_20' ) start [2025-01-24 18:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321525', 'tblTempUsageDetail_20' ) end [2025-01-24 18:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321525', 'tblTempVendorCDR_20' ) start [2025-01-24 18:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321525', 'tblTempVendorCDR_20' ) end [2025-01-24 18:36:26] Production.INFO: ProcessCDR(1,14321525,1,1,2) [2025-01-24 18:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321525', 'tblTempUsageDetail_20' ) start [2025-01-24 18:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321525', 'tblTempUsageDetail_20' ) end [2025-01-24 18:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:36:30] Production.INFO: ==19436== Releasing lock... [2025-01-24 18:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:36:30] Production.INFO: 69 MB #Memory Used# [2025-01-24 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:37:05 [end_date_ymd] => 2025-01-24 18:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:37:05' and `end` < '2025-01-24 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-24 18:37:23] Production.INFO: count ==5507 [2025-01-24 18:37:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:37:05 - End Time 2025-01-24 18:37:05 [2025-01-24 18:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321530', 'tblTempUsageDetail_20' ) start [2025-01-24 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321530', 'tblTempUsageDetail_20' ) end [2025-01-24 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321530', 'tblTempVendorCDR_20' ) start [2025-01-24 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321530', 'tblTempVendorCDR_20' ) end [2025-01-24 18:37:25] Production.INFO: ProcessCDR(1,14321530,1,1,2) [2025-01-24 18:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321530', 'tblTempUsageDetail_20' ) start [2025-01-24 18:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321530', 'tblTempUsageDetail_20' ) end [2025-01-24 18:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:37:28] Production.INFO: ==19510== Releasing lock... [2025-01-24 18:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:37:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-24 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:38:05 [end_date_ymd] => 2025-01-24 18:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:38:05' and `end` < '2025-01-24 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-24 18:38:25] Production.INFO: count ==5542 [2025-01-24 18:38:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:38:05 - End Time 2025-01-24 18:38:05 [2025-01-24 18:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321535', 'tblTempUsageDetail_20' ) start [2025-01-24 18:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321535', 'tblTempUsageDetail_20' ) end [2025-01-24 18:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321535', 'tblTempVendorCDR_20' ) start [2025-01-24 18:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321535', 'tblTempVendorCDR_20' ) end [2025-01-24 18:38:27] Production.INFO: ProcessCDR(1,14321535,1,1,2) [2025-01-24 18:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321535', 'tblTempUsageDetail_20' ) start [2025-01-24 18:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321535', 'tblTempUsageDetail_20' ) end [2025-01-24 18:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:38:32] Production.INFO: ==19591== Releasing lock... [2025-01-24 18:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:38:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-24 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:39:05 [end_date_ymd] => 2025-01-24 18:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:39:05' and `end` < '2025-01-24 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-24 18:39:26] Production.INFO: count ==5570 [2025-01-24 18:39:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:39:05 - End Time 2025-01-24 18:39:05 [2025-01-24 18:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321540', 'tblTempUsageDetail_20' ) start [2025-01-24 18:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321540', 'tblTempUsageDetail_20' ) end [2025-01-24 18:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321540', 'tblTempVendorCDR_20' ) start [2025-01-24 18:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321540', 'tblTempVendorCDR_20' ) end [2025-01-24 18:39:28] Production.INFO: ProcessCDR(1,14321540,1,1,2) [2025-01-24 18:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321540', 'tblTempUsageDetail_20' ) start [2025-01-24 18:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321540', 'tblTempUsageDetail_20' ) end [2025-01-24 18:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:39:32] Production.INFO: ==19686== Releasing lock... [2025-01-24 18:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:39:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-24 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:40:06 [end_date_ymd] => 2025-01-24 18:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:40:06' and `end` < '2025-01-24 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-24 18:40:26] Production.INFO: count ==5610 [2025-01-24 18:40:28] Production.ERROR: pbx CDR StartTime 2025-01-24 15:40:06 - End Time 2025-01-24 18:40:06 [2025-01-24 18:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321546', 'tblTempUsageDetail_20' ) start [2025-01-24 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321546', 'tblTempUsageDetail_20' ) end [2025-01-24 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321546', 'tblTempVendorCDR_20' ) start [2025-01-24 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321546', 'tblTempVendorCDR_20' ) end [2025-01-24 18:40:28] Production.INFO: ProcessCDR(1,14321546,1,1,2) [2025-01-24 18:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321546', 'tblTempUsageDetail_20' ) start [2025-01-24 18:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321546', 'tblTempUsageDetail_20' ) end [2025-01-24 18:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:40:33] Production.INFO: ==19763== Releasing lock... [2025-01-24 18:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:40:33] Production.INFO: 70 MB #Memory Used# [2025-01-24 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:41:05 [end_date_ymd] => 2025-01-24 18:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:41:05' and `end` < '2025-01-24 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-24 18:41:25] Production.INFO: count ==5639 [2025-01-24 18:41:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:41:05 - End Time 2025-01-24 18:41:05 [2025-01-24 18:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321551', 'tblTempUsageDetail_20' ) start [2025-01-24 18:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321551', 'tblTempUsageDetail_20' ) end [2025-01-24 18:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321551', 'tblTempVendorCDR_20' ) start [2025-01-24 18:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321551', 'tblTempVendorCDR_20' ) end [2025-01-24 18:41:27] Production.INFO: ProcessCDR(1,14321551,1,1,2) [2025-01-24 18:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321551', 'tblTempUsageDetail_20' ) start [2025-01-24 18:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321551', 'tblTempUsageDetail_20' ) end [2025-01-24 18:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:41:30] Production.INFO: ==19881== Releasing lock... [2025-01-24 18:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:41:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:42:05 [end_date_ymd] => 2025-01-24 18:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:42:05' and `end` < '2025-01-24 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-24 18:42:23] Production.INFO: count ==5683 [2025-01-24 18:42:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:42:05 - End Time 2025-01-24 18:42:05 [2025-01-24 18:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321556', 'tblTempUsageDetail_20' ) start [2025-01-24 18:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321556', 'tblTempUsageDetail_20' ) end [2025-01-24 18:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321556', 'tblTempVendorCDR_20' ) start [2025-01-24 18:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321556', 'tblTempVendorCDR_20' ) end [2025-01-24 18:42:25] Production.INFO: ProcessCDR(1,14321556,1,1,2) [2025-01-24 18:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321556', 'tblTempUsageDetail_20' ) start [2025-01-24 18:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321556', 'tblTempUsageDetail_20' ) end [2025-01-24 18:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:42:29] Production.INFO: ==19956== Releasing lock... [2025-01-24 18:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:42:29] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:43:05 [end_date_ymd] => 2025-01-24 18:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:43:05' and `end` < '2025-01-24 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-24 18:43:19] Production.INFO: count ==5718 [2025-01-24 18:43:21] Production.ERROR: pbx CDR StartTime 2025-01-24 15:43:05 - End Time 2025-01-24 18:43:05 [2025-01-24 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321561', 'tblTempUsageDetail_20' ) start [2025-01-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321561', 'tblTempUsageDetail_20' ) end [2025-01-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321561', 'tblTempVendorCDR_20' ) start [2025-01-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321561', 'tblTempVendorCDR_20' ) end [2025-01-24 18:43:21] Production.INFO: ProcessCDR(1,14321561,1,1,2) [2025-01-24 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321561', 'tblTempUsageDetail_20' ) start [2025-01-24 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321561', 'tblTempUsageDetail_20' ) end [2025-01-24 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:43:24] Production.INFO: ==20029== Releasing lock... [2025-01-24 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:43:24] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:44:06 [end_date_ymd] => 2025-01-24 18:44:06 [RateCDR] => 1 ) [2025-01-24 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:44:06' and `end` < '2025-01-24 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:44:25] Production.INFO: count ==5781 [2025-01-24 18:44:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:44:06 - End Time 2025-01-24 18:44:06 [2025-01-24 18:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321566', 'tblTempUsageDetail_20' ) start [2025-01-24 18:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321566', 'tblTempUsageDetail_20' ) end [2025-01-24 18:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321566', 'tblTempVendorCDR_20' ) start [2025-01-24 18:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321566', 'tblTempVendorCDR_20' ) end [2025-01-24 18:44:27] Production.INFO: ProcessCDR(1,14321566,1,1,2) [2025-01-24 18:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321566', 'tblTempUsageDetail_20' ) start [2025-01-24 18:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321566', 'tblTempUsageDetail_20' ) end [2025-01-24 18:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:44:32] Production.INFO: ==20105== Releasing lock... [2025-01-24 18:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:44:32] Production.INFO: 71.25 MB #Memory Used# [2025-01-24 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:45:05 [end_date_ymd] => 2025-01-24 18:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:45:05' and `end` < '2025-01-24 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-24 18:45:24] Production.INFO: count ==5823 [2025-01-24 18:45:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:45:05 - End Time 2025-01-24 18:45:05 [2025-01-24 18:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321571', 'tblTempUsageDetail_20' ) start [2025-01-24 18:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321571', 'tblTempUsageDetail_20' ) end [2025-01-24 18:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321571', 'tblTempVendorCDR_20' ) start [2025-01-24 18:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321571', 'tblTempVendorCDR_20' ) end [2025-01-24 18:45:26] Production.INFO: ProcessCDR(1,14321571,1,1,2) [2025-01-24 18:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321571', 'tblTempUsageDetail_20' ) start [2025-01-24 18:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321571', 'tblTempUsageDetail_20' ) end [2025-01-24 18:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:45:29] Production.INFO: ==20178== Releasing lock... [2025-01-24 18:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:45:29] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:46:05 [end_date_ymd] => 2025-01-24 18:46:05 [RateCDR] => 1 ) [2025-01-24 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:46:05' and `end` < '2025-01-24 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:46:25] Production.INFO: count ==5878 [2025-01-24 18:46:26] Production.ERROR: pbx CDR StartTime 2025-01-24 15:46:05 - End Time 2025-01-24 18:46:05 [2025-01-24 18:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321576', 'tblTempUsageDetail_20' ) start [2025-01-24 18:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321576', 'tblTempUsageDetail_20' ) end [2025-01-24 18:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321576', 'tblTempVendorCDR_20' ) start [2025-01-24 18:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321576', 'tblTempVendorCDR_20' ) end [2025-01-24 18:46:26] Production.INFO: ProcessCDR(1,14321576,1,1,2) [2025-01-24 18:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321576', 'tblTempUsageDetail_20' ) start [2025-01-24 18:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321576', 'tblTempUsageDetail_20' ) end [2025-01-24 18:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:46:30] Production.INFO: ==20249== Releasing lock... [2025-01-24 18:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:46:30] Production.INFO: 72 MB #Memory Used# [2025-01-24 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:47:05 [end_date_ymd] => 2025-01-24 18:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:47:05' and `end` < '2025-01-24 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-24 18:47:23] Production.INFO: count ==5918 [2025-01-24 18:47:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:47:05 - End Time 2025-01-24 18:47:05 [2025-01-24 18:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321581', 'tblTempUsageDetail_20' ) start [2025-01-24 18:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321581', 'tblTempUsageDetail_20' ) end [2025-01-24 18:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321581', 'tblTempVendorCDR_20' ) start [2025-01-24 18:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321581', 'tblTempVendorCDR_20' ) end [2025-01-24 18:47:25] Production.INFO: ProcessCDR(1,14321581,1,1,2) [2025-01-24 18:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321581', 'tblTempUsageDetail_20' ) start [2025-01-24 18:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321581', 'tblTempUsageDetail_20' ) end [2025-01-24 18:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:47:29] Production.INFO: ==20325== Releasing lock... [2025-01-24 18:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:47:29] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:48:05 [end_date_ymd] => 2025-01-24 18:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:48:05' and `end` < '2025-01-24 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-24 18:48:25] Production.INFO: count ==5946 [2025-01-24 18:48:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:48:05 - End Time 2025-01-24 18:48:05 [2025-01-24 18:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321586', 'tblTempUsageDetail_20' ) start [2025-01-24 18:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321586', 'tblTempUsageDetail_20' ) end [2025-01-24 18:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321586', 'tblTempVendorCDR_20' ) start [2025-01-24 18:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321586', 'tblTempVendorCDR_20' ) end [2025-01-24 18:48:28] Production.INFO: ProcessCDR(1,14321586,1,1,2) [2025-01-24 18:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321586', 'tblTempUsageDetail_20' ) start [2025-01-24 18:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321586', 'tblTempUsageDetail_20' ) end [2025-01-24 18:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:48:31] Production.INFO: ==20399== Releasing lock... [2025-01-24 18:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:48:31] Production.INFO: 72.5 MB #Memory Used# [2025-01-24 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:49:06 [end_date_ymd] => 2025-01-24 18:49:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:49:06' and `end` < '2025-01-24 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-24 18:49:37] Production.INFO: count ==6000 [2025-01-24 18:49:39] Production.ERROR: pbx CDR StartTime 2025-01-24 15:49:06 - End Time 2025-01-24 18:49:06 [2025-01-24 18:49:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321591', 'tblTempUsageDetail_20' ) start [2025-01-24 18:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321591', 'tblTempUsageDetail_20' ) end [2025-01-24 18:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321591', 'tblTempVendorCDR_20' ) start [2025-01-24 18:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321591', 'tblTempVendorCDR_20' ) end [2025-01-24 18:49:39] Production.INFO: ProcessCDR(1,14321591,1,1,2) [2025-01-24 18:49:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:49:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:49:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:49:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321591', 'tblTempUsageDetail_20' ) start [2025-01-24 18:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321591', 'tblTempUsageDetail_20' ) end [2025-01-24 18:49:44] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:49:44] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:49:44] Production.INFO: ==20472== Releasing lock... [2025-01-24 18:49:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:49:44] Production.INFO: 73 MB #Memory Used# [2025-01-24 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:50:06 [end_date_ymd] => 2025-01-24 18:50:06 [RateCDR] => 1 ) [2025-01-24 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:50:06' and `end` < '2025-01-24 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:50:29] Production.INFO: count ==6038 [2025-01-24 18:50:31] Production.ERROR: pbx CDR StartTime 2025-01-24 15:50:06 - End Time 2025-01-24 18:50:06 [2025-01-24 18:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321597', 'tblTempUsageDetail_20' ) start [2025-01-24 18:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321597', 'tblTempUsageDetail_20' ) end [2025-01-24 18:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321597', 'tblTempVendorCDR_20' ) start [2025-01-24 18:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321597', 'tblTempVendorCDR_20' ) end [2025-01-24 18:50:31] Production.INFO: ProcessCDR(1,14321597,1,1,2) [2025-01-24 18:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321597', 'tblTempUsageDetail_20' ) start [2025-01-24 18:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321597', 'tblTempUsageDetail_20' ) end [2025-01-24 18:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:50:35] Production.INFO: ==20546== Releasing lock... [2025-01-24 18:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:50:35] Production.INFO: 73.25 MB #Memory Used# [2025-01-24 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:51:05 [end_date_ymd] => 2025-01-24 18:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:51:05' and `end` < '2025-01-24 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-24 18:51:29] Production.INFO: count ==6104 [2025-01-24 18:51:31] Production.ERROR: pbx CDR StartTime 2025-01-24 15:51:05 - End Time 2025-01-24 18:51:05 [2025-01-24 18:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321602', 'tblTempUsageDetail_20' ) start [2025-01-24 18:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321602', 'tblTempUsageDetail_20' ) end [2025-01-24 18:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321602', 'tblTempVendorCDR_20' ) start [2025-01-24 18:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321602', 'tblTempVendorCDR_20' ) end [2025-01-24 18:51:31] Production.INFO: ProcessCDR(1,14321602,1,1,2) [2025-01-24 18:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321602', 'tblTempUsageDetail_20' ) start [2025-01-24 18:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321602', 'tblTempUsageDetail_20' ) end [2025-01-24 18:51:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:51:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:51:35] Production.INFO: ==20620== Releasing lock... [2025-01-24 18:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:51:35] Production.INFO: 73.75 MB #Memory Used# [2025-01-24 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:52:06 [end_date_ymd] => 2025-01-24 18:52:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:52:06' and `end` < '2025-01-24 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-24 18:52:31] Production.INFO: count ==6145 [2025-01-24 18:52:33] Production.ERROR: pbx CDR StartTime 2025-01-24 15:52:06 - End Time 2025-01-24 18:52:06 [2025-01-24 18:52:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321607', 'tblTempUsageDetail_20' ) start [2025-01-24 18:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321607', 'tblTempUsageDetail_20' ) end [2025-01-24 18:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321607', 'tblTempVendorCDR_20' ) start [2025-01-24 18:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321607', 'tblTempVendorCDR_20' ) end [2025-01-24 18:52:34] Production.INFO: ProcessCDR(1,14321607,1,1,2) [2025-01-24 18:52:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:52:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:52:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:52:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321607', 'tblTempUsageDetail_20' ) start [2025-01-24 18:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321607', 'tblTempUsageDetail_20' ) end [2025-01-24 18:52:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:52:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:52:38] Production.INFO: ==20694== Releasing lock... [2025-01-24 18:52:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:52:38] Production.INFO: 74 MB #Memory Used# [2025-01-24 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:53:05 [end_date_ymd] => 2025-01-24 18:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:53:05' and `end` < '2025-01-24 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-24 18:53:33] Production.INFO: count ==6177 [2025-01-24 18:53:35] Production.ERROR: pbx CDR StartTime 2025-01-24 15:53:05 - End Time 2025-01-24 18:53:05 [2025-01-24 18:53:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321612', 'tblTempUsageDetail_20' ) start [2025-01-24 18:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321612', 'tblTempUsageDetail_20' ) end [2025-01-24 18:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321612', 'tblTempVendorCDR_20' ) start [2025-01-24 18:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321612', 'tblTempVendorCDR_20' ) end [2025-01-24 18:53:35] Production.INFO: ProcessCDR(1,14321612,1,1,2) [2025-01-24 18:53:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321612', 'tblTempUsageDetail_20' ) start [2025-01-24 18:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321612', 'tblTempUsageDetail_20' ) end [2025-01-24 18:53:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:53:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:53:38] Production.INFO: ==20771== Releasing lock... [2025-01-24 18:53:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:53:38] Production.INFO: 74.25 MB #Memory Used# [2025-01-24 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:54:06 [end_date_ymd] => 2025-01-24 18:54:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:54:06' and `end` < '2025-01-24 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-24 18:54:26] Production.INFO: count ==6189 [2025-01-24 18:54:28] Production.ERROR: pbx CDR StartTime 2025-01-24 15:54:06 - End Time 2025-01-24 18:54:06 [2025-01-24 18:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321617', 'tblTempUsageDetail_20' ) start [2025-01-24 18:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321617', 'tblTempUsageDetail_20' ) end [2025-01-24 18:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321617', 'tblTempVendorCDR_20' ) start [2025-01-24 18:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321617', 'tblTempVendorCDR_20' ) end [2025-01-24 18:54:28] Production.INFO: ProcessCDR(1,14321617,1,1,2) [2025-01-24 18:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321617', 'tblTempUsageDetail_20' ) start [2025-01-24 18:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321617', 'tblTempUsageDetail_20' ) end [2025-01-24 18:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:54:31] Production.INFO: ==20845== Releasing lock... [2025-01-24 18:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:54:31] Production.INFO: 74.25 MB #Memory Used# [2025-01-24 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:55:05 [end_date_ymd] => 2025-01-24 18:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:55:05' and `end` < '2025-01-24 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-24 18:55:32] Production.INFO: count ==6208 [2025-01-24 18:55:34] Production.ERROR: pbx CDR StartTime 2025-01-24 15:55:05 - End Time 2025-01-24 18:55:05 [2025-01-24 18:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321622', 'tblTempUsageDetail_20' ) start [2025-01-24 18:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321622', 'tblTempUsageDetail_20' ) end [2025-01-24 18:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321622', 'tblTempVendorCDR_20' ) start [2025-01-24 18:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321622', 'tblTempVendorCDR_20' ) end [2025-01-24 18:55:34] Production.INFO: ProcessCDR(1,14321622,1,1,2) [2025-01-24 18:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321622', 'tblTempUsageDetail_20' ) start [2025-01-24 18:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321622', 'tblTempUsageDetail_20' ) end [2025-01-24 18:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:55:38] Production.INFO: ==20918== Releasing lock... [2025-01-24 18:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:55:38] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:56:06 [end_date_ymd] => 2025-01-24 18:56:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:56:06' and `end` < '2025-01-24 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-24 18:56:31] Production.INFO: count ==6218 [2025-01-24 18:56:33] Production.ERROR: pbx CDR StartTime 2025-01-24 15:56:06 - End Time 2025-01-24 18:56:06 [2025-01-24 18:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321627', 'tblTempUsageDetail_20' ) start [2025-01-24 18:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321627', 'tblTempUsageDetail_20' ) end [2025-01-24 18:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321627', 'tblTempVendorCDR_20' ) start [2025-01-24 18:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321627', 'tblTempVendorCDR_20' ) end [2025-01-24 18:56:33] Production.INFO: ProcessCDR(1,14321627,1,1,2) [2025-01-24 18:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321627', 'tblTempUsageDetail_20' ) start [2025-01-24 18:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321627', 'tblTempUsageDetail_20' ) end [2025-01-24 18:56:36] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:56:36] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:56:36] Production.INFO: ==21034== Releasing lock... [2025-01-24 18:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:56:36] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:57:05 [end_date_ymd] => 2025-01-24 18:57:05 [RateCDR] => 1 ) [2025-01-24 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 15:57:05' and `end` < '2025-01-24 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 18:57:27] Production.INFO: count ==6208 [2025-01-24 18:57:29] Production.ERROR: pbx CDR StartTime 2025-01-24 15:57:05 - End Time 2025-01-24 18:57:05 [2025-01-24 18:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321632', 'tblTempUsageDetail_20' ) start [2025-01-24 18:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321632', 'tblTempUsageDetail_20' ) end [2025-01-24 18:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321632', 'tblTempVendorCDR_20' ) start [2025-01-24 18:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321632', 'tblTempVendorCDR_20' ) end [2025-01-24 18:57:29] Production.INFO: ProcessCDR(1,14321632,1,1,2) [2025-01-24 18:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321632', 'tblTempUsageDetail_20' ) start [2025-01-24 18:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321632', 'tblTempUsageDetail_20' ) end [2025-01-24 18:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:57:32] Production.INFO: ==21112== Releasing lock... [2025-01-24 18:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:57:32] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:58:06 [end_date_ymd] => 2025-01-24 18:58:06 [RateCDR] => 1 ) [2025-01-24 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-24 15:58:06' and `end` < '2025-01-24 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-24 18:58:24] Production.INFO: count ==6226 [2025-01-24 18:58:27] Production.ERROR: pbx CDR StartTime 2025-01-24 15:58:06 - End Time 2025-01-24 18:58:06 [2025-01-24 18:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321637', 'tblTempUsageDetail_20' ) start [2025-01-24 18:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321637', 'tblTempUsageDetail_20' ) end [2025-01-24 18:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321637', 'tblTempVendorCDR_20' ) start [2025-01-24 18:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321637', 'tblTempVendorCDR_20' ) end [2025-01-24 18:58:27] Production.INFO: ProcessCDR(1,14321637,1,1,2) [2025-01-24 18:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321637', 'tblTempUsageDetail_20' ) start [2025-01-24 18:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321637', 'tblTempUsageDetail_20' ) end [2025-01-24 18:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:58:30] Production.INFO: ==21184== Releasing lock... [2025-01-24 18:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:58:30] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 15:59:05 [end_date_ymd] => 2025-01-24 18:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 15:59:05' and `end` < '2025-01-24 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-24 18:59:23] Production.INFO: count ==6233 [2025-01-24 18:59:25] Production.ERROR: pbx CDR StartTime 2025-01-24 15:59:05 - End Time 2025-01-24 18:59:05 [2025-01-24 18:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321642', 'tblTempUsageDetail_20' ) start [2025-01-24 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321642', 'tblTempUsageDetail_20' ) end [2025-01-24 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321642', 'tblTempVendorCDR_20' ) start [2025-01-24 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321642', 'tblTempVendorCDR_20' ) end [2025-01-24 18:59:25] Production.INFO: ProcessCDR(1,14321642,1,1,2) [2025-01-24 18:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 18:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 18:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321642', 'tblTempUsageDetail_20' ) start [2025-01-24 18:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321642', 'tblTempUsageDetail_20' ) end [2025-01-24 18:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 18:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 18:59:30] Production.INFO: ==21255== Releasing lock... [2025-01-24 18:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 18:59:30] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:00:07 [end_date_ymd] => 2025-01-24 19:00:07 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:00:07' and `end` < '2025-01-24 19: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-24 19:00:25] Production.INFO: count ==6220 [2025-01-24 19:00:27] Production.ERROR: pbx CDR StartTime 2025-01-24 16:00:07 - End Time 2025-01-24 19:00:07 [2025-01-24 19:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321647', 'tblTempUsageDetail_20' ) start [2025-01-24 19:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321647', 'tblTempUsageDetail_20' ) end [2025-01-24 19:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321647', 'tblTempVendorCDR_20' ) start [2025-01-24 19:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321647', 'tblTempVendorCDR_20' ) end [2025-01-24 19:00:27] Production.INFO: ProcessCDR(1,14321647,1,1,2) [2025-01-24 19:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321647', 'tblTempUsageDetail_20' ) start [2025-01-24 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321647', 'tblTempUsageDetail_20' ) end [2025-01-24 19:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:00:30] Production.INFO: ==21340== Releasing lock... [2025-01-24 19:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:00:30] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:01:05 [end_date_ymd] => 2025-01-24 19:01:05 [RateCDR] => 1 ) [2025-01-24 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:01:05' and `end` < '2025-01-24 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:01:19] Production.INFO: count ==6208 [2025-01-24 19:01:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:01:05 - End Time 2025-01-24 19:01:05 [2025-01-24 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321653', 'tblTempUsageDetail_20' ) start [2025-01-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321653', 'tblTempUsageDetail_20' ) end [2025-01-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321653', 'tblTempVendorCDR_20' ) start [2025-01-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321653', 'tblTempVendorCDR_20' ) end [2025-01-24 19:01:21] Production.INFO: ProcessCDR(1,14321653,1,1,2) [2025-01-24 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321653', 'tblTempUsageDetail_20' ) start [2025-01-24 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321653', 'tblTempUsageDetail_20' ) end [2025-01-24 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:01:24] Production.INFO: ==21501== Releasing lock... [2025-01-24 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:01:24] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:02:06 [end_date_ymd] => 2025-01-24 19:02:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:02:06' and `end` < '2025-01-24 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-24 19:02:21] Production.INFO: count ==6202 [2025-01-24 19:02:23] Production.ERROR: pbx CDR StartTime 2025-01-24 16:02:06 - End Time 2025-01-24 19:02:06 [2025-01-24 19:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321658', 'tblTempUsageDetail_20' ) start [2025-01-24 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321658', 'tblTempUsageDetail_20' ) end [2025-01-24 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321658', 'tblTempVendorCDR_20' ) start [2025-01-24 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321658', 'tblTempVendorCDR_20' ) end [2025-01-24 19:02:23] Production.INFO: ProcessCDR(1,14321658,1,1,2) [2025-01-24 19:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321658', 'tblTempUsageDetail_20' ) start [2025-01-24 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321658', 'tblTempUsageDetail_20' ) end [2025-01-24 19:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:02:28] Production.INFO: ==21574== Releasing lock... [2025-01-24 19:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:02:28] Production.INFO: 74.5 MB #Memory Used# [2025-01-24 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:03:05 [end_date_ymd] => 2025-01-24 19:03:05 [RateCDR] => 1 ) [2025-01-24 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:03:05' and `end` < '2025-01-24 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:03:21] Production.INFO: count ==6187 [2025-01-24 19:03:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:03:05 - End Time 2025-01-24 19:03:05 [2025-01-24 19:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321663', 'tblTempUsageDetail_20' ) start [2025-01-24 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321663', 'tblTempUsageDetail_20' ) end [2025-01-24 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321663', 'tblTempVendorCDR_20' ) start [2025-01-24 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321663', 'tblTempVendorCDR_20' ) end [2025-01-24 19:03:24] Production.INFO: ProcessCDR(1,14321663,1,1,2) [2025-01-24 19:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321663', 'tblTempUsageDetail_20' ) start [2025-01-24 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321663', 'tblTempUsageDetail_20' ) end [2025-01-24 19:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:03:27] Production.INFO: ==21649== Releasing lock... [2025-01-24 19:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:03:27] Production.INFO: 74.25 MB #Memory Used# [2025-01-24 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:04:06 [end_date_ymd] => 2025-01-24 19:04:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:04:06' and `end` < '2025-01-24 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-24 19:04:20] Production.INFO: count ==6161 [2025-01-24 19:04:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:04:06 - End Time 2025-01-24 19:04:06 [2025-01-24 19:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321668', 'tblTempUsageDetail_20' ) start [2025-01-24 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321668', 'tblTempUsageDetail_20' ) end [2025-01-24 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321668', 'tblTempVendorCDR_20' ) start [2025-01-24 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321668', 'tblTempVendorCDR_20' ) end [2025-01-24 19:04:22] Production.INFO: ProcessCDR(1,14321668,1,1,2) [2025-01-24 19:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321668', 'tblTempUsageDetail_20' ) start [2025-01-24 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321668', 'tblTempUsageDetail_20' ) end [2025-01-24 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:04:25] Production.INFO: ==21721== Releasing lock... [2025-01-24 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:04:25] Production.INFO: 74 MB #Memory Used# [2025-01-24 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:05:05 [end_date_ymd] => 2025-01-24 19:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:05:05' and `end` < '2025-01-24 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-24 19:05:20] Production.INFO: count ==6131 [2025-01-24 19:05:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:05:05 - End Time 2025-01-24 19:05:05 [2025-01-24 19:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321673', 'tblTempUsageDetail_20' ) start [2025-01-24 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321673', 'tblTempUsageDetail_20' ) end [2025-01-24 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321673', 'tblTempVendorCDR_20' ) start [2025-01-24 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321673', 'tblTempVendorCDR_20' ) end [2025-01-24 19:05:22] Production.INFO: ProcessCDR(1,14321673,1,1,2) [2025-01-24 19:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321673', 'tblTempUsageDetail_20' ) start [2025-01-24 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321673', 'tblTempUsageDetail_20' ) end [2025-01-24 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:05:25] Production.INFO: ==21870== Releasing lock... [2025-01-24 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:05:25] Production.INFO: 73.75 MB #Memory Used# [2025-01-24 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:06:05 [end_date_ymd] => 2025-01-24 19:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:06:05' and `end` < '2025-01-24 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-24 19:06:19] Production.INFO: count ==6089 [2025-01-24 19:06:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:06:05 - End Time 2025-01-24 19:06:05 [2025-01-24 19:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321678', 'tblTempUsageDetail_20' ) start [2025-01-24 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321678', 'tblTempUsageDetail_20' ) end [2025-01-24 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321678', 'tblTempVendorCDR_20' ) start [2025-01-24 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321678', 'tblTempVendorCDR_20' ) end [2025-01-24 19:06:22] Production.INFO: ProcessCDR(1,14321678,1,1,2) [2025-01-24 19:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321678', 'tblTempUsageDetail_20' ) start [2025-01-24 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321678', 'tblTempUsageDetail_20' ) end [2025-01-24 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:06:26] Production.INFO: ==21957== Releasing lock... [2025-01-24 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:06:26] Production.INFO: 73.5 MB #Memory Used# [2025-01-24 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:07:06 [end_date_ymd] => 2025-01-24 19:07:06 [RateCDR] => 1 ) [2025-01-24 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:07:06' and `end` < '2025-01-24 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:07:22] Production.INFO: count ==6051 [2025-01-24 19:07:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:07:06 - End Time 2025-01-24 19:07:06 [2025-01-24 19:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321683', 'tblTempUsageDetail_20' ) start [2025-01-24 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321683', 'tblTempUsageDetail_20' ) end [2025-01-24 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321683', 'tblTempVendorCDR_20' ) start [2025-01-24 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321683', 'tblTempVendorCDR_20' ) end [2025-01-24 19:07:24] Production.INFO: ProcessCDR(1,14321683,1,1,2) [2025-01-24 19:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321683', 'tblTempUsageDetail_20' ) start [2025-01-24 19:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321683', 'tblTempUsageDetail_20' ) end [2025-01-24 19:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:07:29] Production.INFO: ==22056== Releasing lock... [2025-01-24 19:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:07:29] Production.INFO: 73.25 MB #Memory Used# [2025-01-24 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:08:05 [end_date_ymd] => 2025-01-24 19:08:05 [RateCDR] => 1 ) [2025-01-24 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:08:05' and `end` < '2025-01-24 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:08:22] Production.INFO: count ==6035 [2025-01-24 19:08:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:08:05 - End Time 2025-01-24 19:08:05 [2025-01-24 19:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321688', 'tblTempUsageDetail_20' ) start [2025-01-24 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321688', 'tblTempUsageDetail_20' ) end [2025-01-24 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321688', 'tblTempVendorCDR_20' ) start [2025-01-24 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321688', 'tblTempVendorCDR_20' ) end [2025-01-24 19:08:24] Production.INFO: ProcessCDR(1,14321688,1,1,2) [2025-01-24 19:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321688', 'tblTempUsageDetail_20' ) start [2025-01-24 19:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321688', 'tblTempUsageDetail_20' ) end [2025-01-24 19:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:08:29] Production.INFO: ==22233== Releasing lock... [2025-01-24 19:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:08:29] Production.INFO: 73 MB #Memory Used# [2025-01-24 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:09:05 [end_date_ymd] => 2025-01-24 19:09:05 [RateCDR] => 1 ) [2025-01-24 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:09:05' and `end` < '2025-01-24 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:09:20] Production.INFO: count ==6015 [2025-01-24 19:09:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:09:05 - End Time 2025-01-24 19:09:05 [2025-01-24 19:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321693', 'tblTempUsageDetail_20' ) start [2025-01-24 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321693', 'tblTempUsageDetail_20' ) end [2025-01-24 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321693', 'tblTempVendorCDR_20' ) start [2025-01-24 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321693', 'tblTempVendorCDR_20' ) end [2025-01-24 19:09:22] Production.INFO: ProcessCDR(1,14321693,1,1,2) [2025-01-24 19:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321693', 'tblTempUsageDetail_20' ) start [2025-01-24 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321693', 'tblTempUsageDetail_20' ) end [2025-01-24 19:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:09:27] Production.INFO: ==22338== Releasing lock... [2025-01-24 19:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:09:27] Production.INFO: 73 MB #Memory Used# [2025-01-24 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:10:05 [end_date_ymd] => 2025-01-24 19:10:05 [RateCDR] => 1 ) [2025-01-24 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:10:05' and `end` < '2025-01-24 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:10:18] Production.INFO: count ==5988 [2025-01-24 19:10:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:10:05 - End Time 2025-01-24 19:10:05 [2025-01-24 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321698', 'tblTempUsageDetail_20' ) start [2025-01-24 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321698', 'tblTempUsageDetail_20' ) end [2025-01-24 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321698', 'tblTempVendorCDR_20' ) start [2025-01-24 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321698', 'tblTempVendorCDR_20' ) end [2025-01-24 19:10:20] Production.INFO: ProcessCDR(1,14321698,1,1,2) [2025-01-24 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321698', 'tblTempUsageDetail_20' ) start [2025-01-24 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321698', 'tblTempUsageDetail_20' ) end [2025-01-24 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:10:24] Production.INFO: ==22436== Releasing lock... [2025-01-24 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:10:24] Production.INFO: 72.75 MB #Memory Used# [2025-01-24 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:11:05 [end_date_ymd] => 2025-01-24 19:11:05 [RateCDR] => 1 ) [2025-01-24 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:11:05' and `end` < '2025-01-24 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:11:19] Production.INFO: count ==5911 [2025-01-24 19:11:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:11:05 - End Time 2025-01-24 19:11:05 [2025-01-24 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321704', 'tblTempUsageDetail_20' ) start [2025-01-24 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321704', 'tblTempUsageDetail_20' ) end [2025-01-24 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321704', 'tblTempVendorCDR_20' ) start [2025-01-24 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321704', 'tblTempVendorCDR_20' ) end [2025-01-24 19:11:21] Production.INFO: ProcessCDR(1,14321704,1,1,2) [2025-01-24 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321704', 'tblTempUsageDetail_20' ) start [2025-01-24 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321704', 'tblTempUsageDetail_20' ) end [2025-01-24 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:11:24] Production.INFO: ==22548== Releasing lock... [2025-01-24 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:11:24] Production.INFO: 72.25 MB #Memory Used# [2025-01-24 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:12:05 [end_date_ymd] => 2025-01-24 19:12:05 [RateCDR] => 1 ) [2025-01-24 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:12:05' and `end` < '2025-01-24 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:12:19] Production.INFO: count ==5900 [2025-01-24 19:12:23] Production.ERROR: pbx CDR StartTime 2025-01-24 16:12:05 - End Time 2025-01-24 19:12:05 [2025-01-24 19:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321709', 'tblTempUsageDetail_20' ) start [2025-01-24 19:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321709', 'tblTempUsageDetail_20' ) end [2025-01-24 19:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321709', 'tblTempVendorCDR_20' ) start [2025-01-24 19:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321709', 'tblTempVendorCDR_20' ) end [2025-01-24 19:12:23] Production.INFO: ProcessCDR(1,14321709,1,1,2) [2025-01-24 19:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321709', 'tblTempUsageDetail_20' ) start [2025-01-24 19:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321709', 'tblTempUsageDetail_20' ) end [2025-01-24 19:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:12:28] Production.INFO: ==22796== Releasing lock... [2025-01-24 19:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:12:28] Production.INFO: 72 MB #Memory Used# [2025-01-24 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:13:05 [end_date_ymd] => 2025-01-24 19:13:05 [RateCDR] => 1 ) [2025-01-24 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:13:05' and `end` < '2025-01-24 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:13:18] Production.INFO: count ==5891 [2025-01-24 19:13:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:13:05 - End Time 2025-01-24 19:13:05 [2025-01-24 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321714', 'tblTempUsageDetail_20' ) start [2025-01-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321714', 'tblTempUsageDetail_20' ) end [2025-01-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321714', 'tblTempVendorCDR_20' ) start [2025-01-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321714', 'tblTempVendorCDR_20' ) end [2025-01-24 19:13:20] Production.INFO: ProcessCDR(1,14321714,1,1,2) [2025-01-24 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321714', 'tblTempUsageDetail_20' ) start [2025-01-24 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321714', 'tblTempUsageDetail_20' ) end [2025-01-24 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:13:23] Production.INFO: ==22921== Releasing lock... [2025-01-24 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:13:23] Production.INFO: 72 MB #Memory Used# [2025-01-24 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:14:05 [end_date_ymd] => 2025-01-24 19:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:14:05' and `end` < '2025-01-24 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-24 19:14:27] Production.INFO: count ==5874 [2025-01-24 19:14:29] Production.ERROR: pbx CDR StartTime 2025-01-24 16:14:05 - End Time 2025-01-24 19:14:05 [2025-01-24 19:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321719', 'tblTempUsageDetail_20' ) start [2025-01-24 19:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321719', 'tblTempUsageDetail_20' ) end [2025-01-24 19:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321719', 'tblTempVendorCDR_20' ) start [2025-01-24 19:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321719', 'tblTempVendorCDR_20' ) end [2025-01-24 19:14:29] Production.INFO: ProcessCDR(1,14321719,1,1,2) [2025-01-24 19:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321719', 'tblTempUsageDetail_20' ) start [2025-01-24 19:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321719', 'tblTempUsageDetail_20' ) end [2025-01-24 19:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:14:32] Production.INFO: ==23050== Releasing lock... [2025-01-24 19:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:14:32] Production.INFO: 72 MB #Memory Used# [2025-01-24 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:15:05 [end_date_ymd] => 2025-01-24 19:15:05 [RateCDR] => 1 ) [2025-01-24 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:15:05' and `end` < '2025-01-24 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:15:29] Production.INFO: count ==5894 [2025-01-24 19:15:31] Production.ERROR: pbx CDR StartTime 2025-01-24 16:15:05 - End Time 2025-01-24 19:15:05 [2025-01-24 19:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321724', 'tblTempUsageDetail_20' ) start [2025-01-24 19:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321724', 'tblTempUsageDetail_20' ) end [2025-01-24 19:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321724', 'tblTempVendorCDR_20' ) start [2025-01-24 19:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321724', 'tblTempVendorCDR_20' ) end [2025-01-24 19:15:32] Production.INFO: ProcessCDR(1,14321724,1,1,2) [2025-01-24 19:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321724', 'tblTempUsageDetail_20' ) start [2025-01-24 19:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321724', 'tblTempUsageDetail_20' ) end [2025-01-24 19:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:15:35] Production.INFO: ==23261== Releasing lock... [2025-01-24 19:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:15:35] Production.INFO: 72 MB #Memory Used# [2025-01-24 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:16:05 [end_date_ymd] => 2025-01-24 19:16:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:16:05' and `end` < '2025-01-24 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-24 19:16:23] Production.INFO: count ==5884 [2025-01-24 19:16:25] Production.ERROR: pbx CDR StartTime 2025-01-24 16:16:05 - End Time 2025-01-24 19:16:05 [2025-01-24 19:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321729', 'tblTempUsageDetail_20' ) start [2025-01-24 19:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321729', 'tblTempUsageDetail_20' ) end [2025-01-24 19:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321729', 'tblTempVendorCDR_20' ) start [2025-01-24 19:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321729', 'tblTempVendorCDR_20' ) end [2025-01-24 19:16:25] Production.INFO: ProcessCDR(1,14321729,1,1,2) [2025-01-24 19:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321729', 'tblTempUsageDetail_20' ) start [2025-01-24 19:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321729', 'tblTempUsageDetail_20' ) end [2025-01-24 19:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:16:30] Production.INFO: ==23390== Releasing lock... [2025-01-24 19:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:16:30] Production.INFO: 72 MB #Memory Used# [2025-01-24 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:17:05 [end_date_ymd] => 2025-01-24 19:17:05 [RateCDR] => 1 ) [2025-01-24 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:17:05' and `end` < '2025-01-24 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:17:21] Production.INFO: count ==5877 [2025-01-24 19:17:23] Production.ERROR: pbx CDR StartTime 2025-01-24 16:17:05 - End Time 2025-01-24 19:17:05 [2025-01-24 19:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321734', 'tblTempUsageDetail_20' ) start [2025-01-24 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321734', 'tblTempUsageDetail_20' ) end [2025-01-24 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321734', 'tblTempVendorCDR_20' ) start [2025-01-24 19:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321734', 'tblTempVendorCDR_20' ) end [2025-01-24 19:17:23] Production.INFO: ProcessCDR(1,14321734,1,1,2) [2025-01-24 19:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321734', 'tblTempUsageDetail_20' ) start [2025-01-24 19:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321734', 'tblTempUsageDetail_20' ) end [2025-01-24 19:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:17:28] Production.INFO: ==23520== Releasing lock... [2025-01-24 19:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:17:28] Production.INFO: 72 MB #Memory Used# [2025-01-24 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:18:05 [end_date_ymd] => 2025-01-24 19:18:05 [RateCDR] => 1 ) [2025-01-24 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:18:05' and `end` < '2025-01-24 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:18:19] Production.INFO: count ==5858 [2025-01-24 19:18:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:18:05 - End Time 2025-01-24 19:18:05 [2025-01-24 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321739', 'tblTempUsageDetail_20' ) start [2025-01-24 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321739', 'tblTempUsageDetail_20' ) end [2025-01-24 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321739', 'tblTempVendorCDR_20' ) start [2025-01-24 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321739', 'tblTempVendorCDR_20' ) end [2025-01-24 19:18:21] Production.INFO: ProcessCDR(1,14321739,1,1,2) [2025-01-24 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321739', 'tblTempUsageDetail_20' ) start [2025-01-24 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321739', 'tblTempUsageDetail_20' ) end [2025-01-24 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:18:25] Production.INFO: ==23647== Releasing lock... [2025-01-24 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:18:25] Production.INFO: 71.75 MB #Memory Used# [2025-01-24 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:19:05 [end_date_ymd] => 2025-01-24 19:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:19:05' and `end` < '2025-01-24 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-24 19:19:19] Production.INFO: count ==5834 [2025-01-24 19:19:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:19:05 - End Time 2025-01-24 19:19:05 [2025-01-24 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321744', 'tblTempUsageDetail_20' ) start [2025-01-24 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321744', 'tblTempUsageDetail_20' ) end [2025-01-24 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321744', 'tblTempVendorCDR_20' ) start [2025-01-24 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321744', 'tblTempVendorCDR_20' ) end [2025-01-24 19:19:21] Production.INFO: ProcessCDR(1,14321744,1,1,2) [2025-01-24 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321744', 'tblTempUsageDetail_20' ) start [2025-01-24 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321744', 'tblTempUsageDetail_20' ) end [2025-01-24 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:19:24] Production.INFO: ==23771== Releasing lock... [2025-01-24 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:19:24] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:20:05 [end_date_ymd] => 2025-01-24 19:20:05 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:20:05' and `end` < '2025-01-24 19: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-24 19:20:26] Production.INFO: count ==5831 [2025-01-24 19:20:28] Production.ERROR: pbx CDR StartTime 2025-01-24 16:20:05 - End Time 2025-01-24 19:20:05 [2025-01-24 19:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321749', 'tblTempUsageDetail_20' ) start [2025-01-24 19:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321749', 'tblTempUsageDetail_20' ) end [2025-01-24 19:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321749', 'tblTempVendorCDR_20' ) start [2025-01-24 19:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321749', 'tblTempVendorCDR_20' ) end [2025-01-24 19:20:28] Production.INFO: ProcessCDR(1,14321749,1,1,2) [2025-01-24 19:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321749', 'tblTempUsageDetail_20' ) start [2025-01-24 19:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321749', 'tblTempUsageDetail_20' ) end [2025-01-24 19:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:20:33] Production.INFO: ==23902== Releasing lock... [2025-01-24 19:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:20:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-24 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:21:05 [end_date_ymd] => 2025-01-24 19:21:05 [RateCDR] => 1 ) [2025-01-24 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:21:05' and `end` < '2025-01-24 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:21:22] Production.INFO: count ==5747 [2025-01-24 19:21:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:21:05 - End Time 2025-01-24 19:21:05 [2025-01-24 19:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321755', 'tblTempUsageDetail_20' ) start [2025-01-24 19:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321755', 'tblTempUsageDetail_20' ) end [2025-01-24 19:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321755', 'tblTempVendorCDR_20' ) start [2025-01-24 19:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321755', 'tblTempVendorCDR_20' ) end [2025-01-24 19:21:24] Production.INFO: ProcessCDR(1,14321755,1,1,2) [2025-01-24 19:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321755', 'tblTempUsageDetail_20' ) start [2025-01-24 19:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321755', 'tblTempUsageDetail_20' ) end [2025-01-24 19:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:21:27] Production.INFO: ==24030== Releasing lock... [2025-01-24 19:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:21:27] Production.INFO: 71 MB #Memory Used# [2025-01-24 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:22:06 [end_date_ymd] => 2025-01-24 19:22:06 [RateCDR] => 1 ) [2025-01-24 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:22:06' and `end` < '2025-01-24 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:22:19] Production.INFO: count ==5734 [2025-01-24 19:22:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:22:06 - End Time 2025-01-24 19:22:06 [2025-01-24 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321760', 'tblTempUsageDetail_20' ) start [2025-01-24 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321760', 'tblTempUsageDetail_20' ) end [2025-01-24 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321760', 'tblTempVendorCDR_20' ) start [2025-01-24 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321760', 'tblTempVendorCDR_20' ) end [2025-01-24 19:22:21] Production.INFO: ProcessCDR(1,14321760,1,1,2) [2025-01-24 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321760', 'tblTempUsageDetail_20' ) start [2025-01-24 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321760', 'tblTempUsageDetail_20' ) end [2025-01-24 19:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:22:26] Production.INFO: ==24155== Releasing lock... [2025-01-24 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:22:26] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:23:05 [end_date_ymd] => 2025-01-24 19:23:05 [RateCDR] => 1 ) [2025-01-24 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:23:05' and `end` < '2025-01-24 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:23:22] Production.INFO: count ==5717 [2025-01-24 19:23:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:23:05 - End Time 2025-01-24 19:23:05 [2025-01-24 19:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321765', 'tblTempUsageDetail_20' ) start [2025-01-24 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321765', 'tblTempUsageDetail_20' ) end [2025-01-24 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321765', 'tblTempVendorCDR_20' ) start [2025-01-24 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321765', 'tblTempVendorCDR_20' ) end [2025-01-24 19:23:24] Production.INFO: ProcessCDR(1,14321765,1,1,2) [2025-01-24 19:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321765', 'tblTempUsageDetail_20' ) start [2025-01-24 19:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321765', 'tblTempUsageDetail_20' ) end [2025-01-24 19:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:23:27] Production.INFO: ==24278== Releasing lock... [2025-01-24 19:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:23:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-24 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:24:06 [end_date_ymd] => 2025-01-24 19:24:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:24:06' and `end` < '2025-01-24 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-24 19:24:23] Production.INFO: count ==5703 [2025-01-24 19:24:25] Production.ERROR: pbx CDR StartTime 2025-01-24 16:24:06 - End Time 2025-01-24 19:24:06 [2025-01-24 19:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321770', 'tblTempUsageDetail_20' ) start [2025-01-24 19:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321770', 'tblTempUsageDetail_20' ) end [2025-01-24 19:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321770', 'tblTempVendorCDR_20' ) start [2025-01-24 19:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321770', 'tblTempVendorCDR_20' ) end [2025-01-24 19:24:25] Production.INFO: ProcessCDR(1,14321770,1,1,2) [2025-01-24 19:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321770', 'tblTempUsageDetail_20' ) start [2025-01-24 19:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321770', 'tblTempUsageDetail_20' ) end [2025-01-24 19:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:24:28] Production.INFO: ==24394== Releasing lock... [2025-01-24 19:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:24:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:25:05 [end_date_ymd] => 2025-01-24 19:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:25:05' and `end` < '2025-01-24 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-24 19:25:23] Production.INFO: count ==5687 [2025-01-24 19:25:25] Production.ERROR: pbx CDR StartTime 2025-01-24 16:25:05 - End Time 2025-01-24 19:25:05 [2025-01-24 19:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321775', 'tblTempUsageDetail_20' ) start [2025-01-24 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321775', 'tblTempUsageDetail_20' ) end [2025-01-24 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321775', 'tblTempVendorCDR_20' ) start [2025-01-24 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321775', 'tblTempVendorCDR_20' ) end [2025-01-24 19:25:25] Production.INFO: ProcessCDR(1,14321775,1,1,2) [2025-01-24 19:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321775', 'tblTempUsageDetail_20' ) start [2025-01-24 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321775', 'tblTempUsageDetail_20' ) end [2025-01-24 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:25:28] Production.INFO: ==24494== Releasing lock... [2025-01-24 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:25:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:26:06 [end_date_ymd] => 2025-01-24 19:26:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:26:06' and `end` < '2025-01-24 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-24 19:26:24] Production.INFO: count ==5680 [2025-01-24 19:26:25] Production.ERROR: pbx CDR StartTime 2025-01-24 16:26:06 - End Time 2025-01-24 19:26:06 [2025-01-24 19:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321780', 'tblTempUsageDetail_20' ) start [2025-01-24 19:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321780', 'tblTempUsageDetail_20' ) end [2025-01-24 19:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321780', 'tblTempVendorCDR_20' ) start [2025-01-24 19:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321780', 'tblTempVendorCDR_20' ) end [2025-01-24 19:26:26] Production.INFO: ProcessCDR(1,14321780,1,1,2) [2025-01-24 19:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321780', 'tblTempUsageDetail_20' ) start [2025-01-24 19:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321780', 'tblTempUsageDetail_20' ) end [2025-01-24 19:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:26:30] Production.INFO: ==24599== Releasing lock... [2025-01-24 19:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:26:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-24 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:27:05 [end_date_ymd] => 2025-01-24 19:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:27:05' and `end` < '2025-01-24 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-24 19:27:20] Production.INFO: count ==5661 [2025-01-24 19:27:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:27:05 - End Time 2025-01-24 19:27:05 [2025-01-24 19:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321785', 'tblTempUsageDetail_20' ) start [2025-01-24 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321785', 'tblTempUsageDetail_20' ) end [2025-01-24 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321785', 'tblTempVendorCDR_20' ) start [2025-01-24 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321785', 'tblTempVendorCDR_20' ) end [2025-01-24 19:27:22] Production.INFO: ProcessCDR(1,14321785,1,1,2) [2025-01-24 19:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321785', 'tblTempUsageDetail_20' ) start [2025-01-24 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321785', 'tblTempUsageDetail_20' ) end [2025-01-24 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:27:25] Production.INFO: ==24737== Releasing lock... [2025-01-24 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:27:25] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:28:06 [end_date_ymd] => 2025-01-24 19:28:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:28:06' and `end` < '2025-01-24 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-24 19:28:19] Production.INFO: count ==5648 [2025-01-24 19:28:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:28:06 - End Time 2025-01-24 19:28:06 [2025-01-24 19:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321790', 'tblTempUsageDetail_20' ) start [2025-01-24 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321790', 'tblTempUsageDetail_20' ) end [2025-01-24 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321790', 'tblTempVendorCDR_20' ) start [2025-01-24 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321790', 'tblTempVendorCDR_20' ) end [2025-01-24 19:28:21] Production.INFO: ProcessCDR(1,14321790,1,1,2) [2025-01-24 19:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321790', 'tblTempUsageDetail_20' ) start [2025-01-24 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321790', 'tblTempUsageDetail_20' ) end [2025-01-24 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:28:26] Production.INFO: ==24843== Releasing lock... [2025-01-24 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:28:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-24 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:29:05 [end_date_ymd] => 2025-01-24 19:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:29:05' and `end` < '2025-01-24 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-24 19:29:24] Production.INFO: count ==5632 [2025-01-24 19:29:26] Production.ERROR: pbx CDR StartTime 2025-01-24 16:29:05 - End Time 2025-01-24 19:29:05 [2025-01-24 19:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321795', 'tblTempUsageDetail_20' ) start [2025-01-24 19:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321795', 'tblTempUsageDetail_20' ) end [2025-01-24 19:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321795', 'tblTempVendorCDR_20' ) start [2025-01-24 19:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321795', 'tblTempVendorCDR_20' ) end [2025-01-24 19:29:26] Production.INFO: ProcessCDR(1,14321795,1,1,2) [2025-01-24 19:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321795', 'tblTempUsageDetail_20' ) start [2025-01-24 19:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321795', 'tblTempUsageDetail_20' ) end [2025-01-24 19:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:29:31] Production.INFO: ==24942== Releasing lock... [2025-01-24 19:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:29:31] Production.INFO: 70 MB #Memory Used# [2025-01-24 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:30:06 [end_date_ymd] => 2025-01-24 19:30:06 [RateCDR] => 1 ) [2025-01-24 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:30:06' and `end` < '2025-01-24 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-24 19:30:25] Production.INFO: count ==5619 [2025-01-24 19:30:26] Production.ERROR: pbx CDR StartTime 2025-01-24 16:30:06 - End Time 2025-01-24 19:30:06 [2025-01-24 19:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321801', 'tblTempUsageDetail_20' ) start [2025-01-24 19:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321801', 'tblTempUsageDetail_20' ) end [2025-01-24 19:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321801', 'tblTempVendorCDR_20' ) start [2025-01-24 19:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321801', 'tblTempVendorCDR_20' ) end [2025-01-24 19:30:27] Production.INFO: ProcessCDR(1,14321801,1,1,2) [2025-01-24 19:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321801', 'tblTempUsageDetail_20' ) start [2025-01-24 19:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321801', 'tblTempUsageDetail_20' ) end [2025-01-24 19:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:30:30] Production.INFO: ==25044== Releasing lock... [2025-01-24 19:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:30:30] Production.INFO: 70 MB #Memory Used# [2025-01-24 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:31:05 [end_date_ymd] => 2025-01-24 19:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:31:05' and `end` < '2025-01-24 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-24 19:31:21] Production.INFO: count ==5515 [2025-01-24 19:31:23] Production.ERROR: pbx CDR StartTime 2025-01-24 16:31:05 - End Time 2025-01-24 19:31:05 [2025-01-24 19:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321806', 'tblTempUsageDetail_20' ) start [2025-01-24 19:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321806', 'tblTempUsageDetail_20' ) end [2025-01-24 19:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321806', 'tblTempVendorCDR_20' ) start [2025-01-24 19:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321806', 'tblTempVendorCDR_20' ) end [2025-01-24 19:31:23] Production.INFO: ProcessCDR(1,14321806,1,1,2) [2025-01-24 19:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321806', 'tblTempUsageDetail_20' ) start [2025-01-24 19:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321806', 'tblTempUsageDetail_20' ) end [2025-01-24 19:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:31:26] Production.INFO: ==25148== Releasing lock... [2025-01-24 19:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:31:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-24 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:32:05 [end_date_ymd] => 2025-01-24 19:32:05 [RateCDR] => 1 ) [2025-01-24 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:32:05' and `end` < '2025-01-24 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:32:22] Production.INFO: count ==5486 [2025-01-24 19:32:23] Production.ERROR: pbx CDR StartTime 2025-01-24 16:32:05 - End Time 2025-01-24 19:32:05 [2025-01-24 19:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321811', 'tblTempUsageDetail_20' ) start [2025-01-24 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321811', 'tblTempUsageDetail_20' ) end [2025-01-24 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321811', 'tblTempVendorCDR_20' ) start [2025-01-24 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321811', 'tblTempVendorCDR_20' ) end [2025-01-24 19:32:23] Production.INFO: ProcessCDR(1,14321811,1,1,2) [2025-01-24 19:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321811', 'tblTempUsageDetail_20' ) start [2025-01-24 19:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321811', 'tblTempUsageDetail_20' ) end [2025-01-24 19:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:32:28] Production.INFO: ==25248== Releasing lock... [2025-01-24 19:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:32:28] Production.INFO: 69 MB #Memory Used# [2025-01-24 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:33:05 [end_date_ymd] => 2025-01-24 19:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:33:05' and `end` < '2025-01-24 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-24 19:33:19] Production.INFO: count ==5463 [2025-01-24 19:33:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:33:05 - End Time 2025-01-24 19:33:05 [2025-01-24 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321816', 'tblTempUsageDetail_20' ) start [2025-01-24 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321816', 'tblTempUsageDetail_20' ) end [2025-01-24 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321816', 'tblTempVendorCDR_20' ) start [2025-01-24 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321816', 'tblTempVendorCDR_20' ) end [2025-01-24 19:33:21] Production.INFO: ProcessCDR(1,14321816,1,1,2) [2025-01-24 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321816', 'tblTempUsageDetail_20' ) start [2025-01-24 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321816', 'tblTempUsageDetail_20' ) end [2025-01-24 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:33:24] Production.INFO: ==25348== Releasing lock... [2025-01-24 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:33:24] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:34:05 [end_date_ymd] => 2025-01-24 19:34:05 [RateCDR] => 1 ) [2025-01-24 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:34:05' and `end` < '2025-01-24 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:34:20] Production.INFO: count ==5453 [2025-01-24 19:34:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:34:05 - End Time 2025-01-24 19:34:05 [2025-01-24 19:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321821', 'tblTempUsageDetail_20' ) start [2025-01-24 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321821', 'tblTempUsageDetail_20' ) end [2025-01-24 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321821', 'tblTempVendorCDR_20' ) start [2025-01-24 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321821', 'tblTempVendorCDR_20' ) end [2025-01-24 19:34:22] Production.INFO: ProcessCDR(1,14321821,1,1,2) [2025-01-24 19:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321821', 'tblTempUsageDetail_20' ) start [2025-01-24 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321821', 'tblTempUsageDetail_20' ) end [2025-01-24 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:34:25] Production.INFO: ==25453== Releasing lock... [2025-01-24 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:34:25] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:35:05 [end_date_ymd] => 2025-01-24 19:35:05 [RateCDR] => 1 ) [2025-01-24 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:35:05' and `end` < '2025-01-24 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:35:28] Production.INFO: count ==5451 [2025-01-24 19:35:29] Production.ERROR: pbx CDR StartTime 2025-01-24 16:35:05 - End Time 2025-01-24 19:35:05 [2025-01-24 19:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321826', 'tblTempUsageDetail_20' ) start [2025-01-24 19:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321826', 'tblTempUsageDetail_20' ) end [2025-01-24 19:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321826', 'tblTempVendorCDR_20' ) start [2025-01-24 19:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321826', 'tblTempVendorCDR_20' ) end [2025-01-24 19:35:30] Production.INFO: ProcessCDR(1,14321826,1,1,2) [2025-01-24 19:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321826', 'tblTempUsageDetail_20' ) start [2025-01-24 19:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321826', 'tblTempUsageDetail_20' ) end [2025-01-24 19:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:35:33] Production.INFO: ==25552== Releasing lock... [2025-01-24 19:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:35:33] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:36:06 [end_date_ymd] => 2025-01-24 19:36:06 [RateCDR] => 1 ) [2025-01-24 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:36:06' and `end` < '2025-01-24 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:36:22] Production.INFO: count ==5450 [2025-01-24 19:36:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:36:06 - End Time 2025-01-24 19:36:06 [2025-01-24 19:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321831', 'tblTempUsageDetail_20' ) start [2025-01-24 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321831', 'tblTempUsageDetail_20' ) end [2025-01-24 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321831', 'tblTempVendorCDR_20' ) start [2025-01-24 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321831', 'tblTempVendorCDR_20' ) end [2025-01-24 19:36:24] Production.INFO: ProcessCDR(1,14321831,1,1,2) [2025-01-24 19:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321831', 'tblTempUsageDetail_20' ) start [2025-01-24 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321831', 'tblTempUsageDetail_20' ) end [2025-01-24 19:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:36:27] Production.INFO: ==25659== Releasing lock... [2025-01-24 19:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:36:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:37:05 [end_date_ymd] => 2025-01-24 19:37:05 [RateCDR] => 1 ) [2025-01-24 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:37:05' and `end` < '2025-01-24 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:37:18] Production.INFO: count ==5444 [2025-01-24 19:37:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:37:05 - End Time 2025-01-24 19:37:05 [2025-01-24 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321836', 'tblTempUsageDetail_20' ) start [2025-01-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321836', 'tblTempUsageDetail_20' ) end [2025-01-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321836', 'tblTempVendorCDR_20' ) start [2025-01-24 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321836', 'tblTempVendorCDR_20' ) end [2025-01-24 19:37:20] Production.INFO: ProcessCDR(1,14321836,1,1,2) [2025-01-24 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321836', 'tblTempUsageDetail_20' ) start [2025-01-24 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321836', 'tblTempUsageDetail_20' ) end [2025-01-24 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:37:23] Production.INFO: ==25757== Releasing lock... [2025-01-24 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:37:23] Production.INFO: 68.75 MB #Memory Used# [2025-01-24 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:38:06 [end_date_ymd] => 2025-01-24 19:38:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:38:06' and `end` < '2025-01-24 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-24 19:38:19] Production.INFO: count ==5424 [2025-01-24 19:38:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:38:06 - End Time 2025-01-24 19:38:06 [2025-01-24 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321841', 'tblTempUsageDetail_20' ) start [2025-01-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321841', 'tblTempUsageDetail_20' ) end [2025-01-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321841', 'tblTempVendorCDR_20' ) start [2025-01-24 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321841', 'tblTempVendorCDR_20' ) end [2025-01-24 19:38:21] Production.INFO: ProcessCDR(1,14321841,1,1,2) [2025-01-24 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321841', 'tblTempUsageDetail_20' ) start [2025-01-24 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321841', 'tblTempUsageDetail_20' ) end [2025-01-24 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:38:24] Production.INFO: ==25863== Releasing lock... [2025-01-24 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:38:24] Production.INFO: 68.5 MB #Memory Used# [2025-01-24 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:39:05 [end_date_ymd] => 2025-01-24 19:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:39:05' and `end` < '2025-01-24 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-24 19:39:19] Production.INFO: count ==5400 [2025-01-24 19:39:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:39:05 - End Time 2025-01-24 19:39:05 [2025-01-24 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321846', 'tblTempUsageDetail_20' ) start [2025-01-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321846', 'tblTempUsageDetail_20' ) end [2025-01-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321846', 'tblTempVendorCDR_20' ) start [2025-01-24 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321846', 'tblTempVendorCDR_20' ) end [2025-01-24 19:39:20] Production.INFO: ProcessCDR(1,14321846,1,1,2) [2025-01-24 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321846', 'tblTempUsageDetail_20' ) start [2025-01-24 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321846', 'tblTempUsageDetail_20' ) end [2025-01-24 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:39:23] Production.INFO: ==25968== Releasing lock... [2025-01-24 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:39:23] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:40:06 [end_date_ymd] => 2025-01-24 19:40:06 [RateCDR] => 1 ) [2025-01-24 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:40:06' and `end` < '2025-01-24 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:40:30] Production.INFO: count ==5387 [2025-01-24 19:40:31] Production.ERROR: pbx CDR StartTime 2025-01-24 16:40:06 - End Time 2025-01-24 19:40:06 [2025-01-24 19:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321851', 'tblTempUsageDetail_20' ) start [2025-01-24 19:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321851', 'tblTempUsageDetail_20' ) end [2025-01-24 19:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321851', 'tblTempVendorCDR_20' ) start [2025-01-24 19:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321851', 'tblTempVendorCDR_20' ) end [2025-01-24 19:40:31] Production.INFO: ProcessCDR(1,14321851,1,1,2) [2025-01-24 19:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321851', 'tblTempUsageDetail_20' ) start [2025-01-24 19:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321851', 'tblTempUsageDetail_20' ) end [2025-01-24 19:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:40:35] Production.INFO: ==26073== Releasing lock... [2025-01-24 19:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:40:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-24 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:41:04 [end_date_ymd] => 2025-01-24 19:41:04 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:41:04' and `end` < '2025-01-24 19: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-24 19:41:25] Production.INFO: count ==5275 [2025-01-24 19:41:26] Production.ERROR: pbx CDR StartTime 2025-01-24 16:41:04 - End Time 2025-01-24 19:41:04 [2025-01-24 19:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321857', 'tblTempUsageDetail_20' ) start [2025-01-24 19:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321857', 'tblTempUsageDetail_20' ) end [2025-01-24 19:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321857', 'tblTempVendorCDR_20' ) start [2025-01-24 19:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321857', 'tblTempVendorCDR_20' ) end [2025-01-24 19:41:26] Production.INFO: ProcessCDR(1,14321857,1,1,2) [2025-01-24 19:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321857', 'tblTempUsageDetail_20' ) start [2025-01-24 19:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321857', 'tblTempUsageDetail_20' ) end [2025-01-24 19:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:41:31] Production.INFO: ==26174== Releasing lock... [2025-01-24 19:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:41:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-24 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:42:05 [end_date_ymd] => 2025-01-24 19:42:05 [RateCDR] => 1 ) [2025-01-24 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:42:05' and `end` < '2025-01-24 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-24 19:42:24] Production.INFO: count ==5271 [2025-01-24 19:42:25] Production.ERROR: pbx CDR StartTime 2025-01-24 16:42:05 - End Time 2025-01-24 19:42:05 [2025-01-24 19:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321862', 'tblTempUsageDetail_20' ) start [2025-01-24 19:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321862', 'tblTempUsageDetail_20' ) end [2025-01-24 19:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321862', 'tblTempVendorCDR_20' ) start [2025-01-24 19:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321862', 'tblTempVendorCDR_20' ) end [2025-01-24 19:42:25] Production.INFO: ProcessCDR(1,14321862,1,1,2) [2025-01-24 19:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321862', 'tblTempUsageDetail_20' ) start [2025-01-24 19:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321862', 'tblTempUsageDetail_20' ) end [2025-01-24 19:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:42:30] Production.INFO: ==26275== Releasing lock... [2025-01-24 19:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:42:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:43:06 [end_date_ymd] => 2025-01-24 19:43:06 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:43:06' and `end` < '2025-01-24 19: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-24 19:43:21] Production.INFO: count ==5263 [2025-01-24 19:43:23] Production.ERROR: pbx CDR StartTime 2025-01-24 16:43:06 - End Time 2025-01-24 19:43:06 [2025-01-24 19:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321867', 'tblTempUsageDetail_20' ) start [2025-01-24 19:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321867', 'tblTempUsageDetail_20' ) end [2025-01-24 19:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321867', 'tblTempVendorCDR_20' ) start [2025-01-24 19:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321867', 'tblTempVendorCDR_20' ) end [2025-01-24 19:43:23] Production.INFO: ProcessCDR(1,14321867,1,1,2) [2025-01-24 19:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321867', 'tblTempUsageDetail_20' ) start [2025-01-24 19:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321867', 'tblTempUsageDetail_20' ) end [2025-01-24 19:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:43:28] Production.INFO: ==26421== Releasing lock... [2025-01-24 19:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:43:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:44:05 [end_date_ymd] => 2025-01-24 19:44:05 [RateCDR] => 1 ) [2025-01-24 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:44:05' and `end` < '2025-01-24 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:44:19] Production.INFO: count ==5241 [2025-01-24 19:44:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:44:05 - End Time 2025-01-24 19:44:05 [2025-01-24 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321872', 'tblTempUsageDetail_20' ) start [2025-01-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321872', 'tblTempUsageDetail_20' ) end [2025-01-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321872', 'tblTempVendorCDR_20' ) start [2025-01-24 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321872', 'tblTempVendorCDR_20' ) end [2025-01-24 19:44:20] Production.INFO: ProcessCDR(1,14321872,1,1,2) [2025-01-24 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321872', 'tblTempUsageDetail_20' ) start [2025-01-24 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321872', 'tblTempUsageDetail_20' ) end [2025-01-24 19:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:44:25] Production.INFO: ==26523== Releasing lock... [2025-01-24 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:44:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-24 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:45:05 [end_date_ymd] => 2025-01-24 19:45:05 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:45:05' and `end` < '2025-01-24 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-24 19:45:19] Production.INFO: count ==5231 [2025-01-24 19:45:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:45:05 - End Time 2025-01-24 19:45:05 [2025-01-24 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321877', 'tblTempUsageDetail_20' ) start [2025-01-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321877', 'tblTempUsageDetail_20' ) end [2025-01-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321877', 'tblTempVendorCDR_20' ) start [2025-01-24 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321877', 'tblTempVendorCDR_20' ) end [2025-01-24 19:45:20] Production.INFO: ProcessCDR(1,14321877,1,1,2) [2025-01-24 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321877', 'tblTempUsageDetail_20' ) start [2025-01-24 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321877', 'tblTempUsageDetail_20' ) end [2025-01-24 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:45:24] Production.INFO: ==26628== Releasing lock... [2025-01-24 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:45:24] Production.INFO: 67 MB #Memory Used# [2025-01-24 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:46:04 [end_date_ymd] => 2025-01-24 19:46:04 [RateCDR] => 1 ) [2025-01-24 19:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:46:04' and `end` < '2025-01-24 19:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:46:21] Production.INFO: count ==5217 [2025-01-24 19:46:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:46:04 - End Time 2025-01-24 19:46:04 [2025-01-24 19:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321882', 'tblTempUsageDetail_20' ) start [2025-01-24 19:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321882', 'tblTempUsageDetail_20' ) end [2025-01-24 19:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321882', 'tblTempVendorCDR_20' ) start [2025-01-24 19:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321882', 'tblTempVendorCDR_20' ) end [2025-01-24 19:46:22] Production.INFO: ProcessCDR(1,14321882,1,1,2) [2025-01-24 19:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321882', 'tblTempUsageDetail_20' ) start [2025-01-24 19:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321882', 'tblTempUsageDetail_20' ) end [2025-01-24 19:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:46:27] Production.INFO: ==26729== Releasing lock... [2025-01-24 19:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:46:27] Production.INFO: 67 MB #Memory Used# [2025-01-24 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:47:05 [end_date_ymd] => 2025-01-24 19:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:47:05' and `end` < '2025-01-24 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-24 19:47:19] Production.INFO: count ==5195 [2025-01-24 19:47:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:47:05 - End Time 2025-01-24 19:47:05 [2025-01-24 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321887', 'tblTempUsageDetail_20' ) start [2025-01-24 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321887', 'tblTempUsageDetail_20' ) end [2025-01-24 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321887', 'tblTempVendorCDR_20' ) start [2025-01-24 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321887', 'tblTempVendorCDR_20' ) end [2025-01-24 19:47:21] Production.INFO: ProcessCDR(1,14321887,1,1,2) [2025-01-24 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321887', 'tblTempUsageDetail_20' ) start [2025-01-24 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321887', 'tblTempUsageDetail_20' ) end [2025-01-24 19:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:47:25] Production.INFO: ==26830== Releasing lock... [2025-01-24 19:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:47:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:48:05 [end_date_ymd] => 2025-01-24 19:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:48:05' and `end` < '2025-01-24 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-24 19:48:22] Production.INFO: count ==5176 [2025-01-24 19:48:24] Production.ERROR: pbx CDR StartTime 2025-01-24 16:48:05 - End Time 2025-01-24 19:48:05 [2025-01-24 19:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321892', 'tblTempUsageDetail_20' ) start [2025-01-24 19:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321892', 'tblTempUsageDetail_20' ) end [2025-01-24 19:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321892', 'tblTempVendorCDR_20' ) start [2025-01-24 19:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321892', 'tblTempVendorCDR_20' ) end [2025-01-24 19:48:24] Production.INFO: ProcessCDR(1,14321892,1,1,2) [2025-01-24 19:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321892', 'tblTempUsageDetail_20' ) start [2025-01-24 19:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321892', 'tblTempUsageDetail_20' ) end [2025-01-24 19:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:48:29] Production.INFO: ==26929== Releasing lock... [2025-01-24 19:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:48:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-24 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:49:05 [end_date_ymd] => 2025-01-24 19:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:49:05' and `end` < '2025-01-24 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-24 19:49:21] Production.INFO: count ==5172 [2025-01-24 19:49:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:49:05 - End Time 2025-01-24 19:49:05 [2025-01-24 19:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321897', 'tblTempUsageDetail_20' ) start [2025-01-24 19:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321897', 'tblTempUsageDetail_20' ) end [2025-01-24 19:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321897', 'tblTempVendorCDR_20' ) start [2025-01-24 19:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321897', 'tblTempVendorCDR_20' ) end [2025-01-24 19:49:22] Production.INFO: ProcessCDR(1,14321897,1,1,2) [2025-01-24 19:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321897', 'tblTempUsageDetail_20' ) start [2025-01-24 19:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321897', 'tblTempUsageDetail_20' ) end [2025-01-24 19:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:49:27] Production.INFO: ==27032== Releasing lock... [2025-01-24 19:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:49:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:50:06 [end_date_ymd] => 2025-01-24 19:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 16:50:06' and `end` < '2025-01-24 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-24 19:50:29] Production.INFO: count ==5169 [2025-01-24 19:50:31] Production.ERROR: pbx CDR StartTime 2025-01-24 16:50:06 - End Time 2025-01-24 19:50:06 [2025-01-24 19:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321902', 'tblTempUsageDetail_20' ) start [2025-01-24 19:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321902', 'tblTempUsageDetail_20' ) end [2025-01-24 19:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321902', 'tblTempVendorCDR_20' ) start [2025-01-24 19:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321902', 'tblTempVendorCDR_20' ) end [2025-01-24 19:50:31] Production.INFO: ProcessCDR(1,14321902,1,1,2) [2025-01-24 19:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321902', 'tblTempUsageDetail_20' ) start [2025-01-24 19:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321902', 'tblTempUsageDetail_20' ) end [2025-01-24 19:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:50:34] Production.INFO: ==27134== Releasing lock... [2025-01-24 19:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:50:34] Production.INFO: 66.5 MB #Memory Used# [2025-01-24 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:51:05 [end_date_ymd] => 2025-01-24 19:51:05 [RateCDR] => 1 ) [2025-01-24 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:51:05' and `end` < '2025-01-24 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:51:20] Production.INFO: count ==5128 [2025-01-24 19:51:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:51:05 - End Time 2025-01-24 19:51:05 [2025-01-24 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321908', 'tblTempUsageDetail_20' ) start [2025-01-24 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321908', 'tblTempUsageDetail_20' ) end [2025-01-24 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321908', 'tblTempVendorCDR_20' ) start [2025-01-24 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321908', 'tblTempVendorCDR_20' ) end [2025-01-24 19:51:22] Production.INFO: ProcessCDR(1,14321908,1,1,2) [2025-01-24 19:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321908', 'tblTempUsageDetail_20' ) start [2025-01-24 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321908', 'tblTempUsageDetail_20' ) end [2025-01-24 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:51:25] Production.INFO: ==27238== Releasing lock... [2025-01-24 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:51:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-24 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:52:05 [end_date_ymd] => 2025-01-24 19:52:05 [RateCDR] => 1 ) [2025-01-24 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:52:05' and `end` < '2025-01-24 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:52:24] Production.INFO: count ==5111 [2025-01-24 19:52:26] Production.ERROR: pbx CDR StartTime 2025-01-24 16:52:05 - End Time 2025-01-24 19:52:05 [2025-01-24 19:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321913', 'tblTempUsageDetail_20' ) start [2025-01-24 19:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321913', 'tblTempUsageDetail_20' ) end [2025-01-24 19:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321913', 'tblTempVendorCDR_20' ) start [2025-01-24 19:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321913', 'tblTempVendorCDR_20' ) end [2025-01-24 19:52:26] Production.INFO: ProcessCDR(1,14321913,1,1,2) [2025-01-24 19:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321913', 'tblTempUsageDetail_20' ) start [2025-01-24 19:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321913', 'tblTempUsageDetail_20' ) end [2025-01-24 19:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:52:29] Production.INFO: ==27331== Releasing lock... [2025-01-24 19:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:52:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-24 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:53:06 [end_date_ymd] => 2025-01-24 19:53:06 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:53:06' and `end` < '2025-01-24 19: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-24 19:53:21] Production.INFO: count ==5094 [2025-01-24 19:53:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:53:06 - End Time 2025-01-24 19:53:06 [2025-01-24 19:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321918', 'tblTempUsageDetail_20' ) start [2025-01-24 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321918', 'tblTempUsageDetail_20' ) end [2025-01-24 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321918', 'tblTempVendorCDR_20' ) start [2025-01-24 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321918', 'tblTempVendorCDR_20' ) end [2025-01-24 19:53:23] Production.INFO: ProcessCDR(1,14321918,1,1,2) [2025-01-24 19:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321918', 'tblTempUsageDetail_20' ) start [2025-01-24 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321918', 'tblTempUsageDetail_20' ) end [2025-01-24 19:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:53:26] Production.INFO: ==27403== Releasing lock... [2025-01-24 19:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:53:26] Production.INFO: 66 MB #Memory Used# [2025-01-24 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:54:06 [end_date_ymd] => 2025-01-24 19:54:06 [RateCDR] => 1 ) [2025-01-24 19:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:54:06' and `end` < '2025-01-24 19:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:54:19] Production.INFO: count ==5084 [2025-01-24 19:54:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:54:06 - End Time 2025-01-24 19:54:06 [2025-01-24 19:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321923', 'tblTempUsageDetail_20' ) start [2025-01-24 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321923', 'tblTempUsageDetail_20' ) end [2025-01-24 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321923', 'tblTempVendorCDR_20' ) start [2025-01-24 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321923', 'tblTempVendorCDR_20' ) end [2025-01-24 19:54:21] Production.INFO: ProcessCDR(1,14321923,1,1,2) [2025-01-24 19:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321923', 'tblTempUsageDetail_20' ) start [2025-01-24 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321923', 'tblTempUsageDetail_20' ) end [2025-01-24 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:54:25] Production.INFO: ==27474== Releasing lock... [2025-01-24 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:54:25] Production.INFO: 66 MB #Memory Used# [2025-01-24 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:55:06 [end_date_ymd] => 2025-01-24 19:55:06 [RateCDR] => 1 ) [2025-01-24 19: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-24 16:55:06' and `end` < '2025-01-24 19: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-24 19:55:19] Production.INFO: count ==5059 [2025-01-24 19:55:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:55:06 - End Time 2025-01-24 19:55:06 [2025-01-24 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321928', 'tblTempUsageDetail_20' ) start [2025-01-24 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321928', 'tblTempUsageDetail_20' ) end [2025-01-24 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321928', 'tblTempVendorCDR_20' ) start [2025-01-24 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321928', 'tblTempVendorCDR_20' ) end [2025-01-24 19:55:20] Production.INFO: ProcessCDR(1,14321928,1,1,2) [2025-01-24 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321928', 'tblTempUsageDetail_20' ) start [2025-01-24 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321928', 'tblTempUsageDetail_20' ) end [2025-01-24 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:55:23] Production.INFO: ==27547== Releasing lock... [2025-01-24 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:55:23] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:56:05 [end_date_ymd] => 2025-01-24 19:56:05 [RateCDR] => 1 ) [2025-01-24 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:56:05' and `end` < '2025-01-24 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:56:19] Production.INFO: count ==5046 [2025-01-24 19:56:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:56:05 - End Time 2025-01-24 19:56:05 [2025-01-24 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321933', 'tblTempUsageDetail_20' ) start [2025-01-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321933', 'tblTempUsageDetail_20' ) end [2025-01-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321933', 'tblTempVendorCDR_20' ) start [2025-01-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321933', 'tblTempVendorCDR_20' ) end [2025-01-24 19:56:20] Production.INFO: ProcessCDR(1,14321933,1,1,2) [2025-01-24 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321933', 'tblTempUsageDetail_20' ) start [2025-01-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321933', 'tblTempUsageDetail_20' ) end [2025-01-24 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:56:23] Production.INFO: ==27620== Releasing lock... [2025-01-24 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:56:23] Production.INFO: 65.75 MB #Memory Used# [2025-01-24 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:57:05 [end_date_ymd] => 2025-01-24 19:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 16:57:05' and `end` < '2025-01-24 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-24 19:57:20] Production.INFO: count ==5037 [2025-01-24 19:57:22] Production.ERROR: pbx CDR StartTime 2025-01-24 16:57:05 - End Time 2025-01-24 19:57:05 [2025-01-24 19:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321938', 'tblTempUsageDetail_20' ) start [2025-01-24 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321938', 'tblTempUsageDetail_20' ) end [2025-01-24 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321938', 'tblTempVendorCDR_20' ) start [2025-01-24 19:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321938', 'tblTempVendorCDR_20' ) end [2025-01-24 19:57:22] Production.INFO: ProcessCDR(1,14321938,1,1,2) [2025-01-24 19:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321938', 'tblTempUsageDetail_20' ) start [2025-01-24 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321938', 'tblTempUsageDetail_20' ) end [2025-01-24 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:57:25] Production.INFO: ==27691== Releasing lock... [2025-01-24 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:57:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-24 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:58:05 [end_date_ymd] => 2025-01-24 19:58:05 [RateCDR] => 1 ) [2025-01-24 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:58:05' and `end` < '2025-01-24 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:58:19] Production.INFO: count ==5024 [2025-01-24 19:58:20] Production.ERROR: pbx CDR StartTime 2025-01-24 16:58:05 - End Time 2025-01-24 19:58:05 [2025-01-24 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321943', 'tblTempUsageDetail_20' ) start [2025-01-24 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321943', 'tblTempUsageDetail_20' ) end [2025-01-24 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321943', 'tblTempVendorCDR_20' ) start [2025-01-24 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321943', 'tblTempVendorCDR_20' ) end [2025-01-24 19:58:20] Production.INFO: ProcessCDR(1,14321943,1,1,2) [2025-01-24 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321943', 'tblTempUsageDetail_20' ) start [2025-01-24 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321943', 'tblTempUsageDetail_20' ) end [2025-01-24 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:58:24] Production.INFO: ==27804== Releasing lock... [2025-01-24 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:58:24] Production.INFO: 65.5 MB #Memory Used# [2025-01-24 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 16:59:06 [end_date_ymd] => 2025-01-24 19:59:06 [RateCDR] => 1 ) [2025-01-24 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 16:59:06' and `end` < '2025-01-24 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 19:59:20] Production.INFO: count ==5003 [2025-01-24 19:59:21] Production.ERROR: pbx CDR StartTime 2025-01-24 16:59:06 - End Time 2025-01-24 19:59:06 [2025-01-24 19:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 19:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321948', 'tblTempUsageDetail_20' ) start [2025-01-24 19:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321948', 'tblTempUsageDetail_20' ) end [2025-01-24 19:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321948', 'tblTempVendorCDR_20' ) start [2025-01-24 19:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321948', 'tblTempVendorCDR_20' ) end [2025-01-24 19:59:21] Production.INFO: ProcessCDR(1,14321948,1,1,2) [2025-01-24 19:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321948', 'tblTempUsageDetail_20' ) start [2025-01-24 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321948', 'tblTempUsageDetail_20' ) end [2025-01-24 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 19:59:25] Production.INFO: ==27878== Releasing lock... [2025-01-24 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 19:59:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-24 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:00:06 [end_date_ymd] => 2025-01-24 20:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:00:06' and `end` < '2025-01-24 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-24 20:00:20] Production.INFO: count ==4990 [2025-01-24 20:00:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:00:06 - End Time 2025-01-24 20:00:06 [2025-01-24 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321954', 'tblTempUsageDetail_20' ) start [2025-01-24 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321954', 'tblTempUsageDetail_20' ) end [2025-01-24 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321954', 'tblTempVendorCDR_20' ) start [2025-01-24 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321954', 'tblTempVendorCDR_20' ) end [2025-01-24 20:00:21] Production.INFO: ProcessCDR(1,14321954,1,1,2) [2025-01-24 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321954', 'tblTempUsageDetail_20' ) start [2025-01-24 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321954', 'tblTempUsageDetail_20' ) end [2025-01-24 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:00:24] Production.INFO: ==27952== Releasing lock... [2025-01-24 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:00:24] Production.INFO: 65.25 MB #Memory Used# [2025-01-24 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:01:06 [end_date_ymd] => 2025-01-24 20:01:06 [RateCDR] => 1 ) [2025-01-24 20: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-24 17:01:06' and `end` < '2025-01-24 20: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-24 20:01:22] Production.INFO: count ==4914 [2025-01-24 20:01:23] Production.ERROR: pbx CDR StartTime 2025-01-24 17:01:06 - End Time 2025-01-24 20:01:06 [2025-01-24 20:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321959', 'tblTempUsageDetail_20' ) start [2025-01-24 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321959', 'tblTempUsageDetail_20' ) end [2025-01-24 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321959', 'tblTempVendorCDR_20' ) start [2025-01-24 20:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321959', 'tblTempVendorCDR_20' ) end [2025-01-24 20:01:23] Production.INFO: ProcessCDR(1,14321959,1,1,2) [2025-01-24 20:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321959', 'tblTempUsageDetail_20' ) start [2025-01-24 20:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321959', 'tblTempUsageDetail_20' ) end [2025-01-24 20:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:01:26] Production.INFO: ==28079== Releasing lock... [2025-01-24 20:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-24 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:02:05 [end_date_ymd] => 2025-01-24 20:02:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:02:05' and `end` < '2025-01-24 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-24 20:02:18] Production.INFO: count ==4899 [2025-01-24 20:02:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:02:05 - End Time 2025-01-24 20:02:05 [2025-01-24 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321964', 'tblTempUsageDetail_20' ) start [2025-01-24 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321964', 'tblTempUsageDetail_20' ) end [2025-01-24 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321964', 'tblTempVendorCDR_20' ) start [2025-01-24 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321964', 'tblTempVendorCDR_20' ) end [2025-01-24 20:02:20] Production.INFO: ProcessCDR(1,14321964,1,1,2) [2025-01-24 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321964', 'tblTempUsageDetail_20' ) start [2025-01-24 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321964', 'tblTempUsageDetail_20' ) end [2025-01-24 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:02:23] Production.INFO: ==28150== Releasing lock... [2025-01-24 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:02:23] Production.INFO: 64.5 MB #Memory Used# [2025-01-24 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:03:05 [end_date_ymd] => 2025-01-24 20:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:03:05' and `end` < '2025-01-24 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-24 20:03:23] Production.INFO: count ==4879 [2025-01-24 20:03:25] Production.ERROR: pbx CDR StartTime 2025-01-24 17:03:05 - End Time 2025-01-24 20:03:05 [2025-01-24 20:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321969', 'tblTempUsageDetail_20' ) start [2025-01-24 20:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321969', 'tblTempUsageDetail_20' ) end [2025-01-24 20:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321969', 'tblTempVendorCDR_20' ) start [2025-01-24 20:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321969', 'tblTempVendorCDR_20' ) end [2025-01-24 20:03:25] Production.INFO: ProcessCDR(1,14321969,1,1,2) [2025-01-24 20:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321969', 'tblTempUsageDetail_20' ) start [2025-01-24 20:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321969', 'tblTempUsageDetail_20' ) end [2025-01-24 20:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:03:29] Production.INFO: ==28220== Releasing lock... [2025-01-24 20:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:03:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-24 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:04:05 [end_date_ymd] => 2025-01-24 20:04:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:04:05' and `end` < '2025-01-24 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-24 20:04:20] Production.INFO: count ==4861 [2025-01-24 20:04:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:04:05 - End Time 2025-01-24 20:04:05 [2025-01-24 20:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321974', 'tblTempUsageDetail_20' ) start [2025-01-24 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321974', 'tblTempUsageDetail_20' ) end [2025-01-24 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321974', 'tblTempVendorCDR_20' ) start [2025-01-24 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321974', 'tblTempVendorCDR_20' ) end [2025-01-24 20:04:22] Production.INFO: ProcessCDR(1,14321974,1,1,2) [2025-01-24 20:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321974', 'tblTempUsageDetail_20' ) start [2025-01-24 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321974', 'tblTempUsageDetail_20' ) end [2025-01-24 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:04:25] Production.INFO: ==28291== Releasing lock... [2025-01-24 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:04:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:05:05 [end_date_ymd] => 2025-01-24 20:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:05:05' and `end` < '2025-01-24 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-24 20:05:21] Production.INFO: count ==4848 [2025-01-24 20:05:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:05:05 - End Time 2025-01-24 20:05:05 [2025-01-24 20:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321979', 'tblTempUsageDetail_20' ) start [2025-01-24 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321979', 'tblTempUsageDetail_20' ) end [2025-01-24 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321979', 'tblTempVendorCDR_20' ) start [2025-01-24 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321979', 'tblTempVendorCDR_20' ) end [2025-01-24 20:05:23] Production.INFO: ProcessCDR(1,14321979,1,1,2) [2025-01-24 20:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321979', 'tblTempUsageDetail_20' ) start [2025-01-24 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321979', 'tblTempUsageDetail_20' ) end [2025-01-24 20:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:05:26] Production.INFO: ==28367== Releasing lock... [2025-01-24 20:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:05:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-24 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:06:05 [end_date_ymd] => 2025-01-24 20:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:06:05' and `end` < '2025-01-24 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-24 20:06:22] Production.INFO: count ==4831 [2025-01-24 20:06:23] Production.ERROR: pbx CDR StartTime 2025-01-24 17:06:05 - End Time 2025-01-24 20:06:05 [2025-01-24 20:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321984', 'tblTempUsageDetail_20' ) start [2025-01-24 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321984', 'tblTempUsageDetail_20' ) end [2025-01-24 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321984', 'tblTempVendorCDR_20' ) start [2025-01-24 20:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321984', 'tblTempVendorCDR_20' ) end [2025-01-24 20:06:23] Production.INFO: ProcessCDR(1,14321984,1,1,2) [2025-01-24 20:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321984', 'tblTempUsageDetail_20' ) start [2025-01-24 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321984', 'tblTempUsageDetail_20' ) end [2025-01-24 20:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:06:26] Production.INFO: ==28438== Releasing lock... [2025-01-24 20:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:06:26] Production.INFO: 64 MB #Memory Used# [2025-01-24 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:07:05 [end_date_ymd] => 2025-01-24 20:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:07:05' and `end` < '2025-01-24 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-24 20:07:20] Production.INFO: count ==4819 [2025-01-24 20:07:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:07:05 - End Time 2025-01-24 20:07:05 [2025-01-24 20:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321989', 'tblTempUsageDetail_20' ) start [2025-01-24 20:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321989', 'tblTempUsageDetail_20' ) end [2025-01-24 20:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321989', 'tblTempVendorCDR_20' ) start [2025-01-24 20:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321989', 'tblTempVendorCDR_20' ) end [2025-01-24 20:07:22] Production.INFO: ProcessCDR(1,14321989,1,1,2) [2025-01-24 20:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321989', 'tblTempUsageDetail_20' ) start [2025-01-24 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321989', 'tblTempUsageDetail_20' ) end [2025-01-24 20:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:07:25] Production.INFO: ==28508== Releasing lock... [2025-01-24 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:07:25] Production.INFO: 64 MB #Memory Used# [2025-01-24 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:08:06 [end_date_ymd] => 2025-01-24 20:08:06 [RateCDR] => 1 ) [2025-01-24 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:08:06' and `end` < '2025-01-24 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:08:20] Production.INFO: count ==4814 [2025-01-24 20:08:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:08:06 - End Time 2025-01-24 20:08:06 [2025-01-24 20:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321994', 'tblTempUsageDetail_20' ) start [2025-01-24 20:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321994', 'tblTempUsageDetail_20' ) end [2025-01-24 20:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321994', 'tblTempVendorCDR_20' ) start [2025-01-24 20:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321994', 'tblTempVendorCDR_20' ) end [2025-01-24 20:08:22] Production.INFO: ProcessCDR(1,14321994,1,1,2) [2025-01-24 20:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321994', 'tblTempUsageDetail_20' ) start [2025-01-24 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321994', 'tblTempUsageDetail_20' ) end [2025-01-24 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:08:25] Production.INFO: ==28580== Releasing lock... [2025-01-24 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:08:25] Production.INFO: 64 MB #Memory Used# [2025-01-24 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:09:05 [end_date_ymd] => 2025-01-24 20:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:09:05' and `end` < '2025-01-24 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-24 20:09:19] Production.INFO: count ==4804 [2025-01-24 20:09:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:09:05 - End Time 2025-01-24 20:09:05 [2025-01-24 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321999', 'tblTempUsageDetail_20' ) start [2025-01-24 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14321999', 'tblTempUsageDetail_20' ) end [2025-01-24 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321999', 'tblTempVendorCDR_20' ) start [2025-01-24 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14321999', 'tblTempVendorCDR_20' ) end [2025-01-24 20:09:20] Production.INFO: ProcessCDR(1,14321999,1,1,2) [2025-01-24 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14321999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14321999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14321999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14321999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321999', 'tblTempUsageDetail_20' ) start [2025-01-24 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14321999', 'tblTempUsageDetail_20' ) end [2025-01-24 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:09:23] Production.INFO: ==28651== Releasing lock... [2025-01-24 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:09:23] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:10:06 [end_date_ymd] => 2025-01-24 20:10:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:10:06' and `end` < '2025-01-24 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-24 20:10:20] Production.INFO: count ==4797 [2025-01-24 20:10:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:10:06 - End Time 2025-01-24 20:10:06 [2025-01-24 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322001', 'tblTempUsageDetail_20' ) start [2025-01-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322001', 'tblTempUsageDetail_20' ) end [2025-01-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322001', 'tblTempVendorCDR_20' ) start [2025-01-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322001', 'tblTempVendorCDR_20' ) end [2025-01-24 20:10:21] Production.INFO: ProcessCDR(1,14322001,1,1,2) [2025-01-24 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322001', 'tblTempUsageDetail_20' ) start [2025-01-24 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322001', 'tblTempUsageDetail_20' ) end [2025-01-24 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:10:24] Production.INFO: ==28722== Releasing lock... [2025-01-24 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:10:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-24 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:11:05 [end_date_ymd] => 2025-01-24 20:11:05 [RateCDR] => 1 ) [2025-01-24 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:11:05' and `end` < '2025-01-24 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:11:22] Production.INFO: count ==4748 [2025-01-24 20:11:23] Production.ERROR: pbx CDR StartTime 2025-01-24 17:11:05 - End Time 2025-01-24 20:11:05 [2025-01-24 20:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322010', 'tblTempUsageDetail_20' ) start [2025-01-24 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322010', 'tblTempUsageDetail_20' ) end [2025-01-24 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322010', 'tblTempVendorCDR_20' ) start [2025-01-24 20:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322010', 'tblTempVendorCDR_20' ) end [2025-01-24 20:11:23] Production.INFO: ProcessCDR(1,14322010,1,1,2) [2025-01-24 20:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322010', 'tblTempUsageDetail_20' ) start [2025-01-24 20:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322010', 'tblTempUsageDetail_20' ) end [2025-01-24 20:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:11:28] Production.INFO: ==28798== Releasing lock... [2025-01-24 20:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:11:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:12:06 [end_date_ymd] => 2025-01-24 20:12:06 [RateCDR] => 1 ) [2025-01-24 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:12:06' and `end` < '2025-01-24 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:12:22] Production.INFO: count ==4753 [2025-01-24 20:12:23] Production.ERROR: pbx CDR StartTime 2025-01-24 17:12:06 - End Time 2025-01-24 20:12:06 [2025-01-24 20:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322015', 'tblTempUsageDetail_20' ) start [2025-01-24 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322015', 'tblTempUsageDetail_20' ) end [2025-01-24 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322015', 'tblTempVendorCDR_20' ) start [2025-01-24 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322015', 'tblTempVendorCDR_20' ) end [2025-01-24 20:12:23] Production.INFO: ProcessCDR(1,14322015,1,1,2) [2025-01-24 20:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322015', 'tblTempUsageDetail_20' ) start [2025-01-24 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322015', 'tblTempUsageDetail_20' ) end [2025-01-24 20:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:12:27] Production.INFO: ==28868== Releasing lock... [2025-01-24 20:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:12:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:13:05 [end_date_ymd] => 2025-01-24 20:13:05 [RateCDR] => 1 ) [2025-01-24 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:13:05' and `end` < '2025-01-24 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:13:20] Production.INFO: count ==4745 [2025-01-24 20:13:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:13:05 - End Time 2025-01-24 20:13:05 [2025-01-24 20:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322020', 'tblTempUsageDetail_20' ) start [2025-01-24 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322020', 'tblTempUsageDetail_20' ) end [2025-01-24 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322020', 'tblTempVendorCDR_20' ) start [2025-01-24 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322020', 'tblTempVendorCDR_20' ) end [2025-01-24 20:13:21] Production.INFO: ProcessCDR(1,14322020,1,1,2) [2025-01-24 20:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322020', 'tblTempUsageDetail_20' ) start [2025-01-24 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322020', 'tblTempUsageDetail_20' ) end [2025-01-24 20:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:13:25] Production.INFO: ==28938== Releasing lock... [2025-01-24 20:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:13:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:14:05 [end_date_ymd] => 2025-01-24 20:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:14:05' and `end` < '2025-01-24 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-24 20:14:18] Production.INFO: count ==4750 [2025-01-24 20:14:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:14:05 - End Time 2025-01-24 20:14:05 [2025-01-24 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322025', 'tblTempUsageDetail_20' ) start [2025-01-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322025', 'tblTempUsageDetail_20' ) end [2025-01-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322025', 'tblTempVendorCDR_20' ) start [2025-01-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322025', 'tblTempVendorCDR_20' ) end [2025-01-24 20:14:20] Production.INFO: ProcessCDR(1,14322025,1,1,2) [2025-01-24 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322025', 'tblTempUsageDetail_20' ) start [2025-01-24 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322025', 'tblTempUsageDetail_20' ) end [2025-01-24 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:14:24] Production.INFO: ==29049== Releasing lock... [2025-01-24 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:14:24] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:15:05 [end_date_ymd] => 2025-01-24 20:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:15:05' and `end` < '2025-01-24 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-24 20:15:18] Production.INFO: count ==4744 [2025-01-24 20:15:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:15:05 - End Time 2025-01-24 20:15:05 [2025-01-24 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322030', 'tblTempUsageDetail_20' ) start [2025-01-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322030', 'tblTempUsageDetail_20' ) end [2025-01-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322030', 'tblTempVendorCDR_20' ) start [2025-01-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322030', 'tblTempVendorCDR_20' ) end [2025-01-24 20:15:19] Production.INFO: ProcessCDR(1,14322030,1,1,2) [2025-01-24 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322030', 'tblTempUsageDetail_20' ) start [2025-01-24 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322030', 'tblTempUsageDetail_20' ) end [2025-01-24 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:15:22] Production.INFO: ==29129== Releasing lock... [2025-01-24 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:15:22] Production.INFO: 63.5 MB #Memory Used# [2025-01-24 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:16:06 [end_date_ymd] => 2025-01-24 20:16:06 [RateCDR] => 1 ) [2025-01-24 20: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-24 17:16:06' and `end` < '2025-01-24 20: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-24 20:16:19] Production.INFO: count ==4713 [2025-01-24 20:16:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:16:06 - End Time 2025-01-24 20:16:06 [2025-01-24 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322035', 'tblTempUsageDetail_20' ) start [2025-01-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322035', 'tblTempUsageDetail_20' ) end [2025-01-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322035', 'tblTempVendorCDR_20' ) start [2025-01-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322035', 'tblTempVendorCDR_20' ) end [2025-01-24 20:16:20] Production.INFO: ProcessCDR(1,14322035,1,1,2) [2025-01-24 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322035', 'tblTempUsageDetail_20' ) start [2025-01-24 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322035', 'tblTempUsageDetail_20' ) end [2025-01-24 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:16:23] Production.INFO: ==29200== Releasing lock... [2025-01-24 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:16:23] Production.INFO: 63.25 MB #Memory Used# [2025-01-24 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:17:05 [end_date_ymd] => 2025-01-24 20:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:17:05' and `end` < '2025-01-24 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-24 20:17:18] Production.INFO: count ==4708 [2025-01-24 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:17:05 - End Time 2025-01-24 20:17:05 [2025-01-24 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322040', 'tblTempUsageDetail_20' ) start [2025-01-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322040', 'tblTempUsageDetail_20' ) end [2025-01-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322040', 'tblTempVendorCDR_20' ) start [2025-01-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322040', 'tblTempVendorCDR_20' ) end [2025-01-24 20:17:19] Production.INFO: ProcessCDR(1,14322040,1,1,2) [2025-01-24 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322040', 'tblTempUsageDetail_20' ) start [2025-01-24 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322040', 'tblTempUsageDetail_20' ) end [2025-01-24 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:17:24] Production.INFO: ==29271== Releasing lock... [2025-01-24 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:17:24] Production.INFO: 63 MB #Memory Used# [2025-01-24 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:18:06 [end_date_ymd] => 2025-01-24 20:18:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:18:06' and `end` < '2025-01-24 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-24 20:18:19] Production.INFO: count ==4705 [2025-01-24 20:18:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:18:06 - End Time 2025-01-24 20:18:06 [2025-01-24 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322045', 'tblTempUsageDetail_20' ) start [2025-01-24 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322045', 'tblTempUsageDetail_20' ) end [2025-01-24 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322045', 'tblTempVendorCDR_20' ) start [2025-01-24 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322045', 'tblTempVendorCDR_20' ) end [2025-01-24 20:18:20] Production.INFO: ProcessCDR(1,14322045,1,1,2) [2025-01-24 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322045', 'tblTempUsageDetail_20' ) start [2025-01-24 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322045', 'tblTempUsageDetail_20' ) end [2025-01-24 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:18:23] Production.INFO: ==29353== Releasing lock... [2025-01-24 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:18:23] Production.INFO: 63 MB #Memory Used# [2025-01-24 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:19:05 [end_date_ymd] => 2025-01-24 20:19:05 [RateCDR] => 1 ) [2025-01-24 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:19:05' and `end` < '2025-01-24 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:19:18] Production.INFO: count ==4705 [2025-01-24 20:19:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:19:05 - End Time 2025-01-24 20:19:05 [2025-01-24 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322050', 'tblTempUsageDetail_20' ) start [2025-01-24 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322050', 'tblTempUsageDetail_20' ) end [2025-01-24 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322050', 'tblTempVendorCDR_20' ) start [2025-01-24 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322050', 'tblTempVendorCDR_20' ) end [2025-01-24 20:19:20] Production.INFO: ProcessCDR(1,14322050,1,1,2) [2025-01-24 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322050', 'tblTempUsageDetail_20' ) start [2025-01-24 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322050', 'tblTempUsageDetail_20' ) end [2025-01-24 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:19:23] Production.INFO: ==29423== Releasing lock... [2025-01-24 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:19:23] Production.INFO: 63 MB #Memory Used# [2025-01-24 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:20:07 [end_date_ymd] => 2025-01-24 20:20:07 [RateCDR] => 1 ) [2025-01-24 20:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:20:07' and `end` < '2025-01-24 20:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:20:20] Production.INFO: count ==4700 [2025-01-24 20:20:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:20:07 - End Time 2025-01-24 20:20:07 [2025-01-24 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322056', 'tblTempUsageDetail_20' ) start [2025-01-24 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322056', 'tblTempUsageDetail_20' ) end [2025-01-24 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322056', 'tblTempVendorCDR_20' ) start [2025-01-24 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322056', 'tblTempVendorCDR_20' ) end [2025-01-24 20:20:21] Production.INFO: ProcessCDR(1,14322056,1,1,2) [2025-01-24 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322056', 'tblTempUsageDetail_20' ) start [2025-01-24 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322056', 'tblTempUsageDetail_20' ) end [2025-01-24 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:20:25] Production.INFO: ==29498== Releasing lock... [2025-01-24 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:20:25] Production.INFO: 63 MB #Memory Used# [2025-01-24 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:21:05 [end_date_ymd] => 2025-01-24 20:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:21:05' and `end` < '2025-01-24 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-24 20:21:19] Production.INFO: count ==4617 [2025-01-24 20:21:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:21:05 - End Time 2025-01-24 20:21:05 [2025-01-24 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322061', 'tblTempUsageDetail_20' ) start [2025-01-24 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322061', 'tblTempUsageDetail_20' ) end [2025-01-24 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322061', 'tblTempVendorCDR_20' ) start [2025-01-24 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322061', 'tblTempVendorCDR_20' ) end [2025-01-24 20:21:20] Production.INFO: ProcessCDR(1,14322061,1,1,2) [2025-01-24 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322061', 'tblTempUsageDetail_20' ) start [2025-01-24 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322061', 'tblTempUsageDetail_20' ) end [2025-01-24 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:21:25] Production.INFO: ==29571== Releasing lock... [2025-01-24 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:21:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-24 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:22:05 [end_date_ymd] => 2025-01-24 20:22:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:22:05' and `end` < '2025-01-24 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-24 20:22:23] Production.INFO: count ==4615 [2025-01-24 20:22:25] Production.ERROR: pbx CDR StartTime 2025-01-24 17:22:05 - End Time 2025-01-24 20:22:05 [2025-01-24 20:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322066', 'tblTempUsageDetail_20' ) start [2025-01-24 20:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322066', 'tblTempUsageDetail_20' ) end [2025-01-24 20:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322066', 'tblTempVendorCDR_20' ) start [2025-01-24 20:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322066', 'tblTempVendorCDR_20' ) end [2025-01-24 20:22:25] Production.INFO: ProcessCDR(1,14322066,1,1,2) [2025-01-24 20:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322066', 'tblTempUsageDetail_20' ) start [2025-01-24 20:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322066', 'tblTempUsageDetail_20' ) end [2025-01-24 20:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:22:28] Production.INFO: ==29643== Releasing lock... [2025-01-24 20:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:22:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-24 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:23:05 [end_date_ymd] => 2025-01-24 20:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:23:05' and `end` < '2025-01-24 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-24 20:23:20] Production.INFO: count ==4611 [2025-01-24 20:23:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:23:05 - End Time 2025-01-24 20:23:05 [2025-01-24 20:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322071', 'tblTempUsageDetail_20' ) start [2025-01-24 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322071', 'tblTempUsageDetail_20' ) end [2025-01-24 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322071', 'tblTempVendorCDR_20' ) start [2025-01-24 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322071', 'tblTempVendorCDR_20' ) end [2025-01-24 20:23:22] Production.INFO: ProcessCDR(1,14322071,1,1,2) [2025-01-24 20:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322071', 'tblTempUsageDetail_20' ) start [2025-01-24 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322071', 'tblTempUsageDetail_20' ) end [2025-01-24 20:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:23:25] Production.INFO: ==29713== Releasing lock... [2025-01-24 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:23:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-24 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:24:05 [end_date_ymd] => 2025-01-24 20:24:05 [RateCDR] => 1 ) [2025-01-24 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:24:05' and `end` < '2025-01-24 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:24:18] Production.INFO: count ==4608 [2025-01-24 20:24:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:24:05 - End Time 2025-01-24 20:24:05 [2025-01-24 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322076', 'tblTempUsageDetail_20' ) start [2025-01-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322076', 'tblTempUsageDetail_20' ) end [2025-01-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322076', 'tblTempVendorCDR_20' ) start [2025-01-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322076', 'tblTempVendorCDR_20' ) end [2025-01-24 20:24:20] Production.INFO: ProcessCDR(1,14322076,1,1,2) [2025-01-24 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322076', 'tblTempUsageDetail_20' ) start [2025-01-24 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322076', 'tblTempUsageDetail_20' ) end [2025-01-24 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:24:24] Production.INFO: ==29786== Releasing lock... [2025-01-24 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:24:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:25:04 [end_date_ymd] => 2025-01-24 20:25:04 [RateCDR] => 1 ) [2025-01-24 20: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-24 17:25:04' and `end` < '2025-01-24 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-24 20:25:17] Production.INFO: count ==4598 [2025-01-24 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-24 17:25:04 - End Time 2025-01-24 20:25:04 [2025-01-24 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322081', 'tblTempUsageDetail_20' ) start [2025-01-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322081', 'tblTempUsageDetail_20' ) end [2025-01-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322081', 'tblTempVendorCDR_20' ) start [2025-01-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322081', 'tblTempVendorCDR_20' ) end [2025-01-24 20:25:19] Production.INFO: ProcessCDR(1,14322081,1,1,2) [2025-01-24 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322081', 'tblTempUsageDetail_20' ) start [2025-01-24 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322081', 'tblTempUsageDetail_20' ) end [2025-01-24 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:25:22] Production.INFO: ==29859== Releasing lock... [2025-01-24 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:25:22] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:26:05 [end_date_ymd] => 2025-01-24 20:26:05 [RateCDR] => 1 ) [2025-01-24 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:26:05' and `end` < '2025-01-24 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:26:18] Production.INFO: count ==4598 [2025-01-24 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:26:05 - End Time 2025-01-24 20:26:05 [2025-01-24 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322086', 'tblTempUsageDetail_20' ) start [2025-01-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322086', 'tblTempUsageDetail_20' ) end [2025-01-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322086', 'tblTempVendorCDR_20' ) start [2025-01-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322086', 'tblTempVendorCDR_20' ) end [2025-01-24 20:26:19] Production.INFO: ProcessCDR(1,14322086,1,1,2) [2025-01-24 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322086', 'tblTempUsageDetail_20' ) start [2025-01-24 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322086', 'tblTempUsageDetail_20' ) end [2025-01-24 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:26:23] Production.INFO: ==29934== Releasing lock... [2025-01-24 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:26:23] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:27:05 [end_date_ymd] => 2025-01-24 20:27:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:27:05' and `end` < '2025-01-24 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-24 20:27:20] Production.INFO: count ==4584 [2025-01-24 20:27:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:27:05 - End Time 2025-01-24 20:27:05 [2025-01-24 20:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322091', 'tblTempUsageDetail_20' ) start [2025-01-24 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322091', 'tblTempUsageDetail_20' ) end [2025-01-24 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322091', 'tblTempVendorCDR_20' ) start [2025-01-24 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322091', 'tblTempVendorCDR_20' ) end [2025-01-24 20:27:21] Production.INFO: ProcessCDR(1,14322091,1,1,2) [2025-01-24 20:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322091', 'tblTempUsageDetail_20' ) start [2025-01-24 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322091', 'tblTempUsageDetail_20' ) end [2025-01-24 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:27:24] Production.INFO: ==30013== Releasing lock... [2025-01-24 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:27:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:28:06 [end_date_ymd] => 2025-01-24 20:28:06 [RateCDR] => 1 ) [2025-01-24 20:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:28:06' and `end` < '2025-01-24 20:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:28:24] Production.INFO: count ==4588 [2025-01-24 20:28:25] Production.ERROR: pbx CDR StartTime 2025-01-24 17:28:06 - End Time 2025-01-24 20:28:06 [2025-01-24 20:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322096', 'tblTempUsageDetail_20' ) start [2025-01-24 20:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322096', 'tblTempUsageDetail_20' ) end [2025-01-24 20:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322096', 'tblTempVendorCDR_20' ) start [2025-01-24 20:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322096', 'tblTempVendorCDR_20' ) end [2025-01-24 20:28:25] Production.INFO: ProcessCDR(1,14322096,1,1,2) [2025-01-24 20:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322096', 'tblTempUsageDetail_20' ) start [2025-01-24 20:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322096', 'tblTempUsageDetail_20' ) end [2025-01-24 20:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:28:29] Production.INFO: ==30085== Releasing lock... [2025-01-24 20:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:28:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:29:05 [end_date_ymd] => 2025-01-24 20:29:05 [RateCDR] => 1 ) [2025-01-24 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:29:05' and `end` < '2025-01-24 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:29:21] Production.INFO: count ==4582 [2025-01-24 20:29:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:29:05 - End Time 2025-01-24 20:29:05 [2025-01-24 20:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322101', 'tblTempUsageDetail_20' ) start [2025-01-24 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322101', 'tblTempUsageDetail_20' ) end [2025-01-24 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322101', 'tblTempVendorCDR_20' ) start [2025-01-24 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322101', 'tblTempVendorCDR_20' ) end [2025-01-24 20:29:22] Production.INFO: ProcessCDR(1,14322101,1,1,2) [2025-01-24 20:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322101', 'tblTempUsageDetail_20' ) start [2025-01-24 20:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322101', 'tblTempUsageDetail_20' ) end [2025-01-24 20:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:29:27] Production.INFO: ==30203== Releasing lock... [2025-01-24 20:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:29:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-24 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:30:06 [end_date_ymd] => 2025-01-24 20:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:30:06' and `end` < '2025-01-24 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-24 20:30:21] Production.INFO: count ==4565 [2025-01-24 20:30:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:30:06 - End Time 2025-01-24 20:30:06 [2025-01-24 20:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322107', 'tblTempUsageDetail_20' ) start [2025-01-24 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322107', 'tblTempUsageDetail_20' ) end [2025-01-24 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322107', 'tblTempVendorCDR_20' ) start [2025-01-24 20:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322107', 'tblTempVendorCDR_20' ) end [2025-01-24 20:30:23] Production.INFO: ProcessCDR(1,14322107,1,1,2) [2025-01-24 20:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322107', 'tblTempUsageDetail_20' ) start [2025-01-24 20:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322107', 'tblTempUsageDetail_20' ) end [2025-01-24 20:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:30:27] Production.INFO: ==30284== Releasing lock... [2025-01-24 20:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:30:27] Production.INFO: 62 MB #Memory Used# [2025-01-24 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:31:05 [end_date_ymd] => 2025-01-24 20:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:31:05' and `end` < '2025-01-24 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-24 20:31:18] Production.INFO: count ==4431 [2025-01-24 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:31:05 - End Time 2025-01-24 20:31:05 [2025-01-24 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322112', 'tblTempUsageDetail_20' ) start [2025-01-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322112', 'tblTempUsageDetail_20' ) end [2025-01-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322112', 'tblTempVendorCDR_20' ) start [2025-01-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322112', 'tblTempVendorCDR_20' ) end [2025-01-24 20:31:19] Production.INFO: ProcessCDR(1,14322112,1,1,2) [2025-01-24 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322112', 'tblTempUsageDetail_20' ) start [2025-01-24 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322112', 'tblTempUsageDetail_20' ) end [2025-01-24 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:31:23] Production.INFO: ==30365== Releasing lock... [2025-01-24 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:31:23] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:32:06 [end_date_ymd] => 2025-01-24 20:32:06 [RateCDR] => 1 ) [2025-01-24 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:32:06' and `end` < '2025-01-24 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:32:19] Production.INFO: count ==4431 [2025-01-24 20:32:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:32:06 - End Time 2025-01-24 20:32:06 [2025-01-24 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322117', 'tblTempUsageDetail_20' ) start [2025-01-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322117', 'tblTempUsageDetail_20' ) end [2025-01-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322117', 'tblTempVendorCDR_20' ) start [2025-01-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322117', 'tblTempVendorCDR_20' ) end [2025-01-24 20:32:20] Production.INFO: ProcessCDR(1,14322117,1,1,2) [2025-01-24 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322117', 'tblTempUsageDetail_20' ) start [2025-01-24 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322117', 'tblTempUsageDetail_20' ) end [2025-01-24 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:32:25] Production.INFO: ==30440== Releasing lock... [2025-01-24 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:32:25] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:33:05 [end_date_ymd] => 2025-01-24 20:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:33:05' and `end` < '2025-01-24 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-24 20:33:20] Production.INFO: count ==4439 [2025-01-24 20:33:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:33:05 - End Time 2025-01-24 20:33:05 [2025-01-24 20:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322122', 'tblTempUsageDetail_20' ) start [2025-01-24 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322122', 'tblTempUsageDetail_20' ) end [2025-01-24 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322122', 'tblTempVendorCDR_20' ) start [2025-01-24 20:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322122', 'tblTempVendorCDR_20' ) end [2025-01-24 20:33:22] Production.INFO: ProcessCDR(1,14322122,1,1,2) [2025-01-24 20:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322122', 'tblTempUsageDetail_20' ) start [2025-01-24 20:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322122', 'tblTempUsageDetail_20' ) end [2025-01-24 20:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:33:27] Production.INFO: ==30532== Releasing lock... [2025-01-24 20:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:33:27] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:34:06 [end_date_ymd] => 2025-01-24 20:34:06 [RateCDR] => 1 ) [2025-01-24 20: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-24 17:34:06' and `end` < '2025-01-24 20: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-24 20:34:19] Production.INFO: count ==4440 [2025-01-24 20:34:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:34:06 - End Time 2025-01-24 20:34:06 [2025-01-24 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322127', 'tblTempUsageDetail_20' ) start [2025-01-24 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322127', 'tblTempUsageDetail_20' ) end [2025-01-24 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322127', 'tblTempVendorCDR_20' ) start [2025-01-24 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322127', 'tblTempVendorCDR_20' ) end [2025-01-24 20:34:20] Production.INFO: ProcessCDR(1,14322127,1,1,2) [2025-01-24 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322127', 'tblTempUsageDetail_20' ) start [2025-01-24 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322127', 'tblTempUsageDetail_20' ) end [2025-01-24 20:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:34:25] Production.INFO: ==30639== Releasing lock... [2025-01-24 20:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:34:25] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:35:06 [end_date_ymd] => 2025-01-24 20:35:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:35:06' and `end` < '2025-01-24 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-24 20:35:20] Production.INFO: count ==4434 [2025-01-24 20:35:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:35:06 - End Time 2025-01-24 20:35:06 [2025-01-24 20:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322132', 'tblTempUsageDetail_20' ) start [2025-01-24 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322132', 'tblTempUsageDetail_20' ) end [2025-01-24 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322132', 'tblTempVendorCDR_20' ) start [2025-01-24 20:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322132', 'tblTempVendorCDR_20' ) end [2025-01-24 20:35:22] Production.INFO: ProcessCDR(1,14322132,1,1,2) [2025-01-24 20:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322132', 'tblTempUsageDetail_20' ) start [2025-01-24 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322132', 'tblTempUsageDetail_20' ) end [2025-01-24 20:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:35:25] Production.INFO: ==30768== Releasing lock... [2025-01-24 20:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:35:25] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:36:06 [end_date_ymd] => 2025-01-24 20:36:06 [RateCDR] => 1 ) [2025-01-24 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:36:06' and `end` < '2025-01-24 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:36:21] Production.INFO: count ==4425 [2025-01-24 20:36:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:36:06 - End Time 2025-01-24 20:36:06 [2025-01-24 20:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322137', 'tblTempUsageDetail_20' ) start [2025-01-24 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322137', 'tblTempUsageDetail_20' ) end [2025-01-24 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322137', 'tblTempVendorCDR_20' ) start [2025-01-24 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322137', 'tblTempVendorCDR_20' ) end [2025-01-24 20:36:23] Production.INFO: ProcessCDR(1,14322137,1,1,2) [2025-01-24 20:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322137', 'tblTempUsageDetail_20' ) start [2025-01-24 20:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322137', 'tblTempUsageDetail_20' ) end [2025-01-24 20:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:36:26] Production.INFO: ==30884== Releasing lock... [2025-01-24 20:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:36:26] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:37:06 [end_date_ymd] => 2025-01-24 20:37:06 [RateCDR] => 1 ) [2025-01-24 20: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-24 17:37:06' and `end` < '2025-01-24 20: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-24 20:37:19] Production.INFO: count ==4413 [2025-01-24 20:37:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:37:06 - End Time 2025-01-24 20:37:06 [2025-01-24 20:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322142', 'tblTempUsageDetail_20' ) start [2025-01-24 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322142', 'tblTempUsageDetail_20' ) end [2025-01-24 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322142', 'tblTempVendorCDR_20' ) start [2025-01-24 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322142', 'tblTempVendorCDR_20' ) end [2025-01-24 20:37:21] Production.INFO: ProcessCDR(1,14322142,1,1,2) [2025-01-24 20:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322142', 'tblTempUsageDetail_20' ) start [2025-01-24 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322142', 'tblTempUsageDetail_20' ) end [2025-01-24 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:37:24] Production.INFO: ==30969== Releasing lock... [2025-01-24 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:37:24] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:38:05 [end_date_ymd] => 2025-01-24 20:38:05 [RateCDR] => 1 ) [2025-01-24 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:38:05' and `end` < '2025-01-24 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:38:20] Production.INFO: count ==4407 [2025-01-24 20:38:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:38:05 - End Time 2025-01-24 20:38:05 [2025-01-24 20:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322147', 'tblTempUsageDetail_20' ) start [2025-01-24 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322147', 'tblTempUsageDetail_20' ) end [2025-01-24 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322147', 'tblTempVendorCDR_20' ) start [2025-01-24 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322147', 'tblTempVendorCDR_20' ) end [2025-01-24 20:38:22] Production.INFO: ProcessCDR(1,14322147,1,1,2) [2025-01-24 20:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322147', 'tblTempUsageDetail_20' ) start [2025-01-24 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322147', 'tblTempUsageDetail_20' ) end [2025-01-24 20:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:38:25] Production.INFO: ==31062== Releasing lock... [2025-01-24 20:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:38:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-24 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:39:06 [end_date_ymd] => 2025-01-24 20:39:06 [RateCDR] => 1 ) [2025-01-24 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:39:06' and `end` < '2025-01-24 20:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:39:25] Production.INFO: count ==4408 [2025-01-24 20:39:26] Production.ERROR: pbx CDR StartTime 2025-01-24 17:39:06 - End Time 2025-01-24 20:39:06 [2025-01-24 20:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322152', 'tblTempUsageDetail_20' ) start [2025-01-24 20:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322152', 'tblTempUsageDetail_20' ) end [2025-01-24 20:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322152', 'tblTempVendorCDR_20' ) start [2025-01-24 20:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322152', 'tblTempVendorCDR_20' ) end [2025-01-24 20:39:26] Production.INFO: ProcessCDR(1,14322152,1,1,2) [2025-01-24 20:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322152', 'tblTempUsageDetail_20' ) start [2025-01-24 20:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322152', 'tblTempUsageDetail_20' ) end [2025-01-24 20:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:39:31] Production.INFO: ==31151== Releasing lock... [2025-01-24 20:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:39:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-24 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:40:06 [end_date_ymd] => 2025-01-24 20:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:40:06' and `end` < '2025-01-24 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-24 20:40:24] Production.INFO: count ==4409 [2025-01-24 20:40:26] Production.ERROR: pbx CDR StartTime 2025-01-24 17:40:06 - End Time 2025-01-24 20:40:06 [2025-01-24 20:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322158', 'tblTempUsageDetail_20' ) start [2025-01-24 20:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322158', 'tblTempUsageDetail_20' ) end [2025-01-24 20:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322158', 'tblTempVendorCDR_20' ) start [2025-01-24 20:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322158', 'tblTempVendorCDR_20' ) end [2025-01-24 20:40:26] Production.INFO: ProcessCDR(1,14322158,1,1,2) [2025-01-24 20:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322158', 'tblTempUsageDetail_20' ) start [2025-01-24 20:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322158', 'tblTempUsageDetail_20' ) end [2025-01-24 20:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:40:29] Production.INFO: ==31239== Releasing lock... [2025-01-24 20:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:40:29] Production.INFO: 61 MB #Memory Used# [2025-01-24 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:41:06 [end_date_ymd] => 2025-01-24 20:41:06 [RateCDR] => 1 ) [2025-01-24 20: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-24 17:41:06' and `end` < '2025-01-24 20: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-24 20:41:22] Production.INFO: count ==4318 [2025-01-24 20:41:23] Production.ERROR: pbx CDR StartTime 2025-01-24 17:41:06 - End Time 2025-01-24 20:41:06 [2025-01-24 20:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322163', 'tblTempUsageDetail_20' ) start [2025-01-24 20:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322163', 'tblTempUsageDetail_20' ) end [2025-01-24 20:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322163', 'tblTempVendorCDR_20' ) start [2025-01-24 20:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322163', 'tblTempVendorCDR_20' ) end [2025-01-24 20:41:23] Production.INFO: ProcessCDR(1,14322163,1,1,2) [2025-01-24 20:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322163', 'tblTempUsageDetail_20' ) start [2025-01-24 20:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322163', 'tblTempUsageDetail_20' ) end [2025-01-24 20:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:41:26] Production.INFO: ==31332== Releasing lock... [2025-01-24 20:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:41:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-24 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:42:05 [end_date_ymd] => 2025-01-24 20:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:42:05' and `end` < '2025-01-24 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-24 20:42:19] Production.INFO: count ==4306 [2025-01-24 20:42:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:42:05 - End Time 2025-01-24 20:42:05 [2025-01-24 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322168', 'tblTempUsageDetail_20' ) start [2025-01-24 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322168', 'tblTempUsageDetail_20' ) end [2025-01-24 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322168', 'tblTempVendorCDR_20' ) start [2025-01-24 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322168', 'tblTempVendorCDR_20' ) end [2025-01-24 20:42:20] Production.INFO: ProcessCDR(1,14322168,1,1,2) [2025-01-24 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322168', 'tblTempUsageDetail_20' ) start [2025-01-24 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322168', 'tblTempUsageDetail_20' ) end [2025-01-24 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:42:23] Production.INFO: ==31420== Releasing lock... [2025-01-24 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:42:23] Production.INFO: 60 MB #Memory Used# [2025-01-24 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:43:05 [end_date_ymd] => 2025-01-24 20:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:43:05' and `end` < '2025-01-24 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-24 20:43:18] Production.INFO: count ==4288 [2025-01-24 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:43:05 - End Time 2025-01-24 20:43:05 [2025-01-24 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322173', 'tblTempUsageDetail_20' ) start [2025-01-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322173', 'tblTempUsageDetail_20' ) end [2025-01-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322173', 'tblTempVendorCDR_20' ) start [2025-01-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322173', 'tblTempVendorCDR_20' ) end [2025-01-24 20:43:19] Production.INFO: ProcessCDR(1,14322173,1,1,2) [2025-01-24 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322173', 'tblTempUsageDetail_20' ) start [2025-01-24 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322173', 'tblTempUsageDetail_20' ) end [2025-01-24 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:43:24] Production.INFO: ==31507== Releasing lock... [2025-01-24 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:43:24] Production.INFO: 60 MB #Memory Used# [2025-01-24 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:44:05 [end_date_ymd] => 2025-01-24 20:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:44:05' and `end` < '2025-01-24 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-24 20:44:18] Production.INFO: count ==4279 [2025-01-24 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:44:05 - End Time 2025-01-24 20:44:05 [2025-01-24 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322178', 'tblTempUsageDetail_20' ) start [2025-01-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322178', 'tblTempUsageDetail_20' ) end [2025-01-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322178', 'tblTempVendorCDR_20' ) start [2025-01-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322178', 'tblTempVendorCDR_20' ) end [2025-01-24 20:44:19] Production.INFO: ProcessCDR(1,14322178,1,1,2) [2025-01-24 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322178', 'tblTempUsageDetail_20' ) start [2025-01-24 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322178', 'tblTempUsageDetail_20' ) end [2025-01-24 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:44:24] Production.INFO: ==31596== Releasing lock... [2025-01-24 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:44:24] Production.INFO: 60 MB #Memory Used# [2025-01-24 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:45:05 [end_date_ymd] => 2025-01-24 20:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:45:05' and `end` < '2025-01-24 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-24 20:45:18] Production.INFO: count ==4270 [2025-01-24 20:45:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:45:05 - End Time 2025-01-24 20:45:05 [2025-01-24 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322183', 'tblTempUsageDetail_20' ) start [2025-01-24 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322183', 'tblTempUsageDetail_20' ) end [2025-01-24 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322183', 'tblTempVendorCDR_20' ) start [2025-01-24 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322183', 'tblTempVendorCDR_20' ) end [2025-01-24 20:45:20] Production.INFO: ProcessCDR(1,14322183,1,1,2) [2025-01-24 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322183', 'tblTempUsageDetail_20' ) start [2025-01-24 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322183', 'tblTempUsageDetail_20' ) end [2025-01-24 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:45:23] Production.INFO: ==31726== Releasing lock... [2025-01-24 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:45:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:46:05 [end_date_ymd] => 2025-01-24 20:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:46:05' and `end` < '2025-01-24 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-24 20:46:18] Production.INFO: count ==4265 [2025-01-24 20:46:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:46:05 - End Time 2025-01-24 20:46:05 [2025-01-24 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322188', 'tblTempUsageDetail_20' ) start [2025-01-24 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322188', 'tblTempUsageDetail_20' ) end [2025-01-24 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322188', 'tblTempVendorCDR_20' ) start [2025-01-24 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322188', 'tblTempVendorCDR_20' ) end [2025-01-24 20:46:20] Production.INFO: ProcessCDR(1,14322188,1,1,2) [2025-01-24 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322188', 'tblTempUsageDetail_20' ) start [2025-01-24 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322188', 'tblTempUsageDetail_20' ) end [2025-01-24 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:46:23] Production.INFO: ==31817== Releasing lock... [2025-01-24 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:46:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:47:05 [end_date_ymd] => 2025-01-24 20:47:05 [RateCDR] => 1 ) [2025-01-24 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:47:05' and `end` < '2025-01-24 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:47:21] Production.INFO: count ==4260 [2025-01-24 20:47:22] Production.ERROR: pbx CDR StartTime 2025-01-24 17:47:05 - End Time 2025-01-24 20:47:05 [2025-01-24 20:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322193', 'tblTempUsageDetail_20' ) start [2025-01-24 20:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322193', 'tblTempUsageDetail_20' ) end [2025-01-24 20:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322193', 'tblTempVendorCDR_20' ) start [2025-01-24 20:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322193', 'tblTempVendorCDR_20' ) end [2025-01-24 20:47:23] Production.INFO: ProcessCDR(1,14322193,1,1,2) [2025-01-24 20:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322193', 'tblTempUsageDetail_20' ) start [2025-01-24 20:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322193', 'tblTempUsageDetail_20' ) end [2025-01-24 20:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:47:26] Production.INFO: ==31909== Releasing lock... [2025-01-24 20:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:47:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:48:05 [end_date_ymd] => 2025-01-24 20:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:48:05' and `end` < '2025-01-24 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-24 20:48:18] Production.INFO: count ==4252 [2025-01-24 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:48:05 - End Time 2025-01-24 20:48:05 [2025-01-24 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322198', 'tblTempUsageDetail_20' ) start [2025-01-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322198', 'tblTempUsageDetail_20' ) end [2025-01-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322198', 'tblTempVendorCDR_20' ) start [2025-01-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322198', 'tblTempVendorCDR_20' ) end [2025-01-24 20:48:19] Production.INFO: ProcessCDR(1,14322198,1,1,2) [2025-01-24 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322198', 'tblTempUsageDetail_20' ) start [2025-01-24 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322198', 'tblTempUsageDetail_20' ) end [2025-01-24 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:48:23] Production.INFO: ==32001== Releasing lock... [2025-01-24 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:48:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:49:05 [end_date_ymd] => 2025-01-24 20:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:49:05' and `end` < '2025-01-24 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-24 20:49:18] Production.INFO: count ==4249 [2025-01-24 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:49:05 - End Time 2025-01-24 20:49:05 [2025-01-24 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322203', 'tblTempUsageDetail_20' ) start [2025-01-24 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322203', 'tblTempUsageDetail_20' ) end [2025-01-24 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322203', 'tblTempVendorCDR_20' ) start [2025-01-24 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322203', 'tblTempVendorCDR_20' ) end [2025-01-24 20:49:19] Production.INFO: ProcessCDR(1,14322203,1,1,2) [2025-01-24 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322203', 'tblTempUsageDetail_20' ) start [2025-01-24 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322203', 'tblTempUsageDetail_20' ) end [2025-01-24 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:49:24] Production.INFO: ==32087== Releasing lock... [2025-01-24 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:49:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:50:06 [end_date_ymd] => 2025-01-24 20:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 17:50:06' and `end` < '2025-01-24 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-24 20:50:19] Production.INFO: count ==4246 [2025-01-24 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:50:06 - End Time 2025-01-24 20:50:06 [2025-01-24 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322209', 'tblTempUsageDetail_20' ) start [2025-01-24 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322209', 'tblTempUsageDetail_20' ) end [2025-01-24 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322209', 'tblTempVendorCDR_20' ) start [2025-01-24 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322209', 'tblTempVendorCDR_20' ) end [2025-01-24 20:50:20] Production.INFO: ProcessCDR(1,14322209,1,1,2) [2025-01-24 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322209', 'tblTempUsageDetail_20' ) start [2025-01-24 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322209', 'tblTempUsageDetail_20' ) end [2025-01-24 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:50:25] Production.INFO: ==32184== Releasing lock... [2025-01-24 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:50:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-24 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:51:05 [end_date_ymd] => 2025-01-24 20:51:05 [RateCDR] => 1 ) [2025-01-24 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:51:05' and `end` < '2025-01-24 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:51:18] Production.INFO: count ==4152 [2025-01-24 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:51:05 - End Time 2025-01-24 20:51:05 [2025-01-24 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322214', 'tblTempUsageDetail_20' ) start [2025-01-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322214', 'tblTempUsageDetail_20' ) end [2025-01-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322214', 'tblTempVendorCDR_20' ) start [2025-01-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322214', 'tblTempVendorCDR_20' ) end [2025-01-24 20:51:19] Production.INFO: ProcessCDR(1,14322214,1,1,2) [2025-01-24 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322214', 'tblTempUsageDetail_20' ) start [2025-01-24 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322214', 'tblTempUsageDetail_20' ) end [2025-01-24 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:51:22] Production.INFO: ==32303== Releasing lock... [2025-01-24 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:51:22] Production.INFO: 59 MB #Memory Used# [2025-01-24 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:52:05 [end_date_ymd] => 2025-01-24 20:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:52:05' and `end` < '2025-01-24 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-24 20:52:18] Production.INFO: count ==4147 [2025-01-24 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:52:05 - End Time 2025-01-24 20:52:05 [2025-01-24 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322219', 'tblTempUsageDetail_20' ) start [2025-01-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322219', 'tblTempUsageDetail_20' ) end [2025-01-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322219', 'tblTempVendorCDR_20' ) start [2025-01-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322219', 'tblTempVendorCDR_20' ) end [2025-01-24 20:52:19] Production.INFO: ProcessCDR(1,14322219,1,1,2) [2025-01-24 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322219', 'tblTempUsageDetail_20' ) start [2025-01-24 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322219', 'tblTempUsageDetail_20' ) end [2025-01-24 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:52:22] Production.INFO: ==32404== Releasing lock... [2025-01-24 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:52:22] Production.INFO: 59 MB #Memory Used# [2025-01-24 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:53:05 [end_date_ymd] => 2025-01-24 20:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:53:05' and `end` < '2025-01-24 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-24 20:53:18] Production.INFO: count ==4129 [2025-01-24 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:53:05 - End Time 2025-01-24 20:53:05 [2025-01-24 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322224', 'tblTempUsageDetail_20' ) start [2025-01-24 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322224', 'tblTempUsageDetail_20' ) end [2025-01-24 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322224', 'tblTempVendorCDR_20' ) start [2025-01-24 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322224', 'tblTempVendorCDR_20' ) end [2025-01-24 20:53:20] Production.INFO: ProcessCDR(1,14322224,1,1,2) [2025-01-24 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322224', 'tblTempUsageDetail_20' ) start [2025-01-24 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322224', 'tblTempUsageDetail_20' ) end [2025-01-24 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:53:23] Production.INFO: ==32524== Releasing lock... [2025-01-24 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:53:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:54:05 [end_date_ymd] => 2025-01-24 20:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:54:05' and `end` < '2025-01-24 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-24 20:54:18] Production.INFO: count ==4125 [2025-01-24 20:54:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:54:05 - End Time 2025-01-24 20:54:05 [2025-01-24 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322229', 'tblTempUsageDetail_20' ) start [2025-01-24 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322229', 'tblTempUsageDetail_20' ) end [2025-01-24 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322229', 'tblTempVendorCDR_20' ) start [2025-01-24 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322229', 'tblTempVendorCDR_20' ) end [2025-01-24 20:54:20] Production.INFO: ProcessCDR(1,14322229,1,1,2) [2025-01-24 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322229', 'tblTempUsageDetail_20' ) start [2025-01-24 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322229', 'tblTempUsageDetail_20' ) end [2025-01-24 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:54:23] Production.INFO: ==32620== Releasing lock... [2025-01-24 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:54:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:55:05 [end_date_ymd] => 2025-01-24 20:55:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:55:05' and `end` < '2025-01-24 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-24 20:55:18] Production.INFO: count ==4119 [2025-01-24 20:55:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:55:05 - End Time 2025-01-24 20:55:05 [2025-01-24 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322234', 'tblTempUsageDetail_20' ) start [2025-01-24 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322234', 'tblTempUsageDetail_20' ) end [2025-01-24 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322234', 'tblTempVendorCDR_20' ) start [2025-01-24 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322234', 'tblTempVendorCDR_20' ) end [2025-01-24 20:55:20] Production.INFO: ProcessCDR(1,14322234,1,1,2) [2025-01-24 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322234', 'tblTempUsageDetail_20' ) start [2025-01-24 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322234', 'tblTempUsageDetail_20' ) end [2025-01-24 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:55:23] Production.INFO: ==32732== Releasing lock... [2025-01-24 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:55:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:56:05 [end_date_ymd] => 2025-01-24 20:56:05 [RateCDR] => 1 ) [2025-01-24 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:56:05' and `end` < '2025-01-24 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:56:18] Production.INFO: count ==4115 [2025-01-24 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:56:05 - End Time 2025-01-24 20:56:05 [2025-01-24 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322239', 'tblTempUsageDetail_20' ) start [2025-01-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322239', 'tblTempUsageDetail_20' ) end [2025-01-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322239', 'tblTempVendorCDR_20' ) start [2025-01-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322239', 'tblTempVendorCDR_20' ) end [2025-01-24 20:56:19] Production.INFO: ProcessCDR(1,14322239,1,1,2) [2025-01-24 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322239', 'tblTempUsageDetail_20' ) start [2025-01-24 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322239', 'tblTempUsageDetail_20' ) end [2025-01-24 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:56:24] Production.INFO: ==388== Releasing lock... [2025-01-24 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:56:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:57:05 [end_date_ymd] => 2025-01-24 20:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:57:05' and `end` < '2025-01-24 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-24 20:57:18] Production.INFO: count ==4118 [2025-01-24 20:57:20] Production.ERROR: pbx CDR StartTime 2025-01-24 17:57:05 - End Time 2025-01-24 20:57:05 [2025-01-24 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322244', 'tblTempUsageDetail_20' ) start [2025-01-24 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322244', 'tblTempUsageDetail_20' ) end [2025-01-24 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322244', 'tblTempVendorCDR_20' ) start [2025-01-24 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322244', 'tblTempVendorCDR_20' ) end [2025-01-24 20:57:20] Production.INFO: ProcessCDR(1,14322244,1,1,2) [2025-01-24 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322244', 'tblTempUsageDetail_20' ) start [2025-01-24 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322244', 'tblTempUsageDetail_20' ) end [2025-01-24 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:57:23] Production.INFO: ==511== Releasing lock... [2025-01-24 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:57:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:58:05 [end_date_ymd] => 2025-01-24 20:58:05 [RateCDR] => 1 ) [2025-01-24 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 17:58:05' and `end` < '2025-01-24 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 20:58:18] Production.INFO: count ==4117 [2025-01-24 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-24 17:58:05 - End Time 2025-01-24 20:58:05 [2025-01-24 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322249', 'tblTempUsageDetail_20' ) start [2025-01-24 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322249', 'tblTempUsageDetail_20' ) end [2025-01-24 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322249', 'tblTempVendorCDR_20' ) start [2025-01-24 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322249', 'tblTempVendorCDR_20' ) end [2025-01-24 20:58:19] Production.INFO: ProcessCDR(1,14322249,1,1,2) [2025-01-24 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322249', 'tblTempUsageDetail_20' ) start [2025-01-24 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322249', 'tblTempUsageDetail_20' ) end [2025-01-24 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:58:23] Production.INFO: ==610== Releasing lock... [2025-01-24 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:58:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 17:59:05 [end_date_ymd] => 2025-01-24 20:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 17:59:05' and `end` < '2025-01-24 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-24 20:59:20] Production.INFO: count ==4117 [2025-01-24 20:59:21] Production.ERROR: pbx CDR StartTime 2025-01-24 17:59:05 - End Time 2025-01-24 20:59:05 [2025-01-24 20:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322254', 'tblTempUsageDetail_20' ) start [2025-01-24 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322254', 'tblTempUsageDetail_20' ) end [2025-01-24 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322254', 'tblTempVendorCDR_20' ) start [2025-01-24 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322254', 'tblTempVendorCDR_20' ) end [2025-01-24 20:59:21] Production.INFO: ProcessCDR(1,14322254,1,1,2) [2025-01-24 20:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 20:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322254', 'tblTempUsageDetail_20' ) start [2025-01-24 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322254', 'tblTempUsageDetail_20' ) end [2025-01-24 20:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 20:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 20:59:25] Production.INFO: ==754== Releasing lock... [2025-01-24 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 20:59:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:00:06 [end_date_ymd] => 2025-01-24 21:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 18:00:06' and `end` < '2025-01-24 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-24 21:00:21] Production.INFO: count ==4111 [2025-01-24 21:00:22] Production.ERROR: pbx CDR StartTime 2025-01-24 18:00:06 - End Time 2025-01-24 21:00:06 [2025-01-24 21:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322260', 'tblTempUsageDetail_20' ) start [2025-01-24 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322260', 'tblTempUsageDetail_20' ) end [2025-01-24 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322260', 'tblTempVendorCDR_20' ) start [2025-01-24 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322260', 'tblTempVendorCDR_20' ) end [2025-01-24 21:00:22] Production.INFO: ProcessCDR(1,14322260,1,1,2) [2025-01-24 21:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322260', 'tblTempUsageDetail_20' ) start [2025-01-24 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322260', 'tblTempUsageDetail_20' ) end [2025-01-24 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:00:25] Production.INFO: ==889== Releasing lock... [2025-01-24 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:00:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-24 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:01:05 [end_date_ymd] => 2025-01-24 21:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:01:05' and `end` < '2025-01-24 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-24 21:01:18] Production.INFO: count ==3998 [2025-01-24 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:01:05 - End Time 2025-01-24 21:01:05 [2025-01-24 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322265', 'tblTempUsageDetail_20' ) start [2025-01-24 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322265', 'tblTempUsageDetail_20' ) end [2025-01-24 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322265', 'tblTempVendorCDR_20' ) start [2025-01-24 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322265', 'tblTempVendorCDR_20' ) end [2025-01-24 21:01:20] Production.INFO: ProcessCDR(1,14322265,1,1,2) [2025-01-24 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322265', 'tblTempUsageDetail_20' ) start [2025-01-24 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322265', 'tblTempUsageDetail_20' ) end [2025-01-24 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:01:23] Production.INFO: ==1028== Releasing lock... [2025-01-24 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:01:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:02:06 [end_date_ymd] => 2025-01-24 21:02:06 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:02:06' and `end` < '2025-01-24 21: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-24 21:02:20] Production.INFO: count ==3994 [2025-01-24 21:02:22] Production.ERROR: pbx CDR StartTime 2025-01-24 18:02:06 - End Time 2025-01-24 21:02:06 [2025-01-24 21:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322270', 'tblTempUsageDetail_20' ) start [2025-01-24 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322270', 'tblTempUsageDetail_20' ) end [2025-01-24 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322270', 'tblTempVendorCDR_20' ) start [2025-01-24 21:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322270', 'tblTempVendorCDR_20' ) end [2025-01-24 21:02:22] Production.INFO: ProcessCDR(1,14322270,1,1,2) [2025-01-24 21:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322270', 'tblTempUsageDetail_20' ) start [2025-01-24 21:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322270', 'tblTempUsageDetail_20' ) end [2025-01-24 21:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:02:25] Production.INFO: ==1134== Releasing lock... [2025-01-24 21:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:02:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:03:05 [end_date_ymd] => 2025-01-24 21:03:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:03:05' and `end` < '2025-01-24 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-24 21:03:18] Production.INFO: count ==3989 [2025-01-24 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:03:05 - End Time 2025-01-24 21:03:05 [2025-01-24 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322275', 'tblTempUsageDetail_20' ) start [2025-01-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322275', 'tblTempUsageDetail_20' ) end [2025-01-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322275', 'tblTempVendorCDR_20' ) start [2025-01-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322275', 'tblTempVendorCDR_20' ) end [2025-01-24 21:03:19] Production.INFO: ProcessCDR(1,14322275,1,1,2) [2025-01-24 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322275', 'tblTempUsageDetail_20' ) start [2025-01-24 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322275', 'tblTempUsageDetail_20' ) end [2025-01-24 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:03:23] Production.INFO: ==1261== Releasing lock... [2025-01-24 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:03:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:04:07 [end_date_ymd] => 2025-01-24 21:04:07 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:04:07' and `end` < '2025-01-24 21: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-24 21:04:20] Production.INFO: count ==3988 [2025-01-24 21:04:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:04:07 - End Time 2025-01-24 21:04:07 [2025-01-24 21:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322280', 'tblTempUsageDetail_20' ) start [2025-01-24 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322280', 'tblTempUsageDetail_20' ) end [2025-01-24 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322280', 'tblTempVendorCDR_20' ) start [2025-01-24 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322280', 'tblTempVendorCDR_20' ) end [2025-01-24 21:04:21] Production.INFO: ProcessCDR(1,14322280,1,1,2) [2025-01-24 21:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322280', 'tblTempUsageDetail_20' ) start [2025-01-24 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322280', 'tblTempUsageDetail_20' ) end [2025-01-24 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:04:24] Production.INFO: ==1370== Releasing lock... [2025-01-24 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:04:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:05:05 [end_date_ymd] => 2025-01-24 21:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:05:05' and `end` < '2025-01-24 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-24 21:05:18] Production.INFO: count ==3990 [2025-01-24 21:05:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:05:05 - End Time 2025-01-24 21:05:05 [2025-01-24 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322285', 'tblTempUsageDetail_20' ) start [2025-01-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322285', 'tblTempUsageDetail_20' ) end [2025-01-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322285', 'tblTempVendorCDR_20' ) start [2025-01-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322285', 'tblTempVendorCDR_20' ) end [2025-01-24 21:05:19] Production.INFO: ProcessCDR(1,14322285,1,1,2) [2025-01-24 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322285', 'tblTempUsageDetail_20' ) start [2025-01-24 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322285', 'tblTempUsageDetail_20' ) end [2025-01-24 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:05:22] Production.INFO: ==1480== Releasing lock... [2025-01-24 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:05:22] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:06:05 [end_date_ymd] => 2025-01-24 21:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:06:05' and `end` < '2025-01-24 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-24 21:06:18] Production.INFO: count ==3987 [2025-01-24 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:06:05 - End Time 2025-01-24 21:06:05 [2025-01-24 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322290', 'tblTempUsageDetail_20' ) start [2025-01-24 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322290', 'tblTempUsageDetail_20' ) end [2025-01-24 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322290', 'tblTempVendorCDR_20' ) start [2025-01-24 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322290', 'tblTempVendorCDR_20' ) end [2025-01-24 21:06:20] Production.INFO: ProcessCDR(1,14322290,1,1,2) [2025-01-24 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322290', 'tblTempUsageDetail_20' ) start [2025-01-24 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322290', 'tblTempUsageDetail_20' ) end [2025-01-24 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:06:23] Production.INFO: ==1621== Releasing lock... [2025-01-24 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:06:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:07:06 [end_date_ymd] => 2025-01-24 21:07:06 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:07:06' and `end` < '2025-01-24 21: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-24 21:07:18] Production.INFO: count ==3984 [2025-01-24 21:07:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:07:06 - End Time 2025-01-24 21:07:06 [2025-01-24 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322295', 'tblTempUsageDetail_20' ) start [2025-01-24 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322295', 'tblTempUsageDetail_20' ) end [2025-01-24 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322295', 'tblTempVendorCDR_20' ) start [2025-01-24 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322295', 'tblTempVendorCDR_20' ) end [2025-01-24 21:07:20] Production.INFO: ProcessCDR(1,14322295,1,1,2) [2025-01-24 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322295', 'tblTempUsageDetail_20' ) start [2025-01-24 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322295', 'tblTempUsageDetail_20' ) end [2025-01-24 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:07:23] Production.INFO: ==1733== Releasing lock... [2025-01-24 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:07:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:08:05 [end_date_ymd] => 2025-01-24 21:08:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:08:05' and `end` < '2025-01-24 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-24 21:08:20] Production.INFO: count ==3986 [2025-01-24 21:08:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:08:05 - End Time 2025-01-24 21:08:05 [2025-01-24 21:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322300', 'tblTempUsageDetail_20' ) start [2025-01-24 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322300', 'tblTempUsageDetail_20' ) end [2025-01-24 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322300', 'tblTempVendorCDR_20' ) start [2025-01-24 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322300', 'tblTempVendorCDR_20' ) end [2025-01-24 21:08:21] Production.INFO: ProcessCDR(1,14322300,1,1,2) [2025-01-24 21:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322300', 'tblTempUsageDetail_20' ) start [2025-01-24 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322300', 'tblTempUsageDetail_20' ) end [2025-01-24 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:08:24] Production.INFO: ==1827== Releasing lock... [2025-01-24 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:08:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:09:05 [end_date_ymd] => 2025-01-24 21:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:09:05' and `end` < '2025-01-24 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-24 21:09:18] Production.INFO: count ==3980 [2025-01-24 21:09:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:09:05 - End Time 2025-01-24 21:09:05 [2025-01-24 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322305', 'tblTempUsageDetail_20' ) start [2025-01-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322305', 'tblTempUsageDetail_20' ) end [2025-01-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322305', 'tblTempVendorCDR_20' ) start [2025-01-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322305', 'tblTempVendorCDR_20' ) end [2025-01-24 21:09:19] Production.INFO: ProcessCDR(1,14322305,1,1,2) [2025-01-24 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322305', 'tblTempUsageDetail_20' ) start [2025-01-24 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322305', 'tblTempUsageDetail_20' ) end [2025-01-24 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:09:22] Production.INFO: ==1914== Releasing lock... [2025-01-24 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:09:22] Production.INFO: 57.75 MB #Memory Used# [2025-01-24 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:10:05 [end_date_ymd] => 2025-01-24 21:10:05 [RateCDR] => 1 ) [2025-01-24 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:10:05' and `end` < '2025-01-24 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:10:18] Production.INFO: count ==3978 [2025-01-24 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:10:05 - End Time 2025-01-24 21:10:05 [2025-01-24 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322310', 'tblTempUsageDetail_20' ) start [2025-01-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322310', 'tblTempUsageDetail_20' ) end [2025-01-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322310', 'tblTempVendorCDR_20' ) start [2025-01-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322310', 'tblTempVendorCDR_20' ) end [2025-01-24 21:10:19] Production.INFO: ProcessCDR(1,14322310,1,1,2) [2025-01-24 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322310', 'tblTempUsageDetail_20' ) start [2025-01-24 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322310', 'tblTempUsageDetail_20' ) end [2025-01-24 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:10:24] Production.INFO: ==2002== Releasing lock... [2025-01-24 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:10:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-24 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:11:05 [end_date_ymd] => 2025-01-24 21:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:11:05' and `end` < '2025-01-24 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-24 21:11:18] Production.INFO: count ==3899 [2025-01-24 21:11:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:11:05 - End Time 2025-01-24 21:11:05 [2025-01-24 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322316', 'tblTempUsageDetail_20' ) start [2025-01-24 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322316', 'tblTempUsageDetail_20' ) end [2025-01-24 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322316', 'tblTempVendorCDR_20' ) start [2025-01-24 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322316', 'tblTempVendorCDR_20' ) end [2025-01-24 21:11:20] Production.INFO: ProcessCDR(1,14322316,1,1,2) [2025-01-24 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322316', 'tblTempUsageDetail_20' ) start [2025-01-24 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322316', 'tblTempUsageDetail_20' ) end [2025-01-24 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:11:23] Production.INFO: ==2092== Releasing lock... [2025-01-24 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:11:23] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:12:05 [end_date_ymd] => 2025-01-24 21:12:05 [RateCDR] => 1 ) [2025-01-24 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:12:05' and `end` < '2025-01-24 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:12:18] Production.INFO: count ==3900 [2025-01-24 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:12:05 - End Time 2025-01-24 21:12:05 [2025-01-24 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322321', 'tblTempUsageDetail_20' ) start [2025-01-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322321', 'tblTempUsageDetail_20' ) end [2025-01-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322321', 'tblTempVendorCDR_20' ) start [2025-01-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322321', 'tblTempVendorCDR_20' ) end [2025-01-24 21:12:19] Production.INFO: ProcessCDR(1,14322321,1,1,2) [2025-01-24 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322321', 'tblTempUsageDetail_20' ) start [2025-01-24 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322321', 'tblTempUsageDetail_20' ) end [2025-01-24 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:12:24] Production.INFO: ==2173== Releasing lock... [2025-01-24 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:12:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-24 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:13:05 [end_date_ymd] => 2025-01-24 21:13:05 [RateCDR] => 1 ) [2025-01-24 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:13:05' and `end` < '2025-01-24 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:13:18] Production.INFO: count ==3898 [2025-01-24 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:13:05 - End Time 2025-01-24 21:13:05 [2025-01-24 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322326', 'tblTempUsageDetail_20' ) start [2025-01-24 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322326', 'tblTempUsageDetail_20' ) end [2025-01-24 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322326', 'tblTempVendorCDR_20' ) start [2025-01-24 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322326', 'tblTempVendorCDR_20' ) end [2025-01-24 21:13:20] Production.INFO: ProcessCDR(1,14322326,1,1,2) [2025-01-24 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322326', 'tblTempUsageDetail_20' ) start [2025-01-24 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322326', 'tblTempUsageDetail_20' ) end [2025-01-24 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:13:23] Production.INFO: ==2258== Releasing lock... [2025-01-24 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:13:23] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:14:05 [end_date_ymd] => 2025-01-24 21:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:14:05' and `end` < '2025-01-24 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-24 21:14:17] Production.INFO: count ==3894 [2025-01-24 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:14:05 - End Time 2025-01-24 21:14:05 [2025-01-24 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322331', 'tblTempUsageDetail_20' ) start [2025-01-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322331', 'tblTempUsageDetail_20' ) end [2025-01-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322331', 'tblTempVendorCDR_20' ) start [2025-01-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322331', 'tblTempVendorCDR_20' ) end [2025-01-24 21:14:19] Production.INFO: ProcessCDR(1,14322331,1,1,2) [2025-01-24 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322331', 'tblTempUsageDetail_20' ) start [2025-01-24 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322331', 'tblTempUsageDetail_20' ) end [2025-01-24 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:14:23] Production.INFO: ==2339== Releasing lock... [2025-01-24 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:14:23] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:15:05 [end_date_ymd] => 2025-01-24 21:15:05 [RateCDR] => 1 ) [2025-01-24 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:15:05' and `end` < '2025-01-24 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:15:22] Production.INFO: count ==3894 [2025-01-24 21:15:23] Production.ERROR: pbx CDR StartTime 2025-01-24 18:15:05 - End Time 2025-01-24 21:15:05 [2025-01-24 21:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322336', 'tblTempUsageDetail_20' ) start [2025-01-24 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322336', 'tblTempUsageDetail_20' ) end [2025-01-24 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322336', 'tblTempVendorCDR_20' ) start [2025-01-24 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322336', 'tblTempVendorCDR_20' ) end [2025-01-24 21:15:23] Production.INFO: ProcessCDR(1,14322336,1,1,2) [2025-01-24 21:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322336', 'tblTempUsageDetail_20' ) start [2025-01-24 21:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322336', 'tblTempUsageDetail_20' ) end [2025-01-24 21:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:15:27] Production.INFO: ==2414== Releasing lock... [2025-01-24 21:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:15:27] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:16:06 [end_date_ymd] => 2025-01-24 21:16:06 [RateCDR] => 1 ) [2025-01-24 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:16:06' and `end` < '2025-01-24 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:16:19] Production.INFO: count ==3888 [2025-01-24 21:16:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:16:06 - End Time 2025-01-24 21:16:06 [2025-01-24 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322341', 'tblTempUsageDetail_20' ) start [2025-01-24 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322341', 'tblTempUsageDetail_20' ) end [2025-01-24 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322341', 'tblTempVendorCDR_20' ) start [2025-01-24 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322341', 'tblTempVendorCDR_20' ) end [2025-01-24 21:16:20] Production.INFO: ProcessCDR(1,14322341,1,1,2) [2025-01-24 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322341', 'tblTempUsageDetail_20' ) start [2025-01-24 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322341', 'tblTempUsageDetail_20' ) end [2025-01-24 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:16:23] Production.INFO: ==2532== Releasing lock... [2025-01-24 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:16:23] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:17:06 [end_date_ymd] => 2025-01-24 21:17:06 [RateCDR] => 1 ) [2025-01-24 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:17:06' and `end` < '2025-01-24 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:17:20] Production.INFO: count ==3885 [2025-01-24 21:17:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:17:06 - End Time 2025-01-24 21:17:06 [2025-01-24 21:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322346', 'tblTempUsageDetail_20' ) start [2025-01-24 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322346', 'tblTempUsageDetail_20' ) end [2025-01-24 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322346', 'tblTempVendorCDR_20' ) start [2025-01-24 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322346', 'tblTempVendorCDR_20' ) end [2025-01-24 21:17:21] Production.INFO: ProcessCDR(1,14322346,1,1,2) [2025-01-24 21:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322346', 'tblTempUsageDetail_20' ) start [2025-01-24 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322346', 'tblTempUsageDetail_20' ) end [2025-01-24 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:17:24] Production.INFO: ==2613== Releasing lock... [2025-01-24 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:17:24] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:18:05 [end_date_ymd] => 2025-01-24 21:18:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:18:05' and `end` < '2025-01-24 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-24 21:18:18] Production.INFO: count ==3886 [2025-01-24 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:18:05 - End Time 2025-01-24 21:18:05 [2025-01-24 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322351', 'tblTempUsageDetail_20' ) start [2025-01-24 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322351', 'tblTempUsageDetail_20' ) end [2025-01-24 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322351', 'tblTempVendorCDR_20' ) start [2025-01-24 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322351', 'tblTempVendorCDR_20' ) end [2025-01-24 21:18:19] Production.INFO: ProcessCDR(1,14322351,1,1,2) [2025-01-24 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322351', 'tblTempUsageDetail_20' ) start [2025-01-24 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322351', 'tblTempUsageDetail_20' ) end [2025-01-24 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:18:23] Production.INFO: ==2690== Releasing lock... [2025-01-24 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:18:23] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:19:05 [end_date_ymd] => 2025-01-24 21:19:05 [RateCDR] => 1 ) [2025-01-24 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:19:05' and `end` < '2025-01-24 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:19:18] Production.INFO: count ==3888 [2025-01-24 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:19:05 - End Time 2025-01-24 21:19:05 [2025-01-24 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322356', 'tblTempUsageDetail_20' ) start [2025-01-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322356', 'tblTempUsageDetail_20' ) end [2025-01-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322356', 'tblTempVendorCDR_20' ) start [2025-01-24 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322356', 'tblTempVendorCDR_20' ) end [2025-01-24 21:19:19] Production.INFO: ProcessCDR(1,14322356,1,1,2) [2025-01-24 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322356', 'tblTempUsageDetail_20' ) start [2025-01-24 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322356', 'tblTempUsageDetail_20' ) end [2025-01-24 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:19:23] Production.INFO: ==2767== Releasing lock... [2025-01-24 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:19:23] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:20:05 [end_date_ymd] => 2025-01-24 21:20:05 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:20:05' and `end` < '2025-01-24 21: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-24 21:20:18] Production.INFO: count ==3884 [2025-01-24 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:20:05 - End Time 2025-01-24 21:20:05 [2025-01-24 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322361', 'tblTempUsageDetail_20' ) start [2025-01-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322361', 'tblTempUsageDetail_20' ) end [2025-01-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322361', 'tblTempVendorCDR_20' ) start [2025-01-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322361', 'tblTempVendorCDR_20' ) end [2025-01-24 21:20:19] Production.INFO: ProcessCDR(1,14322361,1,1,2) [2025-01-24 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322361', 'tblTempUsageDetail_20' ) start [2025-01-24 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322361', 'tblTempUsageDetail_20' ) end [2025-01-24 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:20:22] Production.INFO: ==2839== Releasing lock... [2025-01-24 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:20:22] Production.INFO: 57 MB #Memory Used# [2025-01-24 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:21:06 [end_date_ymd] => 2025-01-24 21:21:06 [RateCDR] => 1 ) [2025-01-24 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:21:06' and `end` < '2025-01-24 21:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:21:19] Production.INFO: count ==3803 [2025-01-24 21:21:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:21:06 - End Time 2025-01-24 21:21:06 [2025-01-24 21:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322367', 'tblTempUsageDetail_20' ) start [2025-01-24 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322367', 'tblTempUsageDetail_20' ) end [2025-01-24 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322367', 'tblTempVendorCDR_20' ) start [2025-01-24 21:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322367', 'tblTempVendorCDR_20' ) end [2025-01-24 21:21:21] Production.INFO: ProcessCDR(1,14322367,1,1,2) [2025-01-24 21:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322367', 'tblTempUsageDetail_20' ) start [2025-01-24 21:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322367', 'tblTempUsageDetail_20' ) end [2025-01-24 21:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:21:25] Production.INFO: ==2914== Releasing lock... [2025-01-24 21:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:21:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:22:05 [end_date_ymd] => 2025-01-24 21:22:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:22:05' and `end` < '2025-01-24 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-24 21:22:18] Production.INFO: count ==3798 [2025-01-24 21:22:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:22:05 - End Time 2025-01-24 21:22:05 [2025-01-24 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322372', 'tblTempUsageDetail_20' ) start [2025-01-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322372', 'tblTempUsageDetail_20' ) end [2025-01-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322372', 'tblTempVendorCDR_20' ) start [2025-01-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322372', 'tblTempVendorCDR_20' ) end [2025-01-24 21:22:19] Production.INFO: ProcessCDR(1,14322372,1,1,2) [2025-01-24 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322372', 'tblTempUsageDetail_20' ) start [2025-01-24 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322372', 'tblTempUsageDetail_20' ) end [2025-01-24 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:22:22] Production.INFO: ==2989== Releasing lock... [2025-01-24 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:22:22] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:23:05 [end_date_ymd] => 2025-01-24 21:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:23:05' and `end` < '2025-01-24 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-24 21:23:19] Production.INFO: count ==3803 [2025-01-24 21:23:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:23:05 - End Time 2025-01-24 21:23:05 [2025-01-24 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322377', 'tblTempUsageDetail_20' ) start [2025-01-24 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322377', 'tblTempUsageDetail_20' ) end [2025-01-24 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322377', 'tblTempVendorCDR_20' ) start [2025-01-24 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322377', 'tblTempVendorCDR_20' ) end [2025-01-24 21:23:20] Production.INFO: ProcessCDR(1,14322377,1,1,2) [2025-01-24 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322377', 'tblTempUsageDetail_20' ) start [2025-01-24 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322377', 'tblTempUsageDetail_20' ) end [2025-01-24 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:23:23] Production.INFO: ==3067== Releasing lock... [2025-01-24 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:23:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:24:06 [end_date_ymd] => 2025-01-24 21:24:06 [RateCDR] => 1 ) [2025-01-24 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-24 18:24:06' and `end` < '2025-01-24 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-24 21:24:19] Production.INFO: count ==3802 [2025-01-24 21:24:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:24:06 - End Time 2025-01-24 21:24:06 [2025-01-24 21:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322382', 'tblTempUsageDetail_20' ) start [2025-01-24 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322382', 'tblTempUsageDetail_20' ) end [2025-01-24 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322382', 'tblTempVendorCDR_20' ) start [2025-01-24 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322382', 'tblTempVendorCDR_20' ) end [2025-01-24 21:24:21] Production.INFO: ProcessCDR(1,14322382,1,1,2) [2025-01-24 21:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322382', 'tblTempUsageDetail_20' ) start [2025-01-24 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322382', 'tblTempUsageDetail_20' ) end [2025-01-24 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:24:24] Production.INFO: ==3139== Releasing lock... [2025-01-24 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:24:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:25:05 [end_date_ymd] => 2025-01-24 21:25:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:25:05' and `end` < '2025-01-24 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-24 21:25:18] Production.INFO: count ==3801 [2025-01-24 21:25:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:25:05 - End Time 2025-01-24 21:25:05 [2025-01-24 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322387', 'tblTempUsageDetail_20' ) start [2025-01-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322387', 'tblTempUsageDetail_20' ) end [2025-01-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322387', 'tblTempVendorCDR_20' ) start [2025-01-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322387', 'tblTempVendorCDR_20' ) end [2025-01-24 21:25:19] Production.INFO: ProcessCDR(1,14322387,1,1,2) [2025-01-24 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322387', 'tblTempUsageDetail_20' ) start [2025-01-24 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322387', 'tblTempUsageDetail_20' ) end [2025-01-24 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:25:22] Production.INFO: ==3210== Releasing lock... [2025-01-24 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:25:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-24 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:26:05 [end_date_ymd] => 2025-01-24 21:26:05 [RateCDR] => 1 ) [2025-01-24 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:26:05' and `end` < '2025-01-24 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:26:18] Production.INFO: count ==3801 [2025-01-24 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:26:05 - End Time 2025-01-24 21:26:05 [2025-01-24 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322392', 'tblTempUsageDetail_20' ) start [2025-01-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322392', 'tblTempUsageDetail_20' ) end [2025-01-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322392', 'tblTempVendorCDR_20' ) start [2025-01-24 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322392', 'tblTempVendorCDR_20' ) end [2025-01-24 21:26:19] Production.INFO: ProcessCDR(1,14322392,1,1,2) [2025-01-24 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322392', 'tblTempUsageDetail_20' ) start [2025-01-24 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322392', 'tblTempUsageDetail_20' ) end [2025-01-24 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:26:23] Production.INFO: ==3281== Releasing lock... [2025-01-24 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:26:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-24 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:27:05 [end_date_ymd] => 2025-01-24 21:27:05 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:27:05' and `end` < '2025-01-24 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-24 21:27:18] Production.INFO: count ==3798 [2025-01-24 21:27:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:27:05 - End Time 2025-01-24 21:27:05 [2025-01-24 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322397', 'tblTempUsageDetail_20' ) start [2025-01-24 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322397', 'tblTempUsageDetail_20' ) end [2025-01-24 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322397', 'tblTempVendorCDR_20' ) start [2025-01-24 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322397', 'tblTempVendorCDR_20' ) end [2025-01-24 21:27:20] Production.INFO: ProcessCDR(1,14322397,1,1,2) [2025-01-24 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322397', 'tblTempUsageDetail_20' ) start [2025-01-24 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322397', 'tblTempUsageDetail_20' ) end [2025-01-24 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:27:23] Production.INFO: ==3351== Releasing lock... [2025-01-24 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:27:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-24 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:28:05 [end_date_ymd] => 2025-01-24 21:28:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:28:05' and `end` < '2025-01-24 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-24 21:28:18] Production.INFO: count ==3800 [2025-01-24 21:28:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:28:05 - End Time 2025-01-24 21:28:05 [2025-01-24 21:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322402', 'tblTempUsageDetail_20' ) start [2025-01-24 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322402', 'tblTempUsageDetail_20' ) end [2025-01-24 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322402', 'tblTempVendorCDR_20' ) start [2025-01-24 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322402', 'tblTempVendorCDR_20' ) end [2025-01-24 21:28:20] Production.INFO: ProcessCDR(1,14322402,1,1,2) [2025-01-24 21:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322402', 'tblTempUsageDetail_20' ) start [2025-01-24 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322402', 'tblTempUsageDetail_20' ) end [2025-01-24 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:28:24] Production.INFO: ==3421== Releasing lock... [2025-01-24 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:28:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:29:05 [end_date_ymd] => 2025-01-24 21:29:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:29:05' and `end` < '2025-01-24 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-24 21:29:20] Production.INFO: count ==3798 [2025-01-24 21:29:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:29:05 - End Time 2025-01-24 21:29:05 [2025-01-24 21:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322407', 'tblTempUsageDetail_20' ) start [2025-01-24 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322407', 'tblTempUsageDetail_20' ) end [2025-01-24 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322407', 'tblTempVendorCDR_20' ) start [2025-01-24 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322407', 'tblTempVendorCDR_20' ) end [2025-01-24 21:29:21] Production.INFO: ProcessCDR(1,14322407,1,1,2) [2025-01-24 21:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322407', 'tblTempUsageDetail_20' ) start [2025-01-24 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322407', 'tblTempUsageDetail_20' ) end [2025-01-24 21:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:29:26] Production.INFO: ==3493== Releasing lock... [2025-01-24 21:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:29:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-24 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:30:06 [end_date_ymd] => 2025-01-24 21:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 18:30:06' and `end` < '2025-01-24 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-24 21:30:19] Production.INFO: count ==3794 [2025-01-24 21:30:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:30:06 - End Time 2025-01-24 21:30:06 [2025-01-24 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322412', 'tblTempUsageDetail_20' ) start [2025-01-24 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322412', 'tblTempUsageDetail_20' ) end [2025-01-24 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322412', 'tblTempVendorCDR_20' ) start [2025-01-24 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322412', 'tblTempVendorCDR_20' ) end [2025-01-24 21:30:20] Production.INFO: ProcessCDR(1,14322412,1,1,2) [2025-01-24 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322412', 'tblTempUsageDetail_20' ) start [2025-01-24 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322412', 'tblTempUsageDetail_20' ) end [2025-01-24 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:30:23] Production.INFO: ==3570== Releasing lock... [2025-01-24 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:30:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-24 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:31:05 [end_date_ymd] => 2025-01-24 21:31:05 [RateCDR] => 1 ) [2025-01-24 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:31:05' and `end` < '2025-01-24 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:31:18] Production.INFO: count ==3728 [2025-01-24 21:31:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:31:05 - End Time 2025-01-24 21:31:05 [2025-01-24 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322418', 'tblTempUsageDetail_20' ) start [2025-01-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322418', 'tblTempUsageDetail_20' ) end [2025-01-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322418', 'tblTempVendorCDR_20' ) start [2025-01-24 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322418', 'tblTempVendorCDR_20' ) end [2025-01-24 21:31:19] Production.INFO: ProcessCDR(1,14322418,1,1,2) [2025-01-24 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322418', 'tblTempUsageDetail_20' ) start [2025-01-24 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322418', 'tblTempUsageDetail_20' ) end [2025-01-24 21:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:31:24] Production.INFO: ==3682== Releasing lock... [2025-01-24 21:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:31:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-24 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:32:06 [end_date_ymd] => 2025-01-24 21:32:06 [RateCDR] => 1 ) [2025-01-24 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:32:06' and `end` < '2025-01-24 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:32:18] Production.INFO: count ==3692 [2025-01-24 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:32:06 - End Time 2025-01-24 21:32:06 [2025-01-24 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322423', 'tblTempUsageDetail_20' ) start [2025-01-24 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322423', 'tblTempUsageDetail_20' ) end [2025-01-24 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322423', 'tblTempVendorCDR_20' ) start [2025-01-24 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322423', 'tblTempVendorCDR_20' ) end [2025-01-24 21:32:20] Production.INFO: ProcessCDR(1,14322423,1,1,2) [2025-01-24 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322423', 'tblTempUsageDetail_20' ) start [2025-01-24 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322423', 'tblTempUsageDetail_20' ) end [2025-01-24 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:32:24] Production.INFO: ==3757== Releasing lock... [2025-01-24 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:32:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-24 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:33:05 [end_date_ymd] => 2025-01-24 21:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:33:05' and `end` < '2025-01-24 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-24 21:33:18] Production.INFO: count ==3661 [2025-01-24 21:33:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:33:05 - End Time 2025-01-24 21:33:05 [2025-01-24 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322428', 'tblTempUsageDetail_20' ) start [2025-01-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322428', 'tblTempUsageDetail_20' ) end [2025-01-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322428', 'tblTempVendorCDR_20' ) start [2025-01-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322428', 'tblTempVendorCDR_20' ) end [2025-01-24 21:33:19] Production.INFO: ProcessCDR(1,14322428,1,1,2) [2025-01-24 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322428', 'tblTempUsageDetail_20' ) start [2025-01-24 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322428', 'tblTempUsageDetail_20' ) end [2025-01-24 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:33:24] Production.INFO: ==3832== Releasing lock... [2025-01-24 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:33:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-24 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:34:06 [end_date_ymd] => 2025-01-24 21:34:06 [RateCDR] => 1 ) [2025-01-24 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-24 18:34:06' and `end` < '2025-01-24 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-24 21:34:19] Production.INFO: count ==3619 [2025-01-24 21:34:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:34:06 - End Time 2025-01-24 21:34:06 [2025-01-24 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322433', 'tblTempUsageDetail_20' ) start [2025-01-24 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322433', 'tblTempUsageDetail_20' ) end [2025-01-24 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322433', 'tblTempVendorCDR_20' ) start [2025-01-24 21:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322433', 'tblTempVendorCDR_20' ) end [2025-01-24 21:34:21] Production.INFO: ProcessCDR(1,14322433,1,1,2) [2025-01-24 21:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322433', 'tblTempUsageDetail_20' ) start [2025-01-24 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322433', 'tblTempUsageDetail_20' ) end [2025-01-24 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:34:24] Production.INFO: ==3907== Releasing lock... [2025-01-24 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:34:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-24 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:35:05 [end_date_ymd] => 2025-01-24 21:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:35:05' and `end` < '2025-01-24 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-24 21:35:18] Production.INFO: count ==3551 [2025-01-24 21:35:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:35:05 - End Time 2025-01-24 21:35:05 [2025-01-24 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322438', 'tblTempUsageDetail_20' ) start [2025-01-24 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322438', 'tblTempUsageDetail_20' ) end [2025-01-24 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322438', 'tblTempVendorCDR_20' ) start [2025-01-24 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322438', 'tblTempVendorCDR_20' ) end [2025-01-24 21:35:19] Production.INFO: ProcessCDR(1,14322438,1,1,2) [2025-01-24 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322438', 'tblTempUsageDetail_20' ) start [2025-01-24 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322438', 'tblTempUsageDetail_20' ) end [2025-01-24 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:35:22] Production.INFO: ==3976== Releasing lock... [2025-01-24 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:35:22] Production.INFO: 55.25 MB #Memory Used# [2025-01-24 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:36:06 [end_date_ymd] => 2025-01-24 21:36:06 [RateCDR] => 1 ) [2025-01-24 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-24 18:36:06' and `end` < '2025-01-24 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-24 21:36:20] Production.INFO: count ==3479 [2025-01-24 21:36:21] Production.ERROR: pbx CDR StartTime 2025-01-24 18:36:06 - End Time 2025-01-24 21:36:06 [2025-01-24 21:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322443', 'tblTempUsageDetail_20' ) start [2025-01-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322443', 'tblTempUsageDetail_20' ) end [2025-01-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322443', 'tblTempVendorCDR_20' ) start [2025-01-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322443', 'tblTempVendorCDR_20' ) end [2025-01-24 21:36:21] Production.INFO: ProcessCDR(1,14322443,1,1,2) [2025-01-24 21:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322443', 'tblTempUsageDetail_20' ) start [2025-01-24 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322443', 'tblTempUsageDetail_20' ) end [2025-01-24 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:36:24] Production.INFO: ==4052== Releasing lock... [2025-01-24 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:36:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-24 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:37:05 [end_date_ymd] => 2025-01-24 21:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:37:05' and `end` < '2025-01-24 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-24 21:37:18] Production.INFO: count ==3450 [2025-01-24 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:37:05 - End Time 2025-01-24 21:37:05 [2025-01-24 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322448', 'tblTempUsageDetail_20' ) start [2025-01-24 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322448', 'tblTempUsageDetail_20' ) end [2025-01-24 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322448', 'tblTempVendorCDR_20' ) start [2025-01-24 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322448', 'tblTempVendorCDR_20' ) end [2025-01-24 21:37:19] Production.INFO: ProcessCDR(1,14322448,1,1,2) [2025-01-24 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322448', 'tblTempUsageDetail_20' ) start [2025-01-24 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322448', 'tblTempUsageDetail_20' ) end [2025-01-24 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:37:22] Production.INFO: ==4123== Releasing lock... [2025-01-24 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:37:22] Production.INFO: 54 MB #Memory Used# [2025-01-24 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:38:05 [end_date_ymd] => 2025-01-24 21:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:38:05' and `end` < '2025-01-24 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-24 21:38:19] Production.INFO: count ==3409 [2025-01-24 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:38:05 - End Time 2025-01-24 21:38:05 [2025-01-24 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322453', 'tblTempUsageDetail_20' ) start [2025-01-24 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322453', 'tblTempUsageDetail_20' ) end [2025-01-24 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322453', 'tblTempVendorCDR_20' ) start [2025-01-24 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322453', 'tblTempVendorCDR_20' ) end [2025-01-24 21:38:20] Production.INFO: ProcessCDR(1,14322453,1,1,2) [2025-01-24 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322453', 'tblTempUsageDetail_20' ) start [2025-01-24 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322453', 'tblTempUsageDetail_20' ) end [2025-01-24 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:38:23] Production.INFO: ==4197== Releasing lock... [2025-01-24 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:38:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-24 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:39:05 [end_date_ymd] => 2025-01-24 21:39:05 [RateCDR] => 1 ) [2025-01-24 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:39:05' and `end` < '2025-01-24 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:39:18] Production.INFO: count ==3363 [2025-01-24 21:39:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:39:05 - End Time 2025-01-24 21:39:05 [2025-01-24 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322458', 'tblTempUsageDetail_20' ) start [2025-01-24 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322458', 'tblTempUsageDetail_20' ) end [2025-01-24 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322458', 'tblTempVendorCDR_20' ) start [2025-01-24 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322458', 'tblTempVendorCDR_20' ) end [2025-01-24 21:39:19] Production.INFO: ProcessCDR(1,14322458,1,1,2) [2025-01-24 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322458', 'tblTempUsageDetail_20' ) start [2025-01-24 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322458', 'tblTempUsageDetail_20' ) end [2025-01-24 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:39:22] Production.INFO: ==4266== Releasing lock... [2025-01-24 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:39:22] Production.INFO: 53.5 MB #Memory Used# [2025-01-24 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:40:06 [end_date_ymd] => 2025-01-24 21:40:06 [RateCDR] => 1 ) [2025-01-24 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:40:06' and `end` < '2025-01-24 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:40:19] Production.INFO: count ==3304 [2025-01-24 21:40:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:40:06 - End Time 2025-01-24 21:40:06 [2025-01-24 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322464', 'tblTempUsageDetail_20' ) start [2025-01-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322464', 'tblTempUsageDetail_20' ) end [2025-01-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322464', 'tblTempVendorCDR_20' ) start [2025-01-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322464', 'tblTempVendorCDR_20' ) end [2025-01-24 21:40:20] Production.INFO: ProcessCDR(1,14322464,1,1,2) [2025-01-24 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322464', 'tblTempUsageDetail_20' ) start [2025-01-24 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322464', 'tblTempUsageDetail_20' ) end [2025-01-24 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:40:23] Production.INFO: ==4337== Releasing lock... [2025-01-24 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:40:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-24 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:41:05 [end_date_ymd] => 2025-01-24 21:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:41:05' and `end` < '2025-01-24 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-24 21:41:17] Production.INFO: count ==3200 [2025-01-24 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:41:05 - End Time 2025-01-24 21:41:05 [2025-01-24 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322469', 'tblTempUsageDetail_20' ) start [2025-01-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322469', 'tblTempUsageDetail_20' ) end [2025-01-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322469', 'tblTempVendorCDR_20' ) start [2025-01-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322469', 'tblTempVendorCDR_20' ) end [2025-01-24 21:41:18] Production.INFO: ProcessCDR(1,14322469,1,1,2) [2025-01-24 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322469', 'tblTempUsageDetail_20' ) start [2025-01-24 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322469', 'tblTempUsageDetail_20' ) end [2025-01-24 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:41:21] Production.INFO: ==4411== Releasing lock... [2025-01-24 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:41:21] Production.INFO: 52.25 MB #Memory Used# [2025-01-24 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:42:05 [end_date_ymd] => 2025-01-24 21:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:42:05' and `end` < '2025-01-24 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-24 21:42:18] Production.INFO: count ==3146 [2025-01-24 21:42:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:42:05 - End Time 2025-01-24 21:42:05 [2025-01-24 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322474', 'tblTempUsageDetail_20' ) start [2025-01-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322474', 'tblTempUsageDetail_20' ) end [2025-01-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322474', 'tblTempVendorCDR_20' ) start [2025-01-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322474', 'tblTempVendorCDR_20' ) end [2025-01-24 21:42:19] Production.INFO: ProcessCDR(1,14322474,1,1,2) [2025-01-24 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322474', 'tblTempUsageDetail_20' ) start [2025-01-24 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322474', 'tblTempUsageDetail_20' ) end [2025-01-24 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:42:23] Production.INFO: ==4483== Releasing lock... [2025-01-24 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:42:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-24 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:43:05 [end_date_ymd] => 2025-01-24 21:43:05 [RateCDR] => 1 ) [2025-01-24 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:43:05' and `end` < '2025-01-24 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:43:18] Production.INFO: count ==3090 [2025-01-24 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:43:05 - End Time 2025-01-24 21:43:05 [2025-01-24 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322479', 'tblTempUsageDetail_20' ) start [2025-01-24 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322479', 'tblTempUsageDetail_20' ) end [2025-01-24 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322479', 'tblTempVendorCDR_20' ) start [2025-01-24 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322479', 'tblTempVendorCDR_20' ) end [2025-01-24 21:43:19] Production.INFO: ProcessCDR(1,14322479,1,1,2) [2025-01-24 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322479', 'tblTempUsageDetail_20' ) start [2025-01-24 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322479', 'tblTempUsageDetail_20' ) end [2025-01-24 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:43:22] Production.INFO: ==4555== Releasing lock... [2025-01-24 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:43:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-24 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:44:05 [end_date_ymd] => 2025-01-24 21:44:05 [RateCDR] => 1 ) [2025-01-24 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:44:05' and `end` < '2025-01-24 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:44:18] Production.INFO: count ==3015 [2025-01-24 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:44:05 - End Time 2025-01-24 21:44:05 [2025-01-24 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322484', 'tblTempUsageDetail_20' ) start [2025-01-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322484', 'tblTempUsageDetail_20' ) end [2025-01-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322484', 'tblTempVendorCDR_20' ) start [2025-01-24 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322484', 'tblTempVendorCDR_20' ) end [2025-01-24 21:44:18] Production.INFO: ProcessCDR(1,14322484,1,1,2) [2025-01-24 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322484', 'tblTempUsageDetail_20' ) start [2025-01-24 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322484', 'tblTempUsageDetail_20' ) end [2025-01-24 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:44:21] Production.INFO: ==4633== Releasing lock... [2025-01-24 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:44:21] Production.INFO: 50.75 MB #Memory Used# [2025-01-24 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:45:04 [end_date_ymd] => 2025-01-24 21:45:04 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:45:04' and `end` < '2025-01-24 21: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-24 21:45:18] Production.INFO: count ==2958 [2025-01-24 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:45:04 - End Time 2025-01-24 21:45:04 [2025-01-24 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322489', 'tblTempUsageDetail_20' ) start [2025-01-24 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322489', 'tblTempUsageDetail_20' ) end [2025-01-24 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322489', 'tblTempVendorCDR_20' ) start [2025-01-24 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322489', 'tblTempVendorCDR_20' ) end [2025-01-24 21:45:19] Production.INFO: ProcessCDR(1,14322489,1,1,2) [2025-01-24 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322489', 'tblTempUsageDetail_20' ) start [2025-01-24 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322489', 'tblTempUsageDetail_20' ) end [2025-01-24 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:45:22] Production.INFO: ==4703== Releasing lock... [2025-01-24 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:45:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-24 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:46:05 [end_date_ymd] => 2025-01-24 21:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:46:05' and `end` < '2025-01-24 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-24 21:46:18] Production.INFO: count ==2890 [2025-01-24 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:46:05 - End Time 2025-01-24 21:46:05 [2025-01-24 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322494', 'tblTempUsageDetail_20' ) start [2025-01-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322494', 'tblTempUsageDetail_20' ) end [2025-01-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322494', 'tblTempVendorCDR_20' ) start [2025-01-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322494', 'tblTempVendorCDR_20' ) end [2025-01-24 21:46:19] Production.INFO: ProcessCDR(1,14322494,1,1,2) [2025-01-24 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322494', 'tblTempUsageDetail_20' ) start [2025-01-24 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322494', 'tblTempUsageDetail_20' ) end [2025-01-24 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:46:22] Production.INFO: ==4813== Releasing lock... [2025-01-24 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:46:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-24 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:47:06 [end_date_ymd] => 2025-01-24 21:47:06 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:47:06' and `end` < '2025-01-24 21: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-24 21:47:18] Production.INFO: count ==2833 [2025-01-24 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:47:06 - End Time 2025-01-24 21:47:06 [2025-01-24 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322499', 'tblTempUsageDetail_20' ) start [2025-01-24 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322499', 'tblTempUsageDetail_20' ) end [2025-01-24 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322499', 'tblTempVendorCDR_20' ) start [2025-01-24 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322499', 'tblTempVendorCDR_20' ) end [2025-01-24 21:47:19] Production.INFO: ProcessCDR(1,14322499,1,1,2) [2025-01-24 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322499', 'tblTempUsageDetail_20' ) start [2025-01-24 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322499', 'tblTempUsageDetail_20' ) end [2025-01-24 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:47:22] Production.INFO: ==4885== Releasing lock... [2025-01-24 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:47:22] Production.INFO: 49 MB #Memory Used# [2025-01-24 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:48:05 [end_date_ymd] => 2025-01-24 21:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:48:05' and `end` < '2025-01-24 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-24 21:48:18] Production.INFO: count ==2796 [2025-01-24 21:48:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:48:05 - End Time 2025-01-24 21:48:05 [2025-01-24 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322504', 'tblTempUsageDetail_20' ) start [2025-01-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322504', 'tblTempUsageDetail_20' ) end [2025-01-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322504', 'tblTempVendorCDR_20' ) start [2025-01-24 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322504', 'tblTempVendorCDR_20' ) end [2025-01-24 21:48:19] Production.INFO: ProcessCDR(1,14322504,1,1,2) [2025-01-24 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322504', 'tblTempUsageDetail_20' ) start [2025-01-24 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322504', 'tblTempUsageDetail_20' ) end [2025-01-24 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:48:22] Production.INFO: ==4957== Releasing lock... [2025-01-24 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:48:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-24 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:49:06 [end_date_ymd] => 2025-01-24 21:49:06 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:49:06' and `end` < '2025-01-24 21: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-24 21:49:18] Production.INFO: count ==2731 [2025-01-24 21:49:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:49:06 - End Time 2025-01-24 21:49:06 [2025-01-24 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322509', 'tblTempUsageDetail_20' ) start [2025-01-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322509', 'tblTempUsageDetail_20' ) end [2025-01-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322509', 'tblTempVendorCDR_20' ) start [2025-01-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322509', 'tblTempVendorCDR_20' ) end [2025-01-24 21:49:19] Production.INFO: ProcessCDR(1,14322509,1,1,2) [2025-01-24 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322509', 'tblTempUsageDetail_20' ) start [2025-01-24 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322509', 'tblTempUsageDetail_20' ) end [2025-01-24 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:49:22] Production.INFO: ==5035== Releasing lock... [2025-01-24 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:49:22] Production.INFO: 48 MB #Memory Used# [2025-01-24 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:50:06 [end_date_ymd] => 2025-01-24 21:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 18:50:06' and `end` < '2025-01-24 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-24 21:50:19] Production.INFO: count ==2684 [2025-01-24 21:50:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:50:06 - End Time 2025-01-24 21:50:06 [2025-01-24 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322515', 'tblTempUsageDetail_20' ) start [2025-01-24 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322515', 'tblTempUsageDetail_20' ) end [2025-01-24 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322515', 'tblTempVendorCDR_20' ) start [2025-01-24 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322515', 'tblTempVendorCDR_20' ) end [2025-01-24 21:50:20] Production.INFO: ProcessCDR(1,14322515,1,1,2) [2025-01-24 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322515', 'tblTempUsageDetail_20' ) start [2025-01-24 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322515', 'tblTempUsageDetail_20' ) end [2025-01-24 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:50:23] Production.INFO: ==5108== Releasing lock... [2025-01-24 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:50:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-24 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:51:06 [end_date_ymd] => 2025-01-24 21:51:06 [RateCDR] => 1 ) [2025-01-24 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:51:06' and `end` < '2025-01-24 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:51:19] Production.INFO: count ==2510 [2025-01-24 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:51:06 - End Time 2025-01-24 21:51:06 [2025-01-24 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322520', 'tblTempUsageDetail_20' ) start [2025-01-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322520', 'tblTempUsageDetail_20' ) end [2025-01-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322520', 'tblTempVendorCDR_20' ) start [2025-01-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322520', 'tblTempVendorCDR_20' ) end [2025-01-24 21:51:19] Production.INFO: ProcessCDR(1,14322520,1,1,2) [2025-01-24 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322520', 'tblTempUsageDetail_20' ) start [2025-01-24 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322520', 'tblTempUsageDetail_20' ) end [2025-01-24 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:51:23] Production.INFO: ==5189== Releasing lock... [2025-01-24 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:51:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-24 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:52:05 [end_date_ymd] => 2025-01-24 21:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:52:05' and `end` < '2025-01-24 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-24 21:52:18] Production.INFO: count ==2455 [2025-01-24 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:52:05 - End Time 2025-01-24 21:52:05 [2025-01-24 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322525', 'tblTempUsageDetail_20' ) start [2025-01-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322525', 'tblTempUsageDetail_20' ) end [2025-01-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322525', 'tblTempVendorCDR_20' ) start [2025-01-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322525', 'tblTempVendorCDR_20' ) end [2025-01-24 21:52:18] Production.INFO: ProcessCDR(1,14322525,1,1,2) [2025-01-24 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322525', 'tblTempUsageDetail_20' ) start [2025-01-24 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322525', 'tblTempUsageDetail_20' ) end [2025-01-24 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:52:22] Production.INFO: ==5262== Releasing lock... [2025-01-24 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:52:22] Production.INFO: 46 MB #Memory Used# [2025-01-24 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:53:05 [end_date_ymd] => 2025-01-24 21:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:53:05' and `end` < '2025-01-24 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-24 21:53:17] Production.INFO: count ==2406 [2025-01-24 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:53:05 - End Time 2025-01-24 21:53:05 [2025-01-24 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322530', 'tblTempUsageDetail_20' ) start [2025-01-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322530', 'tblTempUsageDetail_20' ) end [2025-01-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322530', 'tblTempVendorCDR_20' ) start [2025-01-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322530', 'tblTempVendorCDR_20' ) end [2025-01-24 21:53:18] Production.INFO: ProcessCDR(1,14322530,1,1,2) [2025-01-24 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322530', 'tblTempUsageDetail_20' ) start [2025-01-24 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322530', 'tblTempUsageDetail_20' ) end [2025-01-24 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:53:21] Production.INFO: ==5334== Releasing lock... [2025-01-24 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:53:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-24 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:54:05 [end_date_ymd] => 2025-01-24 21:54:05 [RateCDR] => 1 ) [2025-01-24 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:54:05' and `end` < '2025-01-24 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:54:18] Production.INFO: count ==2372 [2025-01-24 21:54:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:54:05 - End Time 2025-01-24 21:54:05 [2025-01-24 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322535', 'tblTempUsageDetail_20' ) start [2025-01-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322535', 'tblTempUsageDetail_20' ) end [2025-01-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322535', 'tblTempVendorCDR_20' ) start [2025-01-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322535', 'tblTempVendorCDR_20' ) end [2025-01-24 21:54:19] Production.INFO: ProcessCDR(1,14322535,1,1,2) [2025-01-24 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322535', 'tblTempUsageDetail_20' ) start [2025-01-24 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322535', 'tblTempUsageDetail_20' ) end [2025-01-24 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:54:22] Production.INFO: ==5404== Releasing lock... [2025-01-24 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:54:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-24 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:55:04 [end_date_ymd] => 2025-01-24 21:55:04 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:55:04' and `end` < '2025-01-24 21: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-24 21:55:17] Production.INFO: count ==2317 [2025-01-24 21:55:17] Production.ERROR: pbx CDR StartTime 2025-01-24 18:55:04 - End Time 2025-01-24 21:55:04 [2025-01-24 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322540', 'tblTempUsageDetail_20' ) start [2025-01-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322540', 'tblTempUsageDetail_20' ) end [2025-01-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322540', 'tblTempVendorCDR_20' ) start [2025-01-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322540', 'tblTempVendorCDR_20' ) end [2025-01-24 21:55:18] Production.INFO: ProcessCDR(1,14322540,1,1,2) [2025-01-24 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322540', 'tblTempUsageDetail_20' ) start [2025-01-24 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322540', 'tblTempUsageDetail_20' ) end [2025-01-24 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:55:21] Production.INFO: ==5474== Releasing lock... [2025-01-24 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:55:21] Production.INFO: 45 MB #Memory Used# [2025-01-24 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:56:05 [end_date_ymd] => 2025-01-24 21:56:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:56:05' and `end` < '2025-01-24 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-24 21:56:18] Production.INFO: count ==2288 [2025-01-24 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:56:05 - End Time 2025-01-24 21:56:05 [2025-01-24 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322545', 'tblTempUsageDetail_20' ) start [2025-01-24 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322545', 'tblTempUsageDetail_20' ) end [2025-01-24 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322545', 'tblTempVendorCDR_20' ) start [2025-01-24 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322545', 'tblTempVendorCDR_20' ) end [2025-01-24 21:56:19] Production.INFO: ProcessCDR(1,14322545,1,1,2) [2025-01-24 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322545', 'tblTempUsageDetail_20' ) start [2025-01-24 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322545', 'tblTempUsageDetail_20' ) end [2025-01-24 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:56:22] Production.INFO: ==5548== Releasing lock... [2025-01-24 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:56:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-24 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:57:05 [end_date_ymd] => 2025-01-24 21:57:05 [RateCDR] => 1 ) [2025-01-24 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-24 18:57:05' and `end` < '2025-01-24 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-24 21:57:18] Production.INFO: count ==2275 [2025-01-24 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-24 18:57:05 - End Time 2025-01-24 21:57:05 [2025-01-24 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322550', 'tblTempUsageDetail_20' ) start [2025-01-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322550', 'tblTempUsageDetail_20' ) end [2025-01-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322550', 'tblTempVendorCDR_20' ) start [2025-01-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322550', 'tblTempVendorCDR_20' ) end [2025-01-24 21:57:19] Production.INFO: ProcessCDR(1,14322550,1,1,2) [2025-01-24 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322550', 'tblTempUsageDetail_20' ) start [2025-01-24 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322550', 'tblTempUsageDetail_20' ) end [2025-01-24 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:57:22] Production.INFO: ==5618== Releasing lock... [2025-01-24 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-24 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:58:05 [end_date_ymd] => 2025-01-24 21:58:05 [RateCDR] => 1 ) [2025-01-24 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 18:58:05' and `end` < '2025-01-24 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 21:58:17] Production.INFO: count ==2245 [2025-01-24 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 18:58:05 - End Time 2025-01-24 21:58:05 [2025-01-24 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322554', 'tblTempUsageDetail_20' ) start [2025-01-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322554', 'tblTempUsageDetail_20' ) end [2025-01-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322554', 'tblTempVendorCDR_20' ) start [2025-01-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322554', 'tblTempVendorCDR_20' ) end [2025-01-24 21:58:18] Production.INFO: ProcessCDR(1,14322554,1,1,2) [2025-01-24 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322554', 'tblTempUsageDetail_20' ) start [2025-01-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322554', 'tblTempUsageDetail_20' ) end [2025-01-24 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:58:22] Production.INFO: ==5689== Releasing lock... [2025-01-24 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:58:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-24 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 18:59:06 [end_date_ymd] => 2025-01-24 21:59:06 [RateCDR] => 1 ) [2025-01-24 21: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-24 18:59:06' and `end` < '2025-01-24 21: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-24 21:59:20] Production.INFO: count ==2232 [2025-01-24 21:59:20] Production.ERROR: pbx CDR StartTime 2025-01-24 18:59:06 - End Time 2025-01-24 21:59:06 [2025-01-24 21:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322560', 'tblTempUsageDetail_20' ) start [2025-01-24 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322560', 'tblTempUsageDetail_20' ) end [2025-01-24 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322560', 'tblTempVendorCDR_20' ) start [2025-01-24 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322560', 'tblTempVendorCDR_20' ) end [2025-01-24 21:59:20] Production.INFO: ProcessCDR(1,14322560,1,1,2) [2025-01-24 21:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 21:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322560', 'tblTempUsageDetail_20' ) start [2025-01-24 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322560', 'tblTempUsageDetail_20' ) end [2025-01-24 21:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 21:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 21:59:25] Production.INFO: ==5761== Releasing lock... [2025-01-24 21:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 21:59:25] Production.INFO: 44.25 MB #Memory Used# [2025-01-24 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:00:06 [end_date_ymd] => 2025-01-24 22:00:06 [RateCDR] => 1 ) [2025-01-24 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:00:06' and `end` < '2025-01-24 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:00:19] Production.INFO: count ==2236 [2025-01-24 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:00:06 - End Time 2025-01-24 22:00:06 [2025-01-24 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322566', 'tblTempUsageDetail_20' ) start [2025-01-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322566', 'tblTempUsageDetail_20' ) end [2025-01-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322566', 'tblTempVendorCDR_20' ) start [2025-01-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322566', 'tblTempVendorCDR_20' ) end [2025-01-24 22:00:19] Production.INFO: ProcessCDR(1,14322566,1,1,2) [2025-01-24 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322566', 'tblTempUsageDetail_20' ) start [2025-01-24 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322566', 'tblTempUsageDetail_20' ) end [2025-01-24 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:00:22] Production.INFO: ==5839== Releasing lock... [2025-01-24 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:00:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-24 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:01:05 [end_date_ymd] => 2025-01-24 22:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:01:05' and `end` < '2025-01-24 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-24 22:01:18] Production.INFO: count ==2184 [2025-01-24 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:01:05 - End Time 2025-01-24 22:01:05 [2025-01-24 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322571', 'tblTempUsageDetail_20' ) start [2025-01-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322571', 'tblTempUsageDetail_20' ) end [2025-01-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322571', 'tblTempVendorCDR_20' ) start [2025-01-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322571', 'tblTempVendorCDR_20' ) end [2025-01-24 22:01:18] Production.INFO: ProcessCDR(1,14322571,1,1,2) [2025-01-24 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322571', 'tblTempUsageDetail_20' ) start [2025-01-24 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322571', 'tblTempUsageDetail_20' ) end [2025-01-24 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:01:22] Production.INFO: ==5927== Releasing lock... [2025-01-24 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:01:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-24 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:02:05 [end_date_ymd] => 2025-01-24 22:02:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:02:05' and `end` < '2025-01-24 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-24 22:02:19] Production.INFO: count ==2182 [2025-01-24 22:02:20] Production.ERROR: pbx CDR StartTime 2025-01-24 19:02:05 - End Time 2025-01-24 22:02:05 [2025-01-24 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322576', 'tblTempUsageDetail_20' ) start [2025-01-24 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322576', 'tblTempUsageDetail_20' ) end [2025-01-24 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322576', 'tblTempVendorCDR_20' ) start [2025-01-24 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322576', 'tblTempVendorCDR_20' ) end [2025-01-24 22:02:20] Production.INFO: ProcessCDR(1,14322576,1,1,2) [2025-01-24 22:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322576', 'tblTempUsageDetail_20' ) start [2025-01-24 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322576', 'tblTempUsageDetail_20' ) end [2025-01-24 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:02:23] Production.INFO: ==6036== Releasing lock... [2025-01-24 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:02:23] Production.INFO: 44 MB #Memory Used# [2025-01-24 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:03:06 [end_date_ymd] => 2025-01-24 22:03:06 [RateCDR] => 1 ) [2025-01-24 22: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-24 19:03:06' and `end` < '2025-01-24 22: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-24 22:03:19] Production.INFO: count ==2181 [2025-01-24 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:03:06 - End Time 2025-01-24 22:03:06 [2025-01-24 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322581', 'tblTempUsageDetail_20' ) start [2025-01-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322581', 'tblTempUsageDetail_20' ) end [2025-01-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322581', 'tblTempVendorCDR_20' ) start [2025-01-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322581', 'tblTempVendorCDR_20' ) end [2025-01-24 22:03:19] Production.INFO: ProcessCDR(1,14322581,1,1,2) [2025-01-24 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322581', 'tblTempUsageDetail_20' ) start [2025-01-24 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322581', 'tblTempUsageDetail_20' ) end [2025-01-24 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:03:22] Production.INFO: ==6109== Releasing lock... [2025-01-24 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:03:22] Production.INFO: 44 MB #Memory Used# [2025-01-24 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:04:06 [end_date_ymd] => 2025-01-24 22:04:06 [RateCDR] => 1 ) [2025-01-24 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:04:06' and `end` < '2025-01-24 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:04:19] Production.INFO: count ==2176 [2025-01-24 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:04:06 - End Time 2025-01-24 22:04:06 [2025-01-24 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322586', 'tblTempUsageDetail_20' ) start [2025-01-24 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322586', 'tblTempUsageDetail_20' ) end [2025-01-24 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322586', 'tblTempVendorCDR_20' ) start [2025-01-24 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322586', 'tblTempVendorCDR_20' ) end [2025-01-24 22:04:19] Production.INFO: ProcessCDR(1,14322586,1,1,2) [2025-01-24 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322586', 'tblTempUsageDetail_20' ) start [2025-01-24 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322586', 'tblTempUsageDetail_20' ) end [2025-01-24 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:04:23] Production.INFO: ==6184== Releasing lock... [2025-01-24 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:04:23] Production.INFO: 44 MB #Memory Used# [2025-01-24 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:05:05 [end_date_ymd] => 2025-01-24 22:05:05 [RateCDR] => 1 ) [2025-01-24 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:05:05' and `end` < '2025-01-24 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:05:19] Production.INFO: count ==2179 [2025-01-24 22:05:20] Production.ERROR: pbx CDR StartTime 2025-01-24 19:05:05 - End Time 2025-01-24 22:05:05 [2025-01-24 22:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322591', 'tblTempUsageDetail_20' ) start [2025-01-24 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322591', 'tblTempUsageDetail_20' ) end [2025-01-24 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322591', 'tblTempVendorCDR_20' ) start [2025-01-24 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322591', 'tblTempVendorCDR_20' ) end [2025-01-24 22:05:20] Production.INFO: ProcessCDR(1,14322591,1,1,2) [2025-01-24 22:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322591', 'tblTempUsageDetail_20' ) start [2025-01-24 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322591', 'tblTempUsageDetail_20' ) end [2025-01-24 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:05:23] Production.INFO: ==6259== Releasing lock... [2025-01-24 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:05:23] Production.INFO: 44 MB #Memory Used# [2025-01-24 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:06:05 [end_date_ymd] => 2025-01-24 22:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:06:05' and `end` < '2025-01-24 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-24 22:06:19] Production.INFO: count ==2182 [2025-01-24 22:06:20] Production.ERROR: pbx CDR StartTime 2025-01-24 19:06:05 - End Time 2025-01-24 22:06:05 [2025-01-24 22:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322596', 'tblTempUsageDetail_20' ) start [2025-01-24 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322596', 'tblTempUsageDetail_20' ) end [2025-01-24 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322596', 'tblTempVendorCDR_20' ) start [2025-01-24 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322596', 'tblTempVendorCDR_20' ) end [2025-01-24 22:06:20] Production.INFO: ProcessCDR(1,14322596,1,1,2) [2025-01-24 22:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322596', 'tblTempUsageDetail_20' ) start [2025-01-24 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322596', 'tblTempUsageDetail_20' ) end [2025-01-24 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:06:23] Production.INFO: ==6332== Releasing lock... [2025-01-24 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:06:23] Production.INFO: 44 MB #Memory Used# [2025-01-24 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:07:05 [end_date_ymd] => 2025-01-24 22:07:05 [RateCDR] => 1 ) [2025-01-24 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:07:05' and `end` < '2025-01-24 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:07:17] Production.INFO: count ==2178 [2025-01-24 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:07:05 - End Time 2025-01-24 22:07:05 [2025-01-24 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322601', 'tblTempUsageDetail_20' ) start [2025-01-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322601', 'tblTempUsageDetail_20' ) end [2025-01-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322601', 'tblTempVendorCDR_20' ) start [2025-01-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322601', 'tblTempVendorCDR_20' ) end [2025-01-24 22:07:18] Production.INFO: ProcessCDR(1,14322601,1,1,2) [2025-01-24 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322601', 'tblTempUsageDetail_20' ) start [2025-01-24 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322601', 'tblTempUsageDetail_20' ) end [2025-01-24 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:07:21] Production.INFO: ==6406== Releasing lock... [2025-01-24 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:07:21] Production.INFO: 44.25 MB #Memory Used# [2025-01-24 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:08:05 [end_date_ymd] => 2025-01-24 22:08:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:08:05' and `end` < '2025-01-24 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-24 22:08:18] Production.INFO: count ==2177 [2025-01-24 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:08:05 - End Time 2025-01-24 22:08:05 [2025-01-24 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322606', 'tblTempUsageDetail_20' ) start [2025-01-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322606', 'tblTempUsageDetail_20' ) end [2025-01-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322606', 'tblTempVendorCDR_20' ) start [2025-01-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322606', 'tblTempVendorCDR_20' ) end [2025-01-24 22:08:18] Production.INFO: ProcessCDR(1,14322606,1,1,2) [2025-01-24 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322606', 'tblTempUsageDetail_20' ) start [2025-01-24 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322606', 'tblTempUsageDetail_20' ) end [2025-01-24 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:08:23] Production.INFO: ==6478== Releasing lock... [2025-01-24 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:08:23] Production.INFO: 44 MB #Memory Used# [2025-01-24 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:09:05 [end_date_ymd] => 2025-01-24 22:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:09:05' and `end` < '2025-01-24 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-24 22:09:18] Production.INFO: count ==2170 [2025-01-24 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:09:05 - End Time 2025-01-24 22:09:05 [2025-01-24 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322611', 'tblTempUsageDetail_20' ) start [2025-01-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322611', 'tblTempUsageDetail_20' ) end [2025-01-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322611', 'tblTempVendorCDR_20' ) start [2025-01-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322611', 'tblTempVendorCDR_20' ) end [2025-01-24 22:09:18] Production.INFO: ProcessCDR(1,14322611,1,1,2) [2025-01-24 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322611', 'tblTempUsageDetail_20' ) start [2025-01-24 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322611', 'tblTempUsageDetail_20' ) end [2025-01-24 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:09:21] Production.INFO: ==6552== Releasing lock... [2025-01-24 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:09:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-24 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:10:06 [end_date_ymd] => 2025-01-24 22:10:06 [RateCDR] => 1 ) [2025-01-24 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:10:06' and `end` < '2025-01-24 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:10:19] Production.INFO: count ==2170 [2025-01-24 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:10:06 - End Time 2025-01-24 22:10:06 [2025-01-24 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322617', 'tblTempUsageDetail_20' ) start [2025-01-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322617', 'tblTempUsageDetail_20' ) end [2025-01-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322617', 'tblTempVendorCDR_20' ) start [2025-01-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322617', 'tblTempVendorCDR_20' ) end [2025-01-24 22:10:19] Production.INFO: ProcessCDR(1,14322617,1,1,2) [2025-01-24 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322617', 'tblTempUsageDetail_20' ) start [2025-01-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322617', 'tblTempUsageDetail_20' ) end [2025-01-24 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:10:22] Production.INFO: ==6626== Releasing lock... [2025-01-24 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:10:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-24 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:11:05 [end_date_ymd] => 2025-01-24 22:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:11:05' and `end` < '2025-01-24 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-24 22:11:18] Production.INFO: count ==2124 [2025-01-24 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:11:05 - End Time 2025-01-24 22:11:05 [2025-01-24 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322622', 'tblTempUsageDetail_20' ) start [2025-01-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322622', 'tblTempUsageDetail_20' ) end [2025-01-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322622', 'tblTempVendorCDR_20' ) start [2025-01-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322622', 'tblTempVendorCDR_20' ) end [2025-01-24 22:11:18] Production.INFO: ProcessCDR(1,14322622,1,1,2) [2025-01-24 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322622', 'tblTempUsageDetail_20' ) start [2025-01-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322622', 'tblTempUsageDetail_20' ) end [2025-01-24 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:11:21] Production.INFO: ==6704== Releasing lock... [2025-01-24 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:11:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-24 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:12:05 [end_date_ymd] => 2025-01-24 22:12:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:12:05' and `end` < '2025-01-24 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-24 22:12:18] Production.INFO: count ==2122 [2025-01-24 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:12:05 - End Time 2025-01-24 22:12:05 [2025-01-24 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322627', 'tblTempUsageDetail_20' ) start [2025-01-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322627', 'tblTempUsageDetail_20' ) end [2025-01-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322627', 'tblTempVendorCDR_20' ) start [2025-01-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322627', 'tblTempVendorCDR_20' ) end [2025-01-24 22:12:18] Production.INFO: ProcessCDR(1,14322627,1,1,2) [2025-01-24 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322627', 'tblTempUsageDetail_20' ) start [2025-01-24 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322627', 'tblTempUsageDetail_20' ) end [2025-01-24 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:12:23] Production.INFO: ==6775== Releasing lock... [2025-01-24 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:12:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-24 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:13:06 [end_date_ymd] => 2025-01-24 22:13:06 [RateCDR] => 1 ) [2025-01-24 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:13:06' and `end` < '2025-01-24 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:13:18] Production.INFO: count ==2120 [2025-01-24 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:13:06 - End Time 2025-01-24 22:13:06 [2025-01-24 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322632', 'tblTempUsageDetail_20' ) start [2025-01-24 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322632', 'tblTempUsageDetail_20' ) end [2025-01-24 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322632', 'tblTempVendorCDR_20' ) start [2025-01-24 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322632', 'tblTempVendorCDR_20' ) end [2025-01-24 22:13:19] Production.INFO: ProcessCDR(1,14322632,1,1,2) [2025-01-24 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322632', 'tblTempUsageDetail_20' ) start [2025-01-24 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322632', 'tblTempUsageDetail_20' ) end [2025-01-24 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:13:22] Production.INFO: ==6846== Releasing lock... [2025-01-24 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:13:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-24 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:14:05 [end_date_ymd] => 2025-01-24 22:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:14:05' and `end` < '2025-01-24 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-24 22:14:18] Production.INFO: count ==2110 [2025-01-24 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:14:05 - End Time 2025-01-24 22:14:05 [2025-01-24 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322637', 'tblTempUsageDetail_20' ) start [2025-01-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322637', 'tblTempUsageDetail_20' ) end [2025-01-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322637', 'tblTempVendorCDR_20' ) start [2025-01-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322637', 'tblTempVendorCDR_20' ) end [2025-01-24 22:14:18] Production.INFO: ProcessCDR(1,14322637,1,1,2) [2025-01-24 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322637', 'tblTempUsageDetail_20' ) start [2025-01-24 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322637', 'tblTempUsageDetail_20' ) end [2025-01-24 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:14:21] Production.INFO: ==6916== Releasing lock... [2025-01-24 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:14:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-24 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:15:05 [end_date_ymd] => 2025-01-24 22:15:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:15:05' and `end` < '2025-01-24 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-24 22:15:18] Production.INFO: count ==2076 [2025-01-24 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:15:05 - End Time 2025-01-24 22:15:05 [2025-01-24 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322642', 'tblTempUsageDetail_20' ) start [2025-01-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322642', 'tblTempUsageDetail_20' ) end [2025-01-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322642', 'tblTempVendorCDR_20' ) start [2025-01-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322642', 'tblTempVendorCDR_20' ) end [2025-01-24 22:15:18] Production.INFO: ProcessCDR(1,14322642,1,1,2) [2025-01-24 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322642', 'tblTempUsageDetail_20' ) start [2025-01-24 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322642', 'tblTempUsageDetail_20' ) end [2025-01-24 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:15:21] Production.INFO: ==6987== Releasing lock... [2025-01-24 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:15:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-24 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:16:05 [end_date_ymd] => 2025-01-24 22:16:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:16:05' and `end` < '2025-01-24 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-24 22:16:20] Production.INFO: count ==2071 [2025-01-24 22:16:20] Production.ERROR: pbx CDR StartTime 2025-01-24 19:16:05 - End Time 2025-01-24 22:16:05 [2025-01-24 22:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322647', 'tblTempUsageDetail_20' ) start [2025-01-24 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322647', 'tblTempUsageDetail_20' ) end [2025-01-24 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322647', 'tblTempVendorCDR_20' ) start [2025-01-24 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322647', 'tblTempVendorCDR_20' ) end [2025-01-24 22:16:20] Production.INFO: ProcessCDR(1,14322647,1,1,2) [2025-01-24 22:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322647', 'tblTempUsageDetail_20' ) start [2025-01-24 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322647', 'tblTempUsageDetail_20' ) end [2025-01-24 22:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:16:25] Production.INFO: ==7059== Releasing lock... [2025-01-24 22:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:16:25] Production.INFO: 43 MB #Memory Used# [2025-01-24 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:17:05 [end_date_ymd] => 2025-01-24 22:17:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:17:05' and `end` < '2025-01-24 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-24 22:17:18] Production.INFO: count ==2070 [2025-01-24 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:17:05 - End Time 2025-01-24 22:17:05 [2025-01-24 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322652', 'tblTempUsageDetail_20' ) start [2025-01-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322652', 'tblTempUsageDetail_20' ) end [2025-01-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322652', 'tblTempVendorCDR_20' ) start [2025-01-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322652', 'tblTempVendorCDR_20' ) end [2025-01-24 22:17:18] Production.INFO: ProcessCDR(1,14322652,1,1,2) [2025-01-24 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322652', 'tblTempUsageDetail_20' ) start [2025-01-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322652', 'tblTempUsageDetail_20' ) end [2025-01-24 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:17:21] Production.INFO: ==7169== Releasing lock... [2025-01-24 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:17:21] Production.INFO: 43 MB #Memory Used# [2025-01-24 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:18:05 [end_date_ymd] => 2025-01-24 22:18:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:18:05' and `end` < '2025-01-24 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-24 22:18:18] Production.INFO: count ==2075 [2025-01-24 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:18:05 - End Time 2025-01-24 22:18:05 [2025-01-24 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322657', 'tblTempUsageDetail_20' ) start [2025-01-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322657', 'tblTempUsageDetail_20' ) end [2025-01-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322657', 'tblTempVendorCDR_20' ) start [2025-01-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322657', 'tblTempVendorCDR_20' ) end [2025-01-24 22:18:18] Production.INFO: ProcessCDR(1,14322657,1,1,2) [2025-01-24 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322657', 'tblTempUsageDetail_20' ) start [2025-01-24 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322657', 'tblTempUsageDetail_20' ) end [2025-01-24 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:18:21] Production.INFO: ==7240== Releasing lock... [2025-01-24 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:18:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-24 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:19:05 [end_date_ymd] => 2025-01-24 22:19:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:19:05' and `end` < '2025-01-24 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-24 22:19:18] Production.INFO: count ==2075 [2025-01-24 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:19:05 - End Time 2025-01-24 22:19:05 [2025-01-24 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322662', 'tblTempUsageDetail_20' ) start [2025-01-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322662', 'tblTempUsageDetail_20' ) end [2025-01-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322662', 'tblTempVendorCDR_20' ) start [2025-01-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322662', 'tblTempVendorCDR_20' ) end [2025-01-24 22:19:18] Production.INFO: ProcessCDR(1,14322662,1,1,2) [2025-01-24 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322662', 'tblTempUsageDetail_20' ) start [2025-01-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322662', 'tblTempUsageDetail_20' ) end [2025-01-24 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:19:21] Production.INFO: ==7313== Releasing lock... [2025-01-24 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:19:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-24 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:20:05 [end_date_ymd] => 2025-01-24 22:20:05 [RateCDR] => 1 ) [2025-01-24 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:20:05' and `end` < '2025-01-24 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:20:18] Production.INFO: count ==2069 [2025-01-24 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:20:05 - End Time 2025-01-24 22:20:05 [2025-01-24 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322667', 'tblTempUsageDetail_20' ) start [2025-01-24 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322667', 'tblTempUsageDetail_20' ) end [2025-01-24 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322667', 'tblTempVendorCDR_20' ) start [2025-01-24 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322667', 'tblTempVendorCDR_20' ) end [2025-01-24 22:20:18] Production.INFO: ProcessCDR(1,14322667,1,1,2) [2025-01-24 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322667', 'tblTempUsageDetail_20' ) start [2025-01-24 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322667', 'tblTempUsageDetail_20' ) end [2025-01-24 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:20:21] Production.INFO: ==7388== Releasing lock... [2025-01-24 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:20:21] Production.INFO: 43 MB #Memory Used# [2025-01-24 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:21:05 [end_date_ymd] => 2025-01-24 22:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:21:05' and `end` < '2025-01-24 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-24 22:21:18] Production.INFO: count ==2006 [2025-01-24 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:21:05 - End Time 2025-01-24 22:21:05 [2025-01-24 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322673', 'tblTempUsageDetail_20' ) start [2025-01-24 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322673', 'tblTempUsageDetail_20' ) end [2025-01-24 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322673', 'tblTempVendorCDR_20' ) start [2025-01-24 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322673', 'tblTempVendorCDR_20' ) end [2025-01-24 22:21:19] Production.INFO: ProcessCDR(1,14322673,1,1,2) [2025-01-24 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322673', 'tblTempUsageDetail_20' ) start [2025-01-24 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322673', 'tblTempUsageDetail_20' ) end [2025-01-24 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:21:22] Production.INFO: ==7466== Releasing lock... [2025-01-24 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:21:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:22:05 [end_date_ymd] => 2025-01-24 22:22:05 [RateCDR] => 1 ) [2025-01-24 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:22:05' and `end` < '2025-01-24 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:22:18] Production.INFO: count ==2001 [2025-01-24 22:22:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:22:05 - End Time 2025-01-24 22:22:05 [2025-01-24 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322678', 'tblTempUsageDetail_20' ) start [2025-01-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322678', 'tblTempUsageDetail_20' ) end [2025-01-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322678', 'tblTempVendorCDR_20' ) start [2025-01-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322678', 'tblTempVendorCDR_20' ) end [2025-01-24 22:22:19] Production.INFO: ProcessCDR(1,14322678,1,1,2) [2025-01-24 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322678', 'tblTempUsageDetail_20' ) start [2025-01-24 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322678', 'tblTempUsageDetail_20' ) end [2025-01-24 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:22:22] Production.INFO: ==7538== Releasing lock... [2025-01-24 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:22:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:23:06 [end_date_ymd] => 2025-01-24 22:23:06 [RateCDR] => 1 ) [2025-01-24 22: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-24 19:23:06' and `end` < '2025-01-24 22: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-24 22:23:18] Production.INFO: count ==2001 [2025-01-24 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:23:06 - End Time 2025-01-24 22:23:06 [2025-01-24 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322683', 'tblTempUsageDetail_20' ) start [2025-01-24 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322683', 'tblTempUsageDetail_20' ) end [2025-01-24 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322683', 'tblTempVendorCDR_20' ) start [2025-01-24 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322683', 'tblTempVendorCDR_20' ) end [2025-01-24 22:23:19] Production.INFO: ProcessCDR(1,14322683,1,1,2) [2025-01-24 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322683', 'tblTempUsageDetail_20' ) start [2025-01-24 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322683', 'tblTempUsageDetail_20' ) end [2025-01-24 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:23:23] Production.INFO: ==7613== Releasing lock... [2025-01-24 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:23:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:24:05 [end_date_ymd] => 2025-01-24 22:24:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:24:05' and `end` < '2025-01-24 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-24 22:24:19] Production.INFO: count ==1999 [2025-01-24 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:24:05 - End Time 2025-01-24 22:24:05 [2025-01-24 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322688', 'tblTempUsageDetail_20' ) start [2025-01-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322688', 'tblTempUsageDetail_20' ) end [2025-01-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322688', 'tblTempVendorCDR_20' ) start [2025-01-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322688', 'tblTempVendorCDR_20' ) end [2025-01-24 22:24:19] Production.INFO: ProcessCDR(1,14322688,1,1,2) [2025-01-24 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322688', 'tblTempUsageDetail_20' ) start [2025-01-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322688', 'tblTempUsageDetail_20' ) end [2025-01-24 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:24:22] Production.INFO: ==7692== Releasing lock... [2025-01-24 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:24:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:25:05 [end_date_ymd] => 2025-01-24 22:25:05 [RateCDR] => 1 ) [2025-01-24 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:25:05' and `end` < '2025-01-24 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:25:20] Production.INFO: count ==1993 [2025-01-24 22:25:21] Production.ERROR: pbx CDR StartTime 2025-01-24 19:25:05 - End Time 2025-01-24 22:25:05 [2025-01-24 22:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322693', 'tblTempUsageDetail_20' ) start [2025-01-24 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322693', 'tblTempUsageDetail_20' ) end [2025-01-24 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322693', 'tblTempVendorCDR_20' ) start [2025-01-24 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322693', 'tblTempVendorCDR_20' ) end [2025-01-24 22:25:21] Production.INFO: ProcessCDR(1,14322693,1,1,2) [2025-01-24 22:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322693', 'tblTempUsageDetail_20' ) start [2025-01-24 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322693', 'tblTempUsageDetail_20' ) end [2025-01-24 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:25:24] Production.INFO: ==7769== Releasing lock... [2025-01-24 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:25:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-24 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:26:05 [end_date_ymd] => 2025-01-24 22:26:05 [RateCDR] => 1 ) [2025-01-24 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:26:05' and `end` < '2025-01-24 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:26:19] Production.INFO: count ==1986 [2025-01-24 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:26:05 - End Time 2025-01-24 22:26:05 [2025-01-24 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322698', 'tblTempUsageDetail_20' ) start [2025-01-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322698', 'tblTempUsageDetail_20' ) end [2025-01-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322698', 'tblTempVendorCDR_20' ) start [2025-01-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322698', 'tblTempVendorCDR_20' ) end [2025-01-24 22:26:19] Production.INFO: ProcessCDR(1,14322698,1,1,2) [2025-01-24 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322698', 'tblTempUsageDetail_20' ) start [2025-01-24 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322698', 'tblTempUsageDetail_20' ) end [2025-01-24 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:26:22] Production.INFO: ==7850== Releasing lock... [2025-01-24 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:26:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:27:05 [end_date_ymd] => 2025-01-24 22:27:05 [RateCDR] => 1 ) [2025-01-24 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:27:05' and `end` < '2025-01-24 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:27:19] Production.INFO: count ==1985 [2025-01-24 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:27:05 - End Time 2025-01-24 22:27:05 [2025-01-24 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322703', 'tblTempUsageDetail_20' ) start [2025-01-24 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322703', 'tblTempUsageDetail_20' ) end [2025-01-24 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322703', 'tblTempVendorCDR_20' ) start [2025-01-24 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322703', 'tblTempVendorCDR_20' ) end [2025-01-24 22:27:19] Production.INFO: ProcessCDR(1,14322703,1,1,2) [2025-01-24 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322703', 'tblTempUsageDetail_20' ) start [2025-01-24 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322703', 'tblTempUsageDetail_20' ) end [2025-01-24 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:27:22] Production.INFO: ==7928== Releasing lock... [2025-01-24 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:27:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:28:04 [end_date_ymd] => 2025-01-24 22:28:04 [RateCDR] => 1 ) [2025-01-24 22: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-24 19:28:04' and `end` < '2025-01-24 22: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-24 22:28:17] Production.INFO: count ==1983 [2025-01-24 22:28:17] Production.ERROR: pbx CDR StartTime 2025-01-24 19:28:04 - End Time 2025-01-24 22:28:04 [2025-01-24 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322708', 'tblTempUsageDetail_20' ) start [2025-01-24 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322708', 'tblTempUsageDetail_20' ) end [2025-01-24 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322708', 'tblTempVendorCDR_20' ) start [2025-01-24 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322708', 'tblTempVendorCDR_20' ) end [2025-01-24 22:28:17] Production.INFO: ProcessCDR(1,14322708,1,1,2) [2025-01-24 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322708', 'tblTempUsageDetail_20' ) start [2025-01-24 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322708', 'tblTempUsageDetail_20' ) end [2025-01-24 22:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:28:20] Production.INFO: ==8001== Releasing lock... [2025-01-24 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:28:20] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:29:06 [end_date_ymd] => 2025-01-24 22:29:06 [RateCDR] => 1 ) [2025-01-24 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-24 19:29:06' and `end` < '2025-01-24 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-24 22:29:19] Production.INFO: count ==1982 [2025-01-24 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:29:06 - End Time 2025-01-24 22:29:06 [2025-01-24 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322713', 'tblTempUsageDetail_20' ) start [2025-01-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322713', 'tblTempUsageDetail_20' ) end [2025-01-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322713', 'tblTempVendorCDR_20' ) start [2025-01-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322713', 'tblTempVendorCDR_20' ) end [2025-01-24 22:29:19] Production.INFO: ProcessCDR(1,14322713,1,1,2) [2025-01-24 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322713', 'tblTempUsageDetail_20' ) start [2025-01-24 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322713', 'tblTempUsageDetail_20' ) end [2025-01-24 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:29:22] Production.INFO: ==8077== Releasing lock... [2025-01-24 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:29:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-24 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:30:05 [end_date_ymd] => 2025-01-24 22:30:05 [RateCDR] => 1 ) [2025-01-24 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:30:05' and `end` < '2025-01-24 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:30:19] Production.INFO: count ==1976 [2025-01-24 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:30:05 - End Time 2025-01-24 22:30:05 [2025-01-24 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322719', 'tblTempUsageDetail_20' ) start [2025-01-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322719', 'tblTempUsageDetail_20' ) end [2025-01-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322719', 'tblTempVendorCDR_20' ) start [2025-01-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322719', 'tblTempVendorCDR_20' ) end [2025-01-24 22:30:19] Production.INFO: ProcessCDR(1,14322719,1,1,2) [2025-01-24 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322719', 'tblTempUsageDetail_20' ) start [2025-01-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322719', 'tblTempUsageDetail_20' ) end [2025-01-24 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:30:22] Production.INFO: ==8164== Releasing lock... [2025-01-24 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:30:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-24 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:31:05 [end_date_ymd] => 2025-01-24 22:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:31:05' and `end` < '2025-01-24 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-24 22:31:18] Production.INFO: count ==1890 [2025-01-24 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:31:05 - End Time 2025-01-24 22:31:05 [2025-01-24 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322724', 'tblTempUsageDetail_20' ) start [2025-01-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322724', 'tblTempUsageDetail_20' ) end [2025-01-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322724', 'tblTempVendorCDR_20' ) start [2025-01-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322724', 'tblTempVendorCDR_20' ) end [2025-01-24 22:31:18] Production.INFO: ProcessCDR(1,14322724,1,1,2) [2025-01-24 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322724', 'tblTempUsageDetail_20' ) start [2025-01-24 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322724', 'tblTempUsageDetail_20' ) end [2025-01-24 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:31:21] Production.INFO: ==8244== Releasing lock... [2025-01-24 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:31:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:32:06 [end_date_ymd] => 2025-01-24 22:32:06 [RateCDR] => 1 ) [2025-01-24 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:32:06' and `end` < '2025-01-24 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:32:19] Production.INFO: count ==1888 [2025-01-24 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:32:06 - End Time 2025-01-24 22:32:06 [2025-01-24 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322729', 'tblTempUsageDetail_20' ) start [2025-01-24 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322729', 'tblTempUsageDetail_20' ) end [2025-01-24 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322729', 'tblTempVendorCDR_20' ) start [2025-01-24 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322729', 'tblTempVendorCDR_20' ) end [2025-01-24 22:32:19] Production.INFO: ProcessCDR(1,14322729,1,1,2) [2025-01-24 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322729', 'tblTempUsageDetail_20' ) start [2025-01-24 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322729', 'tblTempUsageDetail_20' ) end [2025-01-24 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:32:22] Production.INFO: ==8323== Releasing lock... [2025-01-24 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:32:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:33:06 [end_date_ymd] => 2025-01-24 22:33:06 [RateCDR] => 1 ) [2025-01-24 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-24 19:33:06' and `end` < '2025-01-24 22: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-24 22:33:19] Production.INFO: count ==1884 [2025-01-24 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:33:06 - End Time 2025-01-24 22:33:06 [2025-01-24 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322734', 'tblTempUsageDetail_20' ) start [2025-01-24 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322734', 'tblTempUsageDetail_20' ) end [2025-01-24 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322734', 'tblTempVendorCDR_20' ) start [2025-01-24 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322734', 'tblTempVendorCDR_20' ) end [2025-01-24 22:33:20] Production.INFO: ProcessCDR(1,14322734,1,1,2) [2025-01-24 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322734', 'tblTempUsageDetail_20' ) start [2025-01-24 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322734', 'tblTempUsageDetail_20' ) end [2025-01-24 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:33:23] Production.INFO: ==8440== Releasing lock... [2025-01-24 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:33:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:34:05 [end_date_ymd] => 2025-01-24 22:34:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:34:05' and `end` < '2025-01-24 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-24 22:34:17] Production.INFO: count ==1883 [2025-01-24 22:34:17] Production.ERROR: pbx CDR StartTime 2025-01-24 19:34:05 - End Time 2025-01-24 22:34:05 [2025-01-24 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322739', 'tblTempUsageDetail_20' ) start [2025-01-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322739', 'tblTempUsageDetail_20' ) end [2025-01-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322739', 'tblTempVendorCDR_20' ) start [2025-01-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322739', 'tblTempVendorCDR_20' ) end [2025-01-24 22:34:18] Production.INFO: ProcessCDR(1,14322739,1,1,2) [2025-01-24 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322739', 'tblTempUsageDetail_20' ) start [2025-01-24 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322739', 'tblTempUsageDetail_20' ) end [2025-01-24 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:34:21] Production.INFO: ==8514== Releasing lock... [2025-01-24 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:34:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:35:05 [end_date_ymd] => 2025-01-24 22:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:35:05' and `end` < '2025-01-24 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-24 22:35:18] Production.INFO: count ==1878 [2025-01-24 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:35:05 - End Time 2025-01-24 22:35:05 [2025-01-24 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322744', 'tblTempUsageDetail_20' ) start [2025-01-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322744', 'tblTempUsageDetail_20' ) end [2025-01-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322744', 'tblTempVendorCDR_20' ) start [2025-01-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322744', 'tblTempVendorCDR_20' ) end [2025-01-24 22:35:18] Production.INFO: ProcessCDR(1,14322744,1,1,2) [2025-01-24 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322744', 'tblTempUsageDetail_20' ) start [2025-01-24 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322744', 'tblTempUsageDetail_20' ) end [2025-01-24 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:35:21] Production.INFO: ==8592== Releasing lock... [2025-01-24 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:35:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:36:05 [end_date_ymd] => 2025-01-24 22:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:36:05' and `end` < '2025-01-24 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-24 22:36:18] Production.INFO: count ==1874 [2025-01-24 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:36:05 - End Time 2025-01-24 22:36:05 [2025-01-24 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322749', 'tblTempUsageDetail_20' ) start [2025-01-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322749', 'tblTempUsageDetail_20' ) end [2025-01-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322749', 'tblTempVendorCDR_20' ) start [2025-01-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322749', 'tblTempVendorCDR_20' ) end [2025-01-24 22:36:18] Production.INFO: ProcessCDR(1,14322749,1,1,2) [2025-01-24 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322749', 'tblTempUsageDetail_20' ) start [2025-01-24 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322749', 'tblTempUsageDetail_20' ) end [2025-01-24 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:36:21] Production.INFO: ==8673== Releasing lock... [2025-01-24 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:36:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-24 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:37:05 [end_date_ymd] => 2025-01-24 22:37:05 [RateCDR] => 1 ) [2025-01-24 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:37:05' and `end` < '2025-01-24 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:37:18] Production.INFO: count ==1872 [2025-01-24 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:37:05 - End Time 2025-01-24 22:37:05 [2025-01-24 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322754', 'tblTempUsageDetail_20' ) start [2025-01-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322754', 'tblTempUsageDetail_20' ) end [2025-01-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322754', 'tblTempVendorCDR_20' ) start [2025-01-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322754', 'tblTempVendorCDR_20' ) end [2025-01-24 22:37:18] Production.INFO: ProcessCDR(1,14322754,1,1,2) [2025-01-24 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322754', 'tblTempUsageDetail_20' ) start [2025-01-24 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322754', 'tblTempUsageDetail_20' ) end [2025-01-24 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:37:21] Production.INFO: ==8749== Releasing lock... [2025-01-24 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:37:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-24 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:38:05 [end_date_ymd] => 2025-01-24 22:38:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:38:05' and `end` < '2025-01-24 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-24 22:38:17] Production.INFO: count ==1866 [2025-01-24 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:38:05 - End Time 2025-01-24 22:38:05 [2025-01-24 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322759', 'tblTempUsageDetail_20' ) start [2025-01-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322759', 'tblTempUsageDetail_20' ) end [2025-01-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322759', 'tblTempVendorCDR_20' ) start [2025-01-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322759', 'tblTempVendorCDR_20' ) end [2025-01-24 22:38:18] Production.INFO: ProcessCDR(1,14322759,1,1,2) [2025-01-24 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322759', 'tblTempUsageDetail_20' ) start [2025-01-24 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322759', 'tblTempUsageDetail_20' ) end [2025-01-24 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:38:21] Production.INFO: ==8828== Releasing lock... [2025-01-24 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:38:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-24 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:39:05 [end_date_ymd] => 2025-01-24 22:39:05 [RateCDR] => 1 ) [2025-01-24 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:39:05' and `end` < '2025-01-24 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:39:18] Production.INFO: count ==1872 [2025-01-24 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:39:05 - End Time 2025-01-24 22:39:05 [2025-01-24 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322764', 'tblTempUsageDetail_20' ) start [2025-01-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322764', 'tblTempUsageDetail_20' ) end [2025-01-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322764', 'tblTempVendorCDR_20' ) start [2025-01-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322764', 'tblTempVendorCDR_20' ) end [2025-01-24 22:39:18] Production.INFO: ProcessCDR(1,14322764,1,1,2) [2025-01-24 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322764', 'tblTempUsageDetail_20' ) start [2025-01-24 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322764', 'tblTempUsageDetail_20' ) end [2025-01-24 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:39:22] Production.INFO: ==8905== Releasing lock... [2025-01-24 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-24 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:40:06 [end_date_ymd] => 2025-01-24 22:40:06 [RateCDR] => 1 ) [2025-01-24 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-24 19:40:06' and `end` < '2025-01-24 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-24 22:40:19] Production.INFO: count ==1870 [2025-01-24 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:40:06 - End Time 2025-01-24 22:40:06 [2025-01-24 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322770', 'tblTempUsageDetail_20' ) start [2025-01-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322770', 'tblTempUsageDetail_20' ) end [2025-01-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322770', 'tblTempVendorCDR_20' ) start [2025-01-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322770', 'tblTempVendorCDR_20' ) end [2025-01-24 22:40:19] Production.INFO: ProcessCDR(1,14322770,1,1,2) [2025-01-24 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322770', 'tblTempUsageDetail_20' ) start [2025-01-24 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322770', 'tblTempUsageDetail_20' ) end [2025-01-24 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:40:22] Production.INFO: ==8984== Releasing lock... [2025-01-24 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:40:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-24 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:41:05 [end_date_ymd] => 2025-01-24 22:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:41:05' and `end` < '2025-01-24 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-24 22:41:18] Production.INFO: count ==1766 [2025-01-24 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:41:05 - End Time 2025-01-24 22:41:05 [2025-01-24 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322775', 'tblTempUsageDetail_20' ) start [2025-01-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322775', 'tblTempUsageDetail_20' ) end [2025-01-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322775', 'tblTempVendorCDR_20' ) start [2025-01-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322775', 'tblTempVendorCDR_20' ) end [2025-01-24 22:41:18] Production.INFO: ProcessCDR(1,14322775,1,1,2) [2025-01-24 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322775', 'tblTempUsageDetail_20' ) start [2025-01-24 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322775', 'tblTempUsageDetail_20' ) end [2025-01-24 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:41:21] Production.INFO: ==9061== Releasing lock... [2025-01-24 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:41:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-24 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:42:05 [end_date_ymd] => 2025-01-24 22:42:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:42:05' and `end` < '2025-01-24 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-24 22:42:17] Production.INFO: count ==1762 [2025-01-24 22:42:17] Production.ERROR: pbx CDR StartTime 2025-01-24 19:42:05 - End Time 2025-01-24 22:42:05 [2025-01-24 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322780', 'tblTempUsageDetail_20' ) start [2025-01-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322780', 'tblTempUsageDetail_20' ) end [2025-01-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322780', 'tblTempVendorCDR_20' ) start [2025-01-24 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322780', 'tblTempVendorCDR_20' ) end [2025-01-24 22:42:17] Production.INFO: ProcessCDR(1,14322780,1,1,2) [2025-01-24 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322780', 'tblTempUsageDetail_20' ) start [2025-01-24 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322780', 'tblTempUsageDetail_20' ) end [2025-01-24 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:42:21] Production.INFO: ==9140== Releasing lock... [2025-01-24 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:42:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-24 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:43:05 [end_date_ymd] => 2025-01-24 22:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:43:05' and `end` < '2025-01-24 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-24 22:43:18] Production.INFO: count ==1754 [2025-01-24 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:43:05 - End Time 2025-01-24 22:43:05 [2025-01-24 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322785', 'tblTempUsageDetail_20' ) start [2025-01-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322785', 'tblTempUsageDetail_20' ) end [2025-01-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322785', 'tblTempVendorCDR_20' ) start [2025-01-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322785', 'tblTempVendorCDR_20' ) end [2025-01-24 22:43:18] Production.INFO: ProcessCDR(1,14322785,1,1,2) [2025-01-24 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322785', 'tblTempUsageDetail_20' ) start [2025-01-24 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322785', 'tblTempUsageDetail_20' ) end [2025-01-24 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:43:22] Production.INFO: ==9217== Releasing lock... [2025-01-24 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:43:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-24 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:44:05 [end_date_ymd] => 2025-01-24 22:44:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:44:05' and `end` < '2025-01-24 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-24 22:44:18] Production.INFO: count ==1752 [2025-01-24 22:44:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:44:05 - End Time 2025-01-24 22:44:05 [2025-01-24 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322790', 'tblTempUsageDetail_20' ) start [2025-01-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322790', 'tblTempUsageDetail_20' ) end [2025-01-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322790', 'tblTempVendorCDR_20' ) start [2025-01-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322790', 'tblTempVendorCDR_20' ) end [2025-01-24 22:44:19] Production.INFO: ProcessCDR(1,14322790,1,1,2) [2025-01-24 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322790', 'tblTempUsageDetail_20' ) start [2025-01-24 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322790', 'tblTempUsageDetail_20' ) end [2025-01-24 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:44:22] Production.INFO: ==9292== Releasing lock... [2025-01-24 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:44:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-24 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:45:06 [end_date_ymd] => 2025-01-24 22:45:06 [RateCDR] => 1 ) [2025-01-24 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-24 19:45:06' and `end` < '2025-01-24 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-24 22:45:19] Production.INFO: count ==1747 [2025-01-24 22:45:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:45:06 - End Time 2025-01-24 22:45:06 [2025-01-24 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322795', 'tblTempUsageDetail_20' ) start [2025-01-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322795', 'tblTempUsageDetail_20' ) end [2025-01-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322795', 'tblTempVendorCDR_20' ) start [2025-01-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322795', 'tblTempVendorCDR_20' ) end [2025-01-24 22:45:19] Production.INFO: ProcessCDR(1,14322795,1,1,2) [2025-01-24 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322795', 'tblTempUsageDetail_20' ) start [2025-01-24 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322795', 'tblTempUsageDetail_20' ) end [2025-01-24 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:45:22] Production.INFO: ==9370== Releasing lock... [2025-01-24 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-24 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:46:05 [end_date_ymd] => 2025-01-24 22:46:05 [RateCDR] => 1 ) [2025-01-24 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:46:05' and `end` < '2025-01-24 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:46:18] Production.INFO: count ==1737 [2025-01-24 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:46:05 - End Time 2025-01-24 22:46:05 [2025-01-24 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322800', 'tblTempUsageDetail_20' ) start [2025-01-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322800', 'tblTempUsageDetail_20' ) end [2025-01-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322800', 'tblTempVendorCDR_20' ) start [2025-01-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322800', 'tblTempVendorCDR_20' ) end [2025-01-24 22:46:18] Production.INFO: ProcessCDR(1,14322800,1,1,2) [2025-01-24 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322800', 'tblTempUsageDetail_20' ) start [2025-01-24 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322800', 'tblTempUsageDetail_20' ) end [2025-01-24 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:46:21] Production.INFO: ==9447== Releasing lock... [2025-01-24 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:46:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-24 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:47:05 [end_date_ymd] => 2025-01-24 22:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:47:05' and `end` < '2025-01-24 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-24 22:47:19] Production.INFO: count ==1736 [2025-01-24 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:47:05 - End Time 2025-01-24 22:47:05 [2025-01-24 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322805', 'tblTempUsageDetail_20' ) start [2025-01-24 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322805', 'tblTempUsageDetail_20' ) end [2025-01-24 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322805', 'tblTempVendorCDR_20' ) start [2025-01-24 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322805', 'tblTempVendorCDR_20' ) end [2025-01-24 22:47:19] Production.INFO: ProcessCDR(1,14322805,1,1,2) [2025-01-24 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322805', 'tblTempUsageDetail_20' ) start [2025-01-24 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322805', 'tblTempUsageDetail_20' ) end [2025-01-24 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:47:22] Production.INFO: ==9525== Releasing lock... [2025-01-24 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-24 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:48:04 [end_date_ymd] => 2025-01-24 22:48:04 [RateCDR] => 1 ) [2025-01-24 22:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:48:04' and `end` < '2025-01-24 22:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:48:17] Production.INFO: count ==1736 [2025-01-24 22:48:17] Production.ERROR: pbx CDR StartTime 2025-01-24 19:48:04 - End Time 2025-01-24 22:48:04 [2025-01-24 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322810', 'tblTempUsageDetail_20' ) start [2025-01-24 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322810', 'tblTempUsageDetail_20' ) end [2025-01-24 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322810', 'tblTempVendorCDR_20' ) start [2025-01-24 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322810', 'tblTempVendorCDR_20' ) end [2025-01-24 22:48:17] Production.INFO: ProcessCDR(1,14322810,1,1,2) [2025-01-24 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322810', 'tblTempUsageDetail_20' ) start [2025-01-24 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322810', 'tblTempUsageDetail_20' ) end [2025-01-24 22:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:48:20] Production.INFO: ==9640== Releasing lock... [2025-01-24 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:48:20] Production.INFO: 40.5 MB #Memory Used# [2025-01-24 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:49:05 [end_date_ymd] => 2025-01-24 22:49:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:49:05' and `end` < '2025-01-24 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-24 22:49:17] Production.INFO: count ==1731 [2025-01-24 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:49:05 - End Time 2025-01-24 22:49:05 [2025-01-24 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322815', 'tblTempUsageDetail_20' ) start [2025-01-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322815', 'tblTempUsageDetail_20' ) end [2025-01-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322815', 'tblTempVendorCDR_20' ) start [2025-01-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322815', 'tblTempVendorCDR_20' ) end [2025-01-24 22:49:18] Production.INFO: ProcessCDR(1,14322815,1,1,2) [2025-01-24 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322815', 'tblTempUsageDetail_20' ) start [2025-01-24 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322815', 'tblTempUsageDetail_20' ) end [2025-01-24 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:49:21] Production.INFO: ==9723== Releasing lock... [2025-01-24 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:49:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-24 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:50:06 [end_date_ymd] => 2025-01-24 22:50:06 [RateCDR] => 1 ) [2025-01-24 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-24 19:50:06' and `end` < '2025-01-24 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-24 22:50:19] Production.INFO: count ==1732 [2025-01-24 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:50:06 - End Time 2025-01-24 22:50:06 [2025-01-24 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322820', 'tblTempUsageDetail_20' ) start [2025-01-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322820', 'tblTempUsageDetail_20' ) end [2025-01-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322820', 'tblTempVendorCDR_20' ) start [2025-01-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322820', 'tblTempVendorCDR_20' ) end [2025-01-24 22:50:19] Production.INFO: ProcessCDR(1,14322820,1,1,2) [2025-01-24 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322820', 'tblTempUsageDetail_20' ) start [2025-01-24 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322820', 'tblTempUsageDetail_20' ) end [2025-01-24 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:50:22] Production.INFO: ==9805== Releasing lock... [2025-01-24 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:50:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-24 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:51:05 [end_date_ymd] => 2025-01-24 22:51:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:51:05' and `end` < '2025-01-24 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-24 22:51:18] Production.INFO: count ==1638 [2025-01-24 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:51:05 - End Time 2025-01-24 22:51:05 [2025-01-24 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322826', 'tblTempUsageDetail_20' ) start [2025-01-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322826', 'tblTempUsageDetail_20' ) end [2025-01-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322826', 'tblTempVendorCDR_20' ) start [2025-01-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322826', 'tblTempVendorCDR_20' ) end [2025-01-24 22:51:18] Production.INFO: ProcessCDR(1,14322826,1,1,2) [2025-01-24 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322826', 'tblTempUsageDetail_20' ) start [2025-01-24 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322826', 'tblTempUsageDetail_20' ) end [2025-01-24 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:51:21] Production.INFO: ==9886== Releasing lock... [2025-01-24 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:51:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:52:05 [end_date_ymd] => 2025-01-24 22:52:05 [RateCDR] => 1 ) [2025-01-24 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:52:05' and `end` < '2025-01-24 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:52:18] Production.INFO: count ==1637 [2025-01-24 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:52:05 - End Time 2025-01-24 22:52:05 [2025-01-24 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322831', 'tblTempUsageDetail_20' ) start [2025-01-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322831', 'tblTempUsageDetail_20' ) end [2025-01-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322831', 'tblTempVendorCDR_20' ) start [2025-01-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322831', 'tblTempVendorCDR_20' ) end [2025-01-24 22:52:18] Production.INFO: ProcessCDR(1,14322831,1,1,2) [2025-01-24 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322831', 'tblTempUsageDetail_20' ) start [2025-01-24 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322831', 'tblTempUsageDetail_20' ) end [2025-01-24 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:52:21] Production.INFO: ==9962== Releasing lock... [2025-01-24 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:52:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:53:05 [end_date_ymd] => 2025-01-24 22:53:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:53:05' and `end` < '2025-01-24 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:53:18] Production.INFO: count ==1634 [2025-01-24 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:53:05 - End Time 2025-01-24 22:53:05 [2025-01-24 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322836', 'tblTempUsageDetail_20' ) start [2025-01-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322836', 'tblTempUsageDetail_20' ) end [2025-01-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322836', 'tblTempVendorCDR_20' ) start [2025-01-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322836', 'tblTempVendorCDR_20' ) end [2025-01-24 22:53:18] Production.INFO: ProcessCDR(1,14322836,1,1,2) [2025-01-24 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322836', 'tblTempUsageDetail_20' ) start [2025-01-24 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322836', 'tblTempUsageDetail_20' ) end [2025-01-24 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:53:21] Production.INFO: ==10036== Releasing lock... [2025-01-24 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:53:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:54:06 [end_date_ymd] => 2025-01-24 22:54:06 [RateCDR] => 1 ) [2025-01-24 22: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-24 19:54:06' and `end` < '2025-01-24 22: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-24 22:54:19] Production.INFO: count ==1629 [2025-01-24 22:54:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:54:06 - End Time 2025-01-24 22:54:06 [2025-01-24 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322841', 'tblTempUsageDetail_20' ) start [2025-01-24 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322841', 'tblTempUsageDetail_20' ) end [2025-01-24 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322841', 'tblTempVendorCDR_20' ) start [2025-01-24 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322841', 'tblTempVendorCDR_20' ) end [2025-01-24 22:54:19] Production.INFO: ProcessCDR(1,14322841,1,1,2) [2025-01-24 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322841', 'tblTempUsageDetail_20' ) start [2025-01-24 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322841', 'tblTempUsageDetail_20' ) end [2025-01-24 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:54:22] Production.INFO: ==10115== Releasing lock... [2025-01-24 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:54:22] Production.INFO: 40 MB #Memory Used# [2025-01-24 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:55:05 [end_date_ymd] => 2025-01-24 22:55:05 [RateCDR] => 1 ) [2025-01-24 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:55:05' and `end` < '2025-01-24 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:55:18] Production.INFO: count ==1631 [2025-01-24 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:55:05 - End Time 2025-01-24 22:55:05 [2025-01-24 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322846', 'tblTempUsageDetail_20' ) start [2025-01-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322846', 'tblTempUsageDetail_20' ) end [2025-01-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322846', 'tblTempVendorCDR_20' ) start [2025-01-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322846', 'tblTempVendorCDR_20' ) end [2025-01-24 22:55:18] Production.INFO: ProcessCDR(1,14322846,1,1,2) [2025-01-24 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322846', 'tblTempUsageDetail_20' ) start [2025-01-24 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322846', 'tblTempUsageDetail_20' ) end [2025-01-24 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:55:23] Production.INFO: ==10191== Releasing lock... [2025-01-24 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:55:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:56:05 [end_date_ymd] => 2025-01-24 22:56:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:56:05' and `end` < '2025-01-24 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-24 22:56:19] Production.INFO: count ==1630 [2025-01-24 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-24 19:56:05 - End Time 2025-01-24 22:56:05 [2025-01-24 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322851', 'tblTempUsageDetail_20' ) start [2025-01-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322851', 'tblTempUsageDetail_20' ) end [2025-01-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322851', 'tblTempVendorCDR_20' ) start [2025-01-24 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322851', 'tblTempVendorCDR_20' ) end [2025-01-24 22:56:19] Production.INFO: ProcessCDR(1,14322851,1,1,2) [2025-01-24 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322851', 'tblTempUsageDetail_20' ) start [2025-01-24 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322851', 'tblTempUsageDetail_20' ) end [2025-01-24 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:56:22] Production.INFO: ==10268== Releasing lock... [2025-01-24 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:56:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:57:05 [end_date_ymd] => 2025-01-24 22:57:05 [RateCDR] => 1 ) [2025-01-24 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:57:05' and `end` < '2025-01-24 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:57:17] Production.INFO: count ==1626 [2025-01-24 22:57:17] Production.ERROR: pbx CDR StartTime 2025-01-24 19:57:05 - End Time 2025-01-24 22:57:05 [2025-01-24 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322856', 'tblTempUsageDetail_20' ) start [2025-01-24 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322856', 'tblTempUsageDetail_20' ) end [2025-01-24 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322856', 'tblTempVendorCDR_20' ) start [2025-01-24 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322856', 'tblTempVendorCDR_20' ) end [2025-01-24 22:57:17] Production.INFO: ProcessCDR(1,14322856,1,1,2) [2025-01-24 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322856', 'tblTempUsageDetail_20' ) start [2025-01-24 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322856', 'tblTempUsageDetail_20' ) end [2025-01-24 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:57:21] Production.INFO: ==10346== Releasing lock... [2025-01-24 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:57:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:58:05 [end_date_ymd] => 2025-01-24 22:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 19:58:05' and `end` < '2025-01-24 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-24 22:58:18] Production.INFO: count ==1624 [2025-01-24 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:58:05 - End Time 2025-01-24 22:58:05 [2025-01-24 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322861', 'tblTempUsageDetail_20' ) start [2025-01-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322861', 'tblTempUsageDetail_20' ) end [2025-01-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322861', 'tblTempVendorCDR_20' ) start [2025-01-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322861', 'tblTempVendorCDR_20' ) end [2025-01-24 22:58:18] Production.INFO: ProcessCDR(1,14322861,1,1,2) [2025-01-24 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322861', 'tblTempUsageDetail_20' ) start [2025-01-24 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322861', 'tblTempUsageDetail_20' ) end [2025-01-24 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:58:21] Production.INFO: ==10421== Releasing lock... [2025-01-24 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:58:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 19:59:05 [end_date_ymd] => 2025-01-24 22:59:05 [RateCDR] => 1 ) [2025-01-24 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 19:59:05' and `end` < '2025-01-24 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 22:59:18] Production.INFO: count ==1624 [2025-01-24 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 19:59:05 - End Time 2025-01-24 22:59:05 [2025-01-24 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322866', 'tblTempUsageDetail_20' ) start [2025-01-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322866', 'tblTempUsageDetail_20' ) end [2025-01-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322866', 'tblTempVendorCDR_20' ) start [2025-01-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322866', 'tblTempVendorCDR_20' ) end [2025-01-24 22:59:18] Production.INFO: ProcessCDR(1,14322866,1,1,2) [2025-01-24 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322866', 'tblTempUsageDetail_20' ) start [2025-01-24 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322866', 'tblTempUsageDetail_20' ) end [2025-01-24 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 22:59:21] Production.INFO: ==10497== Releasing lock... [2025-01-24 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 22:59:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:00:06 [end_date_ymd] => 2025-01-24 23:00:06 [RateCDR] => 1 ) [2025-01-24 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-24 20:00:06' and `end` < '2025-01-24 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-24 23:00:19] Production.INFO: count ==1626 [2025-01-24 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:00:06 - End Time 2025-01-24 23:00:06 [2025-01-24 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322872', 'tblTempUsageDetail_20' ) start [2025-01-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322872', 'tblTempUsageDetail_20' ) end [2025-01-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322872', 'tblTempVendorCDR_20' ) start [2025-01-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322872', 'tblTempVendorCDR_20' ) end [2025-01-24 23:00:19] Production.INFO: ProcessCDR(1,14322872,1,1,2) [2025-01-24 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322872', 'tblTempUsageDetail_20' ) start [2025-01-24 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322872', 'tblTempUsageDetail_20' ) end [2025-01-24 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:00:22] Production.INFO: ==10576== Releasing lock... [2025-01-24 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-24 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:01:05 [end_date_ymd] => 2025-01-24 23:01:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:01:05' and `end` < '2025-01-24 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-24 23:01:17] Production.INFO: count ==1562 [2025-01-24 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:01:05 - End Time 2025-01-24 23:01:05 [2025-01-24 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322877', 'tblTempUsageDetail_20' ) start [2025-01-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322877', 'tblTempUsageDetail_20' ) end [2025-01-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322877', 'tblTempVendorCDR_20' ) start [2025-01-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322877', 'tblTempVendorCDR_20' ) end [2025-01-24 23:01:18] Production.INFO: ProcessCDR(1,14322877,1,1,2) [2025-01-24 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322877', 'tblTempUsageDetail_20' ) start [2025-01-24 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322877', 'tblTempUsageDetail_20' ) end [2025-01-24 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:01:21] Production.INFO: ==10666== Releasing lock... [2025-01-24 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:01:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-24 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:02:06 [end_date_ymd] => 2025-01-24 23:02:06 [RateCDR] => 1 ) [2025-01-24 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:02:06' and `end` < '2025-01-24 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:02:18] Production.INFO: count ==1564 [2025-01-24 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:02:06 - End Time 2025-01-24 23:02:06 [2025-01-24 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322882', 'tblTempUsageDetail_20' ) start [2025-01-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322882', 'tblTempUsageDetail_20' ) end [2025-01-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322882', 'tblTempVendorCDR_20' ) start [2025-01-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322882', 'tblTempVendorCDR_20' ) end [2025-01-24 23:02:18] Production.INFO: ProcessCDR(1,14322882,1,1,2) [2025-01-24 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322882', 'tblTempUsageDetail_20' ) start [2025-01-24 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322882', 'tblTempUsageDetail_20' ) end [2025-01-24 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:02:23] Production.INFO: ==10821== Releasing lock... [2025-01-24 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:02:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:03:06 [end_date_ymd] => 2025-01-24 23:03:06 [RateCDR] => 1 ) [2025-01-24 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-24 20:03:06' and `end` < '2025-01-24 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-24 23:03:19] Production.INFO: count ==1562 [2025-01-24 23:03:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:03:06 - End Time 2025-01-24 23:03:06 [2025-01-24 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322887', 'tblTempUsageDetail_20' ) start [2025-01-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322887', 'tblTempUsageDetail_20' ) end [2025-01-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322887', 'tblTempVendorCDR_20' ) start [2025-01-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322887', 'tblTempVendorCDR_20' ) end [2025-01-24 23:03:19] Production.INFO: ProcessCDR(1,14322887,1,1,2) [2025-01-24 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322887', 'tblTempUsageDetail_20' ) start [2025-01-24 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322887', 'tblTempUsageDetail_20' ) end [2025-01-24 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:03:22] Production.INFO: ==10895== Releasing lock... [2025-01-24 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:04:05 [end_date_ymd] => 2025-01-24 23:04:05 [RateCDR] => 1 ) [2025-01-24 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:04:05' and `end` < '2025-01-24 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:04:17] Production.INFO: count ==1562 [2025-01-24 23:04:17] Production.ERROR: pbx CDR StartTime 2025-01-24 20:04:05 - End Time 2025-01-24 23:04:05 [2025-01-24 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322892', 'tblTempUsageDetail_20' ) start [2025-01-24 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322892', 'tblTempUsageDetail_20' ) end [2025-01-24 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322892', 'tblTempVendorCDR_20' ) start [2025-01-24 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322892', 'tblTempVendorCDR_20' ) end [2025-01-24 23:04:17] Production.INFO: ProcessCDR(1,14322892,1,1,2) [2025-01-24 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322892', 'tblTempUsageDetail_20' ) start [2025-01-24 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322892', 'tblTempUsageDetail_20' ) end [2025-01-24 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:04:21] Production.INFO: ==11010== Releasing lock... [2025-01-24 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:04:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:05:05 [end_date_ymd] => 2025-01-24 23:05:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:05:05' and `end` < '2025-01-24 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-24 23:05:18] Production.INFO: count ==1562 [2025-01-24 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:05:05 - End Time 2025-01-24 23:05:05 [2025-01-24 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322897', 'tblTempUsageDetail_20' ) start [2025-01-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322897', 'tblTempUsageDetail_20' ) end [2025-01-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322897', 'tblTempVendorCDR_20' ) start [2025-01-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322897', 'tblTempVendorCDR_20' ) end [2025-01-24 23:05:18] Production.INFO: ProcessCDR(1,14322897,1,1,2) [2025-01-24 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322897', 'tblTempUsageDetail_20' ) start [2025-01-24 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322897', 'tblTempUsageDetail_20' ) end [2025-01-24 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:05:21] Production.INFO: ==11165== Releasing lock... [2025-01-24 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:05:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:06:05 [end_date_ymd] => 2025-01-24 23:06:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:06:05' and `end` < '2025-01-24 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-24 23:06:19] Production.INFO: count ==1561 [2025-01-24 23:06:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:06:05 - End Time 2025-01-24 23:06:05 [2025-01-24 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322902', 'tblTempUsageDetail_20' ) start [2025-01-24 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322902', 'tblTempUsageDetail_20' ) end [2025-01-24 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322902', 'tblTempVendorCDR_20' ) start [2025-01-24 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322902', 'tblTempVendorCDR_20' ) end [2025-01-24 23:06:20] Production.INFO: ProcessCDR(1,14322902,1,1,2) [2025-01-24 23:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322902', 'tblTempUsageDetail_20' ) start [2025-01-24 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322902', 'tblTempUsageDetail_20' ) end [2025-01-24 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:06:23] Production.INFO: ==11241== Releasing lock... [2025-01-24 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-24 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:07:05 [end_date_ymd] => 2025-01-24 23:07:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:07:05' and `end` < '2025-01-24 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-24 23:07:18] Production.INFO: count ==1555 [2025-01-24 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:07:05 - End Time 2025-01-24 23:07:05 [2025-01-24 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322907', 'tblTempUsageDetail_20' ) start [2025-01-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322907', 'tblTempUsageDetail_20' ) end [2025-01-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322907', 'tblTempVendorCDR_20' ) start [2025-01-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322907', 'tblTempVendorCDR_20' ) end [2025-01-24 23:07:18] Production.INFO: ProcessCDR(1,14322907,1,1,2) [2025-01-24 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322907', 'tblTempUsageDetail_20' ) start [2025-01-24 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322907', 'tblTempUsageDetail_20' ) end [2025-01-24 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:07:21] Production.INFO: ==11320== Releasing lock... [2025-01-24 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:07:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:08:05 [end_date_ymd] => 2025-01-24 23:08:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:08:05' and `end` < '2025-01-24 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-24 23:08:17] Production.INFO: count ==1553 [2025-01-24 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:08:05 - End Time 2025-01-24 23:08:05 [2025-01-24 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322912', 'tblTempUsageDetail_20' ) start [2025-01-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322912', 'tblTempUsageDetail_20' ) end [2025-01-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322912', 'tblTempVendorCDR_20' ) start [2025-01-24 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322912', 'tblTempVendorCDR_20' ) end [2025-01-24 23:08:18] Production.INFO: ProcessCDR(1,14322912,1,1,2) [2025-01-24 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322912', 'tblTempUsageDetail_20' ) start [2025-01-24 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322912', 'tblTempUsageDetail_20' ) end [2025-01-24 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:08:21] Production.INFO: ==11474== Releasing lock... [2025-01-24 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:08:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:09:05 [end_date_ymd] => 2025-01-24 23:09:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:09:05' and `end` < '2025-01-24 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-24 23:09:18] Production.INFO: count ==1554 [2025-01-24 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:09:05 - End Time 2025-01-24 23:09:05 [2025-01-24 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322917', 'tblTempUsageDetail_20' ) start [2025-01-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322917', 'tblTempUsageDetail_20' ) end [2025-01-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322917', 'tblTempVendorCDR_20' ) start [2025-01-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322917', 'tblTempVendorCDR_20' ) end [2025-01-24 23:09:18] Production.INFO: ProcessCDR(1,14322917,1,1,2) [2025-01-24 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322917', 'tblTempUsageDetail_20' ) start [2025-01-24 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322917', 'tblTempUsageDetail_20' ) end [2025-01-24 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:09:22] Production.INFO: ==11552== Releasing lock... [2025-01-24 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:09:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:10:05 [end_date_ymd] => 2025-01-24 23:10:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:10:05' and `end` < '2025-01-24 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-24 23:10:18] Production.INFO: count ==1554 [2025-01-24 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:10:05 - End Time 2025-01-24 23:10:05 [2025-01-24 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322922', 'tblTempUsageDetail_20' ) start [2025-01-24 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322922', 'tblTempUsageDetail_20' ) end [2025-01-24 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322922', 'tblTempVendorCDR_20' ) start [2025-01-24 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322922', 'tblTempVendorCDR_20' ) end [2025-01-24 23:10:18] Production.INFO: ProcessCDR(1,14322922,1,1,2) [2025-01-24 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322922', 'tblTempUsageDetail_20' ) start [2025-01-24 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322922', 'tblTempUsageDetail_20' ) end [2025-01-24 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:10:21] Production.INFO: ==11636== Releasing lock... [2025-01-24 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:10:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-24 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:11:05 [end_date_ymd] => 2025-01-24 23:11:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:11:05' and `end` < '2025-01-24 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-24 23:11:18] Production.INFO: count ==1458 [2025-01-24 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:11:05 - End Time 2025-01-24 23:11:05 [2025-01-24 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322924', 'tblTempUsageDetail_20' ) start [2025-01-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322924', 'tblTempUsageDetail_20' ) end [2025-01-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322924', 'tblTempVendorCDR_20' ) start [2025-01-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322924', 'tblTempVendorCDR_20' ) end [2025-01-24 23:11:18] Production.INFO: ProcessCDR(1,14322924,1,1,2) [2025-01-24 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322924', 'tblTempUsageDetail_20' ) start [2025-01-24 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322924', 'tblTempUsageDetail_20' ) end [2025-01-24 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:11:21] Production.INFO: ==11711== Releasing lock... [2025-01-24 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:12:06 [end_date_ymd] => 2025-01-24 23:12:06 [RateCDR] => 1 ) [2025-01-24 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-24 20:12:06' and `end` < '2025-01-24 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-24 23:12:19] Production.INFO: count ==1455 [2025-01-24 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:12:06 - End Time 2025-01-24 23:12:06 [2025-01-24 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322933', 'tblTempUsageDetail_20' ) start [2025-01-24 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322933', 'tblTempUsageDetail_20' ) end [2025-01-24 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322933', 'tblTempVendorCDR_20' ) start [2025-01-24 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322933', 'tblTempVendorCDR_20' ) end [2025-01-24 23:12:19] Production.INFO: ProcessCDR(1,14322933,1,1,2) [2025-01-24 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322933', 'tblTempUsageDetail_20' ) start [2025-01-24 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322933', 'tblTempUsageDetail_20' ) end [2025-01-24 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:12:22] Production.INFO: ==11860== Releasing lock... [2025-01-24 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:12:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:13:06 [end_date_ymd] => 2025-01-24 23:13:06 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:13:06' and `end` < '2025-01-24 23: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-24 23:13:19] Production.INFO: count ==1452 [2025-01-24 23:13:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:13:06 - End Time 2025-01-24 23:13:06 [2025-01-24 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322938', 'tblTempUsageDetail_20' ) start [2025-01-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322938', 'tblTempUsageDetail_20' ) end [2025-01-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322938', 'tblTempVendorCDR_20' ) start [2025-01-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322938', 'tblTempVendorCDR_20' ) end [2025-01-24 23:13:19] Production.INFO: ProcessCDR(1,14322938,1,1,2) [2025-01-24 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322938', 'tblTempUsageDetail_20' ) start [2025-01-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322938', 'tblTempUsageDetail_20' ) end [2025-01-24 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:13:22] Production.INFO: ==11933== Releasing lock... [2025-01-24 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:13:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:14:05 [end_date_ymd] => 2025-01-24 23:14:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:14:05' and `end` < '2025-01-24 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-24 23:14:18] Production.INFO: count ==1449 [2025-01-24 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:14:05 - End Time 2025-01-24 23:14:05 [2025-01-24 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322943', 'tblTempUsageDetail_20' ) start [2025-01-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322943', 'tblTempUsageDetail_20' ) end [2025-01-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322943', 'tblTempVendorCDR_20' ) start [2025-01-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322943', 'tblTempVendorCDR_20' ) end [2025-01-24 23:14:18] Production.INFO: ProcessCDR(1,14322943,1,1,2) [2025-01-24 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322943', 'tblTempUsageDetail_20' ) start [2025-01-24 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322943', 'tblTempUsageDetail_20' ) end [2025-01-24 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:14:21] Production.INFO: ==12004== Releasing lock... [2025-01-24 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:15:06 [end_date_ymd] => 2025-01-24 23:15:06 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:15:06' and `end` < '2025-01-24 23: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-24 23:15:18] Production.INFO: count ==1450 [2025-01-24 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:15:06 - End Time 2025-01-24 23:15:06 [2025-01-24 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322948', 'tblTempUsageDetail_20' ) start [2025-01-24 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322948', 'tblTempUsageDetail_20' ) end [2025-01-24 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322948', 'tblTempVendorCDR_20' ) start [2025-01-24 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322948', 'tblTempVendorCDR_20' ) end [2025-01-24 23:15:19] Production.INFO: ProcessCDR(1,14322948,1,1,2) [2025-01-24 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322948', 'tblTempUsageDetail_20' ) start [2025-01-24 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322948', 'tblTempUsageDetail_20' ) end [2025-01-24 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:15:22] Production.INFO: ==12155== Releasing lock... [2025-01-24 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:15:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:16:05 [end_date_ymd] => 2025-01-24 23:16:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:16:05' and `end` < '2025-01-24 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-24 23:16:18] Production.INFO: count ==1453 [2025-01-24 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:16:05 - End Time 2025-01-24 23:16:05 [2025-01-24 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322953', 'tblTempUsageDetail_20' ) start [2025-01-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322953', 'tblTempUsageDetail_20' ) end [2025-01-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322953', 'tblTempVendorCDR_20' ) start [2025-01-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322953', 'tblTempVendorCDR_20' ) end [2025-01-24 23:16:18] Production.INFO: ProcessCDR(1,14322953,1,1,2) [2025-01-24 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322953', 'tblTempUsageDetail_20' ) start [2025-01-24 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322953', 'tblTempUsageDetail_20' ) end [2025-01-24 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:16:22] Production.INFO: ==12228== Releasing lock... [2025-01-24 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:17:06 [end_date_ymd] => 2025-01-24 23:17:06 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:17:06' and `end` < '2025-01-24 23: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-24 23:17:18] Production.INFO: count ==1453 [2025-01-24 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:17:06 - End Time 2025-01-24 23:17:06 [2025-01-24 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322958', 'tblTempUsageDetail_20' ) start [2025-01-24 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322958', 'tblTempUsageDetail_20' ) end [2025-01-24 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322958', 'tblTempVendorCDR_20' ) start [2025-01-24 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322958', 'tblTempVendorCDR_20' ) end [2025-01-24 23:17:19] Production.INFO: ProcessCDR(1,14322958,1,1,2) [2025-01-24 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322958', 'tblTempUsageDetail_20' ) start [2025-01-24 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322958', 'tblTempUsageDetail_20' ) end [2025-01-24 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:17:22] Production.INFO: ==12299== Releasing lock... [2025-01-24 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:17:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:18:05 [end_date_ymd] => 2025-01-24 23:18:05 [RateCDR] => 1 ) [2025-01-24 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:18:05' and `end` < '2025-01-24 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:18:18] Production.INFO: count ==1453 [2025-01-24 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:18:05 - End Time 2025-01-24 23:18:05 [2025-01-24 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322963', 'tblTempUsageDetail_20' ) start [2025-01-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322963', 'tblTempUsageDetail_20' ) end [2025-01-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322963', 'tblTempVendorCDR_20' ) start [2025-01-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322963', 'tblTempVendorCDR_20' ) end [2025-01-24 23:18:18] Production.INFO: ProcessCDR(1,14322963,1,1,2) [2025-01-24 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322963', 'tblTempUsageDetail_20' ) start [2025-01-24 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322963', 'tblTempUsageDetail_20' ) end [2025-01-24 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:18:21] Production.INFO: ==12371== Releasing lock... [2025-01-24 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:18:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:19:04 [end_date_ymd] => 2025-01-24 23:19:04 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:19:04' and `end` < '2025-01-24 23: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-24 23:19:17] Production.INFO: count ==1460 [2025-01-24 23:19:17] Production.ERROR: pbx CDR StartTime 2025-01-24 20:19:04 - End Time 2025-01-24 23:19:04 [2025-01-24 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322968', 'tblTempUsageDetail_20' ) start [2025-01-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322968', 'tblTempUsageDetail_20' ) end [2025-01-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322968', 'tblTempVendorCDR_20' ) start [2025-01-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322968', 'tblTempVendorCDR_20' ) end [2025-01-24 23:19:17] Production.INFO: ProcessCDR(1,14322968,1,1,2) [2025-01-24 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322968', 'tblTempUsageDetail_20' ) start [2025-01-24 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322968', 'tblTempUsageDetail_20' ) end [2025-01-24 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:19:22] Production.INFO: ==12480== Releasing lock... [2025-01-24 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:20:05 [end_date_ymd] => 2025-01-24 23:20:05 [RateCDR] => 1 ) [2025-01-24 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:20:05' and `end` < '2025-01-24 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:20:18] Production.INFO: count ==1458 [2025-01-24 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:20:05 - End Time 2025-01-24 23:20:05 [2025-01-24 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322973', 'tblTempUsageDetail_20' ) start [2025-01-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322973', 'tblTempUsageDetail_20' ) end [2025-01-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322973', 'tblTempVendorCDR_20' ) start [2025-01-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322973', 'tblTempVendorCDR_20' ) end [2025-01-24 23:20:18] Production.INFO: ProcessCDR(1,14322973,1,1,2) [2025-01-24 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322973', 'tblTempUsageDetail_20' ) start [2025-01-24 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322973', 'tblTempUsageDetail_20' ) end [2025-01-24 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:20:21] Production.INFO: ==12553== Releasing lock... [2025-01-24 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:20:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-24 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:21:05 [end_date_ymd] => 2025-01-24 23:21:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:21:05' and `end` < '2025-01-24 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-24 23:21:18] Production.INFO: count ==1423 [2025-01-24 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:21:05 - End Time 2025-01-24 23:21:05 [2025-01-24 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322979', 'tblTempUsageDetail_20' ) start [2025-01-24 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322979', 'tblTempUsageDetail_20' ) end [2025-01-24 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322979', 'tblTempVendorCDR_20' ) start [2025-01-24 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322979', 'tblTempVendorCDR_20' ) end [2025-01-24 23:21:19] Production.INFO: ProcessCDR(1,14322979,1,1,2) [2025-01-24 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322979', 'tblTempUsageDetail_20' ) start [2025-01-24 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322979', 'tblTempUsageDetail_20' ) end [2025-01-24 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:21:22] Production.INFO: ==12626== Releasing lock... [2025-01-24 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:21:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:22:05 [end_date_ymd] => 2025-01-24 23:22:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:22:05' and `end` < '2025-01-24 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-24 23:22:18] Production.INFO: count ==1435 [2025-01-24 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:22:05 - End Time 2025-01-24 23:22:05 [2025-01-24 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322984', 'tblTempUsageDetail_20' ) start [2025-01-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322984', 'tblTempUsageDetail_20' ) end [2025-01-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322984', 'tblTempVendorCDR_20' ) start [2025-01-24 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322984', 'tblTempVendorCDR_20' ) end [2025-01-24 23:22:18] Production.INFO: ProcessCDR(1,14322984,1,1,2) [2025-01-24 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322984', 'tblTempUsageDetail_20' ) start [2025-01-24 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322984', 'tblTempUsageDetail_20' ) end [2025-01-24 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:22:23] Production.INFO: ==12696== Releasing lock... [2025-01-24 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:22:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:23:05 [end_date_ymd] => 2025-01-24 23:23:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:23:05' and `end` < '2025-01-24 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-24 23:23:18] Production.INFO: count ==1438 [2025-01-24 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:23:05 - End Time 2025-01-24 23:23:05 [2025-01-24 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322989', 'tblTempUsageDetail_20' ) start [2025-01-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322989', 'tblTempUsageDetail_20' ) end [2025-01-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322989', 'tblTempVendorCDR_20' ) start [2025-01-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322989', 'tblTempVendorCDR_20' ) end [2025-01-24 23:23:18] Production.INFO: ProcessCDR(1,14322989,1,1,2) [2025-01-24 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322989', 'tblTempUsageDetail_20' ) start [2025-01-24 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322989', 'tblTempUsageDetail_20' ) end [2025-01-24 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:23:21] Production.INFO: ==12773== Releasing lock... [2025-01-24 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:23:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:24:05 [end_date_ymd] => 2025-01-24 23:24:05 [RateCDR] => 1 ) [2025-01-24 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:24:05' and `end` < '2025-01-24 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-24 23:24:18] Production.INFO: count ==1438 [2025-01-24 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:24:05 - End Time 2025-01-24 23:24:05 [2025-01-24 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322994', 'tblTempUsageDetail_20' ) start [2025-01-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322994', 'tblTempUsageDetail_20' ) end [2025-01-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322994', 'tblTempVendorCDR_20' ) start [2025-01-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322994', 'tblTempVendorCDR_20' ) end [2025-01-24 23:24:18] Production.INFO: ProcessCDR(1,14322994,1,1,2) [2025-01-24 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322994', 'tblTempUsageDetail_20' ) start [2025-01-24 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322994', 'tblTempUsageDetail_20' ) end [2025-01-24 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:24:21] Production.INFO: ==12844== Releasing lock... [2025-01-24 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:24:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:25:06 [end_date_ymd] => 2025-01-24 23:25:06 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:25:06' and `end` < '2025-01-24 23: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-24 23:25:18] Production.INFO: count ==1433 [2025-01-24 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:25:06 - End Time 2025-01-24 23:25:06 [2025-01-24 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322999', 'tblTempUsageDetail_20' ) start [2025-01-24 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14322999', 'tblTempUsageDetail_20' ) end [2025-01-24 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322999', 'tblTempVendorCDR_20' ) start [2025-01-24 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14322999', 'tblTempVendorCDR_20' ) end [2025-01-24 23:25:19] Production.INFO: ProcessCDR(1,14322999,1,1,2) [2025-01-24 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14322999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14322999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14322999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14322999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322999', 'tblTempUsageDetail_20' ) start [2025-01-24 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14322999', 'tblTempUsageDetail_20' ) end [2025-01-24 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:25:22] Production.INFO: ==12921== Releasing lock... [2025-01-24 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:25:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:26:05 [end_date_ymd] => 2025-01-24 23:26:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:26:05' and `end` < '2025-01-24 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-24 23:26:17] Production.INFO: count ==1429 [2025-01-24 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:26:05 - End Time 2025-01-24 23:26:05 [2025-01-24 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323004', 'tblTempUsageDetail_20' ) start [2025-01-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323004', 'tblTempUsageDetail_20' ) end [2025-01-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323004', 'tblTempVendorCDR_20' ) start [2025-01-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323004', 'tblTempVendorCDR_20' ) end [2025-01-24 23:26:18] Production.INFO: ProcessCDR(1,14323004,1,1,2) [2025-01-24 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323004', 'tblTempUsageDetail_20' ) start [2025-01-24 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323004', 'tblTempUsageDetail_20' ) end [2025-01-24 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:26:21] Production.INFO: ==12994== Releasing lock... [2025-01-24 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:26:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:27:05 [end_date_ymd] => 2025-01-24 23:27:05 [RateCDR] => 1 ) [2025-01-24 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:27:05' and `end` < '2025-01-24 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:27:20] Production.INFO: count ==1433 [2025-01-24 23:27:20] Production.ERROR: pbx CDR StartTime 2025-01-24 20:27:05 - End Time 2025-01-24 23:27:05 [2025-01-24 23:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323009', 'tblTempUsageDetail_20' ) start [2025-01-24 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323009', 'tblTempUsageDetail_20' ) end [2025-01-24 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323009', 'tblTempVendorCDR_20' ) start [2025-01-24 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323009', 'tblTempVendorCDR_20' ) end [2025-01-24 23:27:20] Production.INFO: ProcessCDR(1,14323009,1,1,2) [2025-01-24 23:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323009', 'tblTempUsageDetail_20' ) start [2025-01-24 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323009', 'tblTempUsageDetail_20' ) end [2025-01-24 23:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:27:24] Production.INFO: ==13065== Releasing lock... [2025-01-24 23:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:27:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:28:04 [end_date_ymd] => 2025-01-24 23:28:04 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:28:04' and `end` < '2025-01-24 23: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-24 23:28:17] Production.INFO: count ==1424 [2025-01-24 23:28:17] Production.ERROR: pbx CDR StartTime 2025-01-24 20:28:04 - End Time 2025-01-24 23:28:04 [2025-01-24 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323014', 'tblTempUsageDetail_20' ) start [2025-01-24 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323014', 'tblTempUsageDetail_20' ) end [2025-01-24 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323014', 'tblTempVendorCDR_20' ) start [2025-01-24 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323014', 'tblTempVendorCDR_20' ) end [2025-01-24 23:28:17] Production.INFO: ProcessCDR(1,14323014,1,1,2) [2025-01-24 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323014', 'tblTempUsageDetail_20' ) start [2025-01-24 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323014', 'tblTempUsageDetail_20' ) end [2025-01-24 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:28:20] Production.INFO: ==13139== Releasing lock... [2025-01-24 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:28:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:29:06 [end_date_ymd] => 2025-01-24 23:29:06 [RateCDR] => 1 ) [2025-01-24 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:29:06' and `end` < '2025-01-24 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:29:20] Production.INFO: count ==1414 [2025-01-24 23:29:20] Production.ERROR: pbx CDR StartTime 2025-01-24 20:29:06 - End Time 2025-01-24 23:29:06 [2025-01-24 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323019', 'tblTempUsageDetail_20' ) start [2025-01-24 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323019', 'tblTempUsageDetail_20' ) end [2025-01-24 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323019', 'tblTempVendorCDR_20' ) start [2025-01-24 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323019', 'tblTempVendorCDR_20' ) end [2025-01-24 23:29:20] Production.INFO: ProcessCDR(1,14323019,1,1,2) [2025-01-24 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323019', 'tblTempUsageDetail_20' ) start [2025-01-24 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323019', 'tblTempUsageDetail_20' ) end [2025-01-24 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:29:23] Production.INFO: ==13210== Releasing lock... [2025-01-24 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:29:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:30:06 [end_date_ymd] => 2025-01-24 23:30:06 [RateCDR] => 1 ) [2025-01-24 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-24 20:30:06' and `end` < '2025-01-24 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-24 23:30:18] Production.INFO: count ==1413 [2025-01-24 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:30:06 - End Time 2025-01-24 23:30:06 [2025-01-24 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323024', 'tblTempUsageDetail_20' ) start [2025-01-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323024', 'tblTempUsageDetail_20' ) end [2025-01-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323024', 'tblTempVendorCDR_20' ) start [2025-01-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323024', 'tblTempVendorCDR_20' ) end [2025-01-24 23:30:18] Production.INFO: ProcessCDR(1,14323024,1,1,2) [2025-01-24 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323024', 'tblTempUsageDetail_20' ) start [2025-01-24 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323024', 'tblTempUsageDetail_20' ) end [2025-01-24 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:30:23] Production.INFO: ==13284== Releasing lock... [2025-01-24 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:30:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-24 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:31:05 [end_date_ymd] => 2025-01-24 23:31:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:31:05' and `end` < '2025-01-24 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-24 23:31:18] Production.INFO: count ==1366 [2025-01-24 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:31:05 - End Time 2025-01-24 23:31:05 [2025-01-24 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323030', 'tblTempUsageDetail_20' ) start [2025-01-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323030', 'tblTempUsageDetail_20' ) end [2025-01-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323030', 'tblTempVendorCDR_20' ) start [2025-01-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323030', 'tblTempVendorCDR_20' ) end [2025-01-24 23:31:18] Production.INFO: ProcessCDR(1,14323030,1,1,2) [2025-01-24 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323030', 'tblTempUsageDetail_20' ) start [2025-01-24 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323030', 'tblTempUsageDetail_20' ) end [2025-01-24 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:31:21] Production.INFO: ==13358== Releasing lock... [2025-01-24 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:31:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:32:05 [end_date_ymd] => 2025-01-24 23:32:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:32:05' and `end` < '2025-01-24 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-24 23:32:19] Production.INFO: count ==1359 [2025-01-24 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:32:05 - End Time 2025-01-24 23:32:05 [2025-01-24 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323035', 'tblTempUsageDetail_20' ) start [2025-01-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323035', 'tblTempUsageDetail_20' ) end [2025-01-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323035', 'tblTempVendorCDR_20' ) start [2025-01-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323035', 'tblTempVendorCDR_20' ) end [2025-01-24 23:32:19] Production.INFO: ProcessCDR(1,14323035,1,1,2) [2025-01-24 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323035', 'tblTempUsageDetail_20' ) start [2025-01-24 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323035', 'tblTempUsageDetail_20' ) end [2025-01-24 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:32:22] Production.INFO: ==13433== Releasing lock... [2025-01-24 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:32:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:33:05 [end_date_ymd] => 2025-01-24 23:33:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:33:05' and `end` < '2025-01-24 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-24 23:33:19] Production.INFO: count ==1348 [2025-01-24 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:33:05 - End Time 2025-01-24 23:33:05 [2025-01-24 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323040', 'tblTempUsageDetail_20' ) start [2025-01-24 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323040', 'tblTempUsageDetail_20' ) end [2025-01-24 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323040', 'tblTempVendorCDR_20' ) start [2025-01-24 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323040', 'tblTempVendorCDR_20' ) end [2025-01-24 23:33:19] Production.INFO: ProcessCDR(1,14323040,1,1,2) [2025-01-24 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323040', 'tblTempUsageDetail_20' ) start [2025-01-24 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323040', 'tblTempUsageDetail_20' ) end [2025-01-24 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:33:22] Production.INFO: ==13502== Releasing lock... [2025-01-24 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:34:05 [end_date_ymd] => 2025-01-24 23:34:05 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:34:05' and `end` < '2025-01-24 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-24 23:34:19] Production.INFO: count ==1346 [2025-01-24 23:34:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:34:05 - End Time 2025-01-24 23:34:05 [2025-01-24 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323045', 'tblTempUsageDetail_20' ) start [2025-01-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323045', 'tblTempUsageDetail_20' ) end [2025-01-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323045', 'tblTempVendorCDR_20' ) start [2025-01-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323045', 'tblTempVendorCDR_20' ) end [2025-01-24 23:34:19] Production.INFO: ProcessCDR(1,14323045,1,1,2) [2025-01-24 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323045', 'tblTempUsageDetail_20' ) start [2025-01-24 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323045', 'tblTempUsageDetail_20' ) end [2025-01-24 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:34:22] Production.INFO: ==13616== Releasing lock... [2025-01-24 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:34:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:35:05 [end_date_ymd] => 2025-01-24 23:35:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:35:05' and `end` < '2025-01-24 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-24 23:35:18] Production.INFO: count ==1343 [2025-01-24 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:35:05 - End Time 2025-01-24 23:35:05 [2025-01-24 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323050', 'tblTempUsageDetail_20' ) start [2025-01-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323050', 'tblTempUsageDetail_20' ) end [2025-01-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323050', 'tblTempVendorCDR_20' ) start [2025-01-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323050', 'tblTempVendorCDR_20' ) end [2025-01-24 23:35:18] Production.INFO: ProcessCDR(1,14323050,1,1,2) [2025-01-24 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323050', 'tblTempUsageDetail_20' ) start [2025-01-24 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323050', 'tblTempUsageDetail_20' ) end [2025-01-24 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:35:22] Production.INFO: ==13686== Releasing lock... [2025-01-24 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:36:05 [end_date_ymd] => 2025-01-24 23:36:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:36:05' and `end` < '2025-01-24 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-24 23:36:18] Production.INFO: count ==1338 [2025-01-24 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:36:05 - End Time 2025-01-24 23:36:05 [2025-01-24 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323055', 'tblTempUsageDetail_20' ) start [2025-01-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323055', 'tblTempUsageDetail_20' ) end [2025-01-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323055', 'tblTempVendorCDR_20' ) start [2025-01-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323055', 'tblTempVendorCDR_20' ) end [2025-01-24 23:36:18] Production.INFO: ProcessCDR(1,14323055,1,1,2) [2025-01-24 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323055', 'tblTempUsageDetail_20' ) start [2025-01-24 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323055', 'tblTempUsageDetail_20' ) end [2025-01-24 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:36:22] Production.INFO: ==13757== Releasing lock... [2025-01-24 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:36:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:37:05 [end_date_ymd] => 2025-01-24 23:37:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:37:05' and `end` < '2025-01-24 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-24 23:37:19] Production.INFO: count ==1338 [2025-01-24 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:37:05 - End Time 2025-01-24 23:37:05 [2025-01-24 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323060', 'tblTempUsageDetail_20' ) start [2025-01-24 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323060', 'tblTempUsageDetail_20' ) end [2025-01-24 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323060', 'tblTempVendorCDR_20' ) start [2025-01-24 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323060', 'tblTempVendorCDR_20' ) end [2025-01-24 23:37:19] Production.INFO: ProcessCDR(1,14323060,1,1,2) [2025-01-24 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323060', 'tblTempUsageDetail_20' ) start [2025-01-24 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323060', 'tblTempUsageDetail_20' ) end [2025-01-24 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:37:22] Production.INFO: ==13828== Releasing lock... [2025-01-24 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:37:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:38:05 [end_date_ymd] => 2025-01-24 23:38:05 [RateCDR] => 1 ) [2025-01-24 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:38:05' and `end` < '2025-01-24 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:38:18] Production.INFO: count ==1342 [2025-01-24 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:38:05 - End Time 2025-01-24 23:38:05 [2025-01-24 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323065', 'tblTempUsageDetail_20' ) start [2025-01-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323065', 'tblTempUsageDetail_20' ) end [2025-01-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323065', 'tblTempVendorCDR_20' ) start [2025-01-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323065', 'tblTempVendorCDR_20' ) end [2025-01-24 23:38:18] Production.INFO: ProcessCDR(1,14323065,1,1,2) [2025-01-24 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323065', 'tblTempUsageDetail_20' ) start [2025-01-24 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323065', 'tblTempUsageDetail_20' ) end [2025-01-24 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:38:21] Production.INFO: ==13899== Releasing lock... [2025-01-24 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:38:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:39:05 [end_date_ymd] => 2025-01-24 23:39:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:39:05' and `end` < '2025-01-24 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-24 23:39:19] Production.INFO: count ==1340 [2025-01-24 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:39:05 - End Time 2025-01-24 23:39:05 [2025-01-24 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323070', 'tblTempUsageDetail_20' ) start [2025-01-24 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323070', 'tblTempUsageDetail_20' ) end [2025-01-24 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323070', 'tblTempVendorCDR_20' ) start [2025-01-24 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323070', 'tblTempVendorCDR_20' ) end [2025-01-24 23:39:19] Production.INFO: ProcessCDR(1,14323070,1,1,2) [2025-01-24 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323070', 'tblTempUsageDetail_20' ) start [2025-01-24 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323070', 'tblTempUsageDetail_20' ) end [2025-01-24 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:39:22] Production.INFO: ==13974== Releasing lock... [2025-01-24 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:39:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:40:05 [end_date_ymd] => 2025-01-24 23:40:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:40:05' and `end` < '2025-01-24 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-24 23:40:18] Production.INFO: count ==1338 [2025-01-24 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:40:05 - End Time 2025-01-24 23:40:05 [2025-01-24 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323076', 'tblTempUsageDetail_20' ) start [2025-01-24 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323076', 'tblTempUsageDetail_20' ) end [2025-01-24 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323076', 'tblTempVendorCDR_20' ) start [2025-01-24 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323076', 'tblTempVendorCDR_20' ) end [2025-01-24 23:40:18] Production.INFO: ProcessCDR(1,14323076,1,1,2) [2025-01-24 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323076', 'tblTempUsageDetail_20' ) start [2025-01-24 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323076', 'tblTempUsageDetail_20' ) end [2025-01-24 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:40:21] Production.INFO: ==14046== Releasing lock... [2025-01-24 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:40:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:41:05 [end_date_ymd] => 2025-01-24 23:41:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:41:05' and `end` < '2025-01-24 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-24 23:41:19] Production.INFO: count ==1329 [2025-01-24 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:41:05 - End Time 2025-01-24 23:41:05 [2025-01-24 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323081', 'tblTempUsageDetail_20' ) start [2025-01-24 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323081', 'tblTempUsageDetail_20' ) end [2025-01-24 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323081', 'tblTempVendorCDR_20' ) start [2025-01-24 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323081', 'tblTempVendorCDR_20' ) end [2025-01-24 23:41:19] Production.INFO: ProcessCDR(1,14323081,1,1,2) [2025-01-24 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323081', 'tblTempUsageDetail_20' ) start [2025-01-24 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323081', 'tblTempUsageDetail_20' ) end [2025-01-24 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:41:22] Production.INFO: ==14121== Releasing lock... [2025-01-24 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:42:05 [end_date_ymd] => 2025-01-24 23:42:05 [RateCDR] => 1 ) [2025-01-24 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:42:05' and `end` < '2025-01-24 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:42:18] Production.INFO: count ==1328 [2025-01-24 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:42:05 - End Time 2025-01-24 23:42:05 [2025-01-24 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323086', 'tblTempUsageDetail_20' ) start [2025-01-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323086', 'tblTempUsageDetail_20' ) end [2025-01-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323086', 'tblTempVendorCDR_20' ) start [2025-01-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323086', 'tblTempVendorCDR_20' ) end [2025-01-24 23:42:18] Production.INFO: ProcessCDR(1,14323086,1,1,2) [2025-01-24 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323086', 'tblTempUsageDetail_20' ) start [2025-01-24 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323086', 'tblTempUsageDetail_20' ) end [2025-01-24 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:42:22] Production.INFO: ==14191== Releasing lock... [2025-01-24 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:42:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:43:05 [end_date_ymd] => 2025-01-24 23:43:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:43:05' and `end` < '2025-01-24 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-24 23:43:18] Production.INFO: count ==1326 [2025-01-24 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:43:05 - End Time 2025-01-24 23:43:05 [2025-01-24 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323091', 'tblTempUsageDetail_20' ) start [2025-01-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323091', 'tblTempUsageDetail_20' ) end [2025-01-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323091', 'tblTempVendorCDR_20' ) start [2025-01-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323091', 'tblTempVendorCDR_20' ) end [2025-01-24 23:43:18] Production.INFO: ProcessCDR(1,14323091,1,1,2) [2025-01-24 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323091', 'tblTempUsageDetail_20' ) start [2025-01-24 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323091', 'tblTempUsageDetail_20' ) end [2025-01-24 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:43:21] Production.INFO: ==14262== Releasing lock... [2025-01-24 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:43:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:44:04 [end_date_ymd] => 2025-01-24 23:44:04 [RateCDR] => 1 ) [2025-01-24 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:44:04' and `end` < '2025-01-24 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:44:17] Production.INFO: count ==1333 [2025-01-24 23:44:17] Production.ERROR: pbx CDR StartTime 2025-01-24 20:44:04 - End Time 2025-01-24 23:44:04 [2025-01-24 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323096', 'tblTempUsageDetail_20' ) start [2025-01-24 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323096', 'tblTempUsageDetail_20' ) end [2025-01-24 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323096', 'tblTempVendorCDR_20' ) start [2025-01-24 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323096', 'tblTempVendorCDR_20' ) end [2025-01-24 23:44:17] Production.INFO: ProcessCDR(1,14323096,1,1,2) [2025-01-24 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323096', 'tblTempUsageDetail_20' ) start [2025-01-24 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323096', 'tblTempUsageDetail_20' ) end [2025-01-24 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:44:22] Production.INFO: ==14333== Releasing lock... [2025-01-24 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:44:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:45:05 [end_date_ymd] => 2025-01-24 23:45:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:45:05' and `end` < '2025-01-24 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-24 23:45:17] Production.INFO: count ==1332 [2025-01-24 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-24 20:45:05 - End Time 2025-01-24 23:45:05 [2025-01-24 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323101', 'tblTempUsageDetail_20' ) start [2025-01-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323101', 'tblTempUsageDetail_20' ) end [2025-01-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323101', 'tblTempVendorCDR_20' ) start [2025-01-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323101', 'tblTempVendorCDR_20' ) end [2025-01-24 23:45:17] Production.INFO: ProcessCDR(1,14323101,1,1,2) [2025-01-24 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323101', 'tblTempUsageDetail_20' ) start [2025-01-24 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323101', 'tblTempUsageDetail_20' ) end [2025-01-24 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:45:21] Production.INFO: ==14406== Releasing lock... [2025-01-24 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:46:05 [end_date_ymd] => 2025-01-24 23:46:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:46:05' and `end` < '2025-01-24 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-24 23:46:18] Production.INFO: count ==1331 [2025-01-24 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:46:05 - End Time 2025-01-24 23:46:05 [2025-01-24 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323106', 'tblTempUsageDetail_20' ) start [2025-01-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323106', 'tblTempUsageDetail_20' ) end [2025-01-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323106', 'tblTempVendorCDR_20' ) start [2025-01-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323106', 'tblTempVendorCDR_20' ) end [2025-01-24 23:46:18] Production.INFO: ProcessCDR(1,14323106,1,1,2) [2025-01-24 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323106', 'tblTempUsageDetail_20' ) start [2025-01-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323106', 'tblTempUsageDetail_20' ) end [2025-01-24 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:46:21] Production.INFO: ==14482== Releasing lock... [2025-01-24 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:46:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:47:05 [end_date_ymd] => 2025-01-24 23:47:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:47:05' and `end` < '2025-01-24 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-24 23:47:18] Production.INFO: count ==1328 [2025-01-24 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:47:05 - End Time 2025-01-24 23:47:05 [2025-01-24 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323111', 'tblTempUsageDetail_20' ) start [2025-01-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323111', 'tblTempUsageDetail_20' ) end [2025-01-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323111', 'tblTempVendorCDR_20' ) start [2025-01-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323111', 'tblTempVendorCDR_20' ) end [2025-01-24 23:47:18] Production.INFO: ProcessCDR(1,14323111,1,1,2) [2025-01-24 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323111', 'tblTempUsageDetail_20' ) start [2025-01-24 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323111', 'tblTempUsageDetail_20' ) end [2025-01-24 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:47:22] Production.INFO: ==14553== Releasing lock... [2025-01-24 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:47:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:48:05 [end_date_ymd] => 2025-01-24 23:48:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:48:05' and `end` < '2025-01-24 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-24 23:48:19] Production.INFO: count ==1329 [2025-01-24 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:48:05 - End Time 2025-01-24 23:48:05 [2025-01-24 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323116', 'tblTempUsageDetail_20' ) start [2025-01-24 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323116', 'tblTempUsageDetail_20' ) end [2025-01-24 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323116', 'tblTempVendorCDR_20' ) start [2025-01-24 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323116', 'tblTempVendorCDR_20' ) end [2025-01-24 23:48:19] Production.INFO: ProcessCDR(1,14323116,1,1,2) [2025-01-24 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323116', 'tblTempUsageDetail_20' ) start [2025-01-24 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323116', 'tblTempUsageDetail_20' ) end [2025-01-24 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:48:23] Production.INFO: ==14629== Releasing lock... [2025-01-24 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:48:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:49:05 [end_date_ymd] => 2025-01-24 23:49:05 [RateCDR] => 1 ) [2025-01-24 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:49:05' and `end` < '2025-01-24 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:49:18] Production.INFO: count ==1324 [2025-01-24 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:49:05 - End Time 2025-01-24 23:49:05 [2025-01-24 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323121', 'tblTempUsageDetail_20' ) start [2025-01-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323121', 'tblTempUsageDetail_20' ) end [2025-01-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323121', 'tblTempVendorCDR_20' ) start [2025-01-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323121', 'tblTempVendorCDR_20' ) end [2025-01-24 23:49:18] Production.INFO: ProcessCDR(1,14323121,1,1,2) [2025-01-24 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323121', 'tblTempUsageDetail_20' ) start [2025-01-24 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323121', 'tblTempUsageDetail_20' ) end [2025-01-24 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:49:21] Production.INFO: ==14700== Releasing lock... [2025-01-24 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:49:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:50:05 [end_date_ymd] => 2025-01-24 23:50:05 [RateCDR] => 1 ) [2025-01-24 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:50:05' and `end` < '2025-01-24 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:50:18] Production.INFO: count ==1320 [2025-01-24 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:50:05 - End Time 2025-01-24 23:50:05 [2025-01-24 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323126', 'tblTempUsageDetail_20' ) start [2025-01-24 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323126', 'tblTempUsageDetail_20' ) end [2025-01-24 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323126', 'tblTempVendorCDR_20' ) start [2025-01-24 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323126', 'tblTempVendorCDR_20' ) end [2025-01-24 23:50:18] Production.INFO: ProcessCDR(1,14323126,1,1,2) [2025-01-24 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323126', 'tblTempUsageDetail_20' ) start [2025-01-24 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323126', 'tblTempUsageDetail_20' ) end [2025-01-24 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:50:22] Production.INFO: ==14811== Releasing lock... [2025-01-24 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:51:06 [end_date_ymd] => 2025-01-24 23:51:06 [RateCDR] => 1 ) [2025-01-24 23: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-24 20:51:06' and `end` < '2025-01-24 23: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-24 23:51:19] Production.INFO: count ==1323 [2025-01-24 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:51:06 - End Time 2025-01-24 23:51:06 [2025-01-24 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323132', 'tblTempUsageDetail_20' ) start [2025-01-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323132', 'tblTempUsageDetail_20' ) end [2025-01-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323132', 'tblTempVendorCDR_20' ) start [2025-01-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323132', 'tblTempVendorCDR_20' ) end [2025-01-24 23:51:19] Production.INFO: ProcessCDR(1,14323132,1,1,2) [2025-01-24 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323132', 'tblTempUsageDetail_20' ) start [2025-01-24 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323132', 'tblTempUsageDetail_20' ) end [2025-01-24 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:51:22] Production.INFO: ==14883== Releasing lock... [2025-01-24 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:51:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:52:05 [end_date_ymd] => 2025-01-24 23:52:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:52:05' and `end` < '2025-01-24 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-24 23:52:18] Production.INFO: count ==1324 [2025-01-24 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:52:05 - End Time 2025-01-24 23:52:05 [2025-01-24 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323137', 'tblTempUsageDetail_20' ) start [2025-01-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323137', 'tblTempUsageDetail_20' ) end [2025-01-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323137', 'tblTempVendorCDR_20' ) start [2025-01-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323137', 'tblTempVendorCDR_20' ) end [2025-01-24 23:52:18] Production.INFO: ProcessCDR(1,14323137,1,1,2) [2025-01-24 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323137', 'tblTempUsageDetail_20' ) start [2025-01-24 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323137', 'tblTempUsageDetail_20' ) end [2025-01-24 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:52:21] Production.INFO: ==14952== Releasing lock... [2025-01-24 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:52:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:53:05 [end_date_ymd] => 2025-01-24 23:53:05 [RateCDR] => 1 ) [2025-01-24 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:53:05' and `end` < '2025-01-24 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:53:18] Production.INFO: count ==1323 [2025-01-24 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:53:05 - End Time 2025-01-24 23:53:05 [2025-01-24 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323142', 'tblTempUsageDetail_20' ) start [2025-01-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323142', 'tblTempUsageDetail_20' ) end [2025-01-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323142', 'tblTempVendorCDR_20' ) start [2025-01-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323142', 'tblTempVendorCDR_20' ) end [2025-01-24 23:53:18] Production.INFO: ProcessCDR(1,14323142,1,1,2) [2025-01-24 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323142', 'tblTempUsageDetail_20' ) start [2025-01-24 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323142', 'tblTempUsageDetail_20' ) end [2025-01-24 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:53:21] Production.INFO: ==15024== Releasing lock... [2025-01-24 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:53:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-24 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:54:05 [end_date_ymd] => 2025-01-24 23:54:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:54:05' and `end` < '2025-01-24 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-24 23:54:18] Production.INFO: count ==1332 [2025-01-24 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:54:05 - End Time 2025-01-24 23:54:05 [2025-01-24 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323147', 'tblTempUsageDetail_20' ) start [2025-01-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323147', 'tblTempUsageDetail_20' ) end [2025-01-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323147', 'tblTempVendorCDR_20' ) start [2025-01-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323147', 'tblTempVendorCDR_20' ) end [2025-01-24 23:54:18] Production.INFO: ProcessCDR(1,14323147,1,1,2) [2025-01-24 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323147', 'tblTempUsageDetail_20' ) start [2025-01-24 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323147', 'tblTempUsageDetail_20' ) end [2025-01-24 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:54:23] Production.INFO: ==15094== Releasing lock... [2025-01-24 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:54:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:55:05 [end_date_ymd] => 2025-01-24 23:55:05 [RateCDR] => 1 ) [2025-01-24 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:55:05' and `end` < '2025-01-24 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:55:19] Production.INFO: count ==1331 [2025-01-24 23:55:19] Production.ERROR: pbx CDR StartTime 2025-01-24 20:55:05 - End Time 2025-01-24 23:55:05 [2025-01-24 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323152', 'tblTempUsageDetail_20' ) start [2025-01-24 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323152', 'tblTempUsageDetail_20' ) end [2025-01-24 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323152', 'tblTempVendorCDR_20' ) start [2025-01-24 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323152', 'tblTempVendorCDR_20' ) end [2025-01-24 23:55:19] Production.INFO: ProcessCDR(1,14323152,1,1,2) [2025-01-24 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323152', 'tblTempUsageDetail_20' ) start [2025-01-24 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323152', 'tblTempUsageDetail_20' ) end [2025-01-24 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:55:22] Production.INFO: ==15167== Releasing lock... [2025-01-24 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:55:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:56:05 [end_date_ymd] => 2025-01-24 23:56:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:56:05' and `end` < '2025-01-24 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-24 23:56:18] Production.INFO: count ==1327 [2025-01-24 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:56:05 - End Time 2025-01-24 23:56:05 [2025-01-24 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323157', 'tblTempUsageDetail_20' ) start [2025-01-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323157', 'tblTempUsageDetail_20' ) end [2025-01-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323157', 'tblTempVendorCDR_20' ) start [2025-01-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323157', 'tblTempVendorCDR_20' ) end [2025-01-24 23:56:18] Production.INFO: ProcessCDR(1,14323157,1,1,2) [2025-01-24 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323157', 'tblTempUsageDetail_20' ) start [2025-01-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323157', 'tblTempUsageDetail_20' ) end [2025-01-24 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:56:21] Production.INFO: ==15240== Releasing lock... [2025-01-24 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:56:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:57:05 [end_date_ymd] => 2025-01-24 23:57:05 [RateCDR] => 1 ) [2025-01-24 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-24 20:57:05' and `end` < '2025-01-24 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-24 23:57:18] Production.INFO: count ==1328 [2025-01-24 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:57:05 - End Time 2025-01-24 23:57:05 [2025-01-24 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323162', 'tblTempUsageDetail_20' ) start [2025-01-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323162', 'tblTempUsageDetail_20' ) end [2025-01-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323162', 'tblTempVendorCDR_20' ) start [2025-01-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323162', 'tblTempVendorCDR_20' ) end [2025-01-24 23:57:18] Production.INFO: ProcessCDR(1,14323162,1,1,2) [2025-01-24 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323162', 'tblTempUsageDetail_20' ) start [2025-01-24 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323162', 'tblTempUsageDetail_20' ) end [2025-01-24 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:57:23] Production.INFO: ==15311== Releasing lock... [2025-01-24 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:57:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:58:05 [end_date_ymd] => 2025-01-24 23:58:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:58:05' and `end` < '2025-01-24 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-24 23:58:18] Production.INFO: count ==1329 [2025-01-24 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:58:05 - End Time 2025-01-24 23:58:05 [2025-01-24 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323167', 'tblTempUsageDetail_20' ) start [2025-01-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323167', 'tblTempUsageDetail_20' ) end [2025-01-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323167', 'tblTempVendorCDR_20' ) start [2025-01-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323167', 'tblTempVendorCDR_20' ) end [2025-01-24 23:58:18] Production.INFO: ProcessCDR(1,14323167,1,1,2) [2025-01-24 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323167', 'tblTempUsageDetail_20' ) start [2025-01-24 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323167', 'tblTempUsageDetail_20' ) end [2025-01-24 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:58:21] Production.INFO: ==15381== Releasing lock... [2025-01-24 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:58:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-24 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-24 20:59:05 [end_date_ymd] => 2025-01-24 23:59:05 [RateCDR] => 1 ) [2025-01-24 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-24 20:59:05' and `end` < '2025-01-24 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-24 23:59:18] Production.INFO: count ==1331 [2025-01-24 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-24 20:59:05 - End Time 2025-01-24 23:59:05 [2025-01-24 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323172', 'tblTempUsageDetail_20' ) start [2025-01-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14323172', 'tblTempUsageDetail_20' ) end [2025-01-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323172', 'tblTempVendorCDR_20' ) start [2025-01-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14323172', 'tblTempVendorCDR_20' ) end [2025-01-24 23:59:18] Production.INFO: ProcessCDR(1,14323172,1,1,2) [2025-01-24 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14323172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14323172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-24 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14323172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14323172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323172', 'tblTempUsageDetail_20' ) start [2025-01-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14323172', 'tblTempUsageDetail_20' ) end [2025-01-24 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-24 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-24 23:59:21] Production.INFO: ==15451== Releasing lock... [2025-01-24 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-24 23:59:21] Production.INFO: 37.5 MB #Memory Used#